# getVoIPSign

Gets real-time voice signature.

Request parameters

Field Description Data Type Default Required
groupId Game room ID String - Y
nonce A random string with less than 128 characters String - Y
timestamp Unix timestamp for generating the random string (in seconds) Number - Y

Promise return parameter

Field Description Data Type
signature Signature String

# Use Case

Promise style

const cloud = require('wx-server-sdk')

exports.main = async (event, context) => {
  const result = await cloud.getVoIPSign({
    groupId: 'xxx',
    timestamp: 1557056066,
    nonce: 'yyy'
  })
  return result.fileList
}
点击咨询小助手