【文件属性】:
文件名称:awry:Asterisk REST接口(ARI)Websocket和API客户端库
文件大小:810KB
文件格式:ZIP
更新时间:2021-05-16 21:25:26
nodejs javascript asterisk ari JavaScript
严重的
用于Node.js的websocket和API客户端库。
安装
npm install awry
用法
const awry = require ( 'awry' ) ;
const api = new awry . API ( {
baseUrl : 'http://asterisk.local:8088/ari' ,
username : 'asterisk' ,
password : 'asterisk'
} ) ;
api . applications . list ( ) . then ( apps => {
console . log ( apps ) ;
} ) ;
const events = awry . Events . connect ( {
app : 'someApp' ,
url : 'http://asterisk.loc