const Client = require('ksc-live-sdk').Client;
const client = new Client({
accessKeyId: '<accesskey id>',
secretAccessKey: '<accesskey secret>',
apiVersion: '2017-01-01',
});
client.request('<金山云接口 Action 名称>', {
// 金山与接口所需参数, 其中 Action 与 Version 可以忽略
},
options: {
headers,
timeout,
....
},
}).then(value => {
....
});
如查询 查询推流实时信息接口
client.request('ListRealtimePubStreamsInfo', {
UniqueName: 'xxx',
App: 'xxx',
Pubdomain: 'xxx',
},
});