new PromptVoiceSender(appid, appkey)
PromptVoiceSender
Parameters:
Name | Type | Description |
---|---|---|
appid |
string | sdk appid |
appkey |
string | sdk appkey |
Methods
send(nactionCode, phoneNumber, prompttype, msg, playtimes, ext, callback)
Send a prompt voice
Parameters:
Name | Type | Description |
---|---|---|
nactionCode |
string | nation dialing code, e.g. China is 86, USA is 1 |
phoneNumber |
string | phone number |
prompttype |
string | voice prompt type, currently value is 2 |
msg |
string | prompt voice message |
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) |