微信小程序
getVoIPSign
# Cloud.getVoIPSign(options: Object): Promise<Object>
支持端:云函数
获取实时语音签名
# 参数
# options: Object
# 返回值
# Promise.<Object>
# 示例代码
const cloud = require('wx-server-sdk')
cloud.init({
env: cloud.DYNAMIC_CURRENT_ENV
})
exports.main = async (event, context) => {
const result = await cloud.getVoIPSign({
groupId: 'xxx',
timestamp: 1557056066,
nonce: 'yyy'
})
return result.fileListt
}