Class: FileVoiceSender

FileVoiceSender(appid, appkey)

new FileVoiceSender(appid, appkey)

FileVoiceSender
Parameters:
Name Type Description
appid string sdk appid
appkey string sdk appkey
Source:

Methods

send(nationCode, phoneNumber, fid, playtimes, ext, callback)

Send a file voice
Parameters:
Name Type Description
nationCode string nation dialing code, e.g. China is 86, USA is 1
phoneNumber string phone number
fid string voice file fid
playtimes number playtimes, optional, max is 3, default is 2
ext string ext field, content will be returned by server as it is
callback function request handler, method signature: function(error, response, responseData)
Source: