PhoneNotify
Click here for a complete list of operations.
NotifyPhoneEnglishBasic
This Method will call any phone number in the US/Canada and read the TextToSay to that phone number using the voice of Diane (voiceid: 0). PhoneNumberToDial must be filled in (They can be in any format as long as there is 10 digits).
A reminder about abuse: Threats and illegal activity can be shared with the authorities.
Use a LicenseKey of 0 for testing.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /NotifyWS/PhoneNotify.asmx HTTP/1.1 Host: ws.cdyne.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://ws.cdyne.com/NotifyWS/NotifyPhoneEnglishBasic" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <NotifyPhoneEnglishBasic xmlns="http://ws.cdyne.com/NotifyWS/"> <PhoneNumberToDial>string</PhoneNumberToDial> <TextToSay>string</TextToSay> <LicenseKey>string</LicenseKey> </NotifyPhoneEnglishBasic> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <NotifyPhoneEnglishBasicResponse xmlns="http://ws.cdyne.com/NotifyWS/"> <NotifyPhoneEnglishBasicResult> <ResponseCode>int</ResponseCode> <ResponseText>string</ResponseText> <CallAnswered>boolean</CallAnswered> <QueueID>long</QueueID> <TryCount>int</TryCount> <Demo>boolean</Demo> <DigitsPressed>string</DigitsPressed> <MachineDetection>string</MachineDetection> <Duration>int</Duration> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <MinuteRate>decimal</MinuteRate> <Country>string</Country> <CallComplete>boolean</CallComplete> <TextToSay>string</TextToSay> <VariableArray> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> </VariableArray> </NotifyPhoneEnglishBasicResult> </NotifyPhoneEnglishBasicResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /NotifyWS/PhoneNotify.asmx HTTP/1.1 Host: ws.cdyne.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <NotifyPhoneEnglishBasic xmlns="http://ws.cdyne.com/NotifyWS/"> <PhoneNumberToDial>string</PhoneNumberToDial> <TextToSay>string</TextToSay> <LicenseKey>string</LicenseKey> </NotifyPhoneEnglishBasic> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <NotifyPhoneEnglishBasicResponse xmlns="http://ws.cdyne.com/NotifyWS/"> <NotifyPhoneEnglishBasicResult> <ResponseCode>int</ResponseCode> <ResponseText>string</ResponseText> <CallAnswered>boolean</CallAnswered> <QueueID>long</QueueID> <TryCount>int</TryCount> <Demo>boolean</Demo> <DigitsPressed>string</DigitsPressed> <MachineDetection>string</MachineDetection> <Duration>int</Duration> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <MinuteRate>decimal</MinuteRate> <Country>string</Country> <CallComplete>boolean</CallComplete> <TextToSay>string</TextToSay> <VariableArray> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> </VariableArray> </NotifyPhoneEnglishBasicResult> </NotifyPhoneEnglishBasicResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /NotifyWS/PhoneNotify.asmx/NotifyPhoneEnglishBasic?PhoneNumberToDial=string&TextToSay=string&LicenseKey=string HTTP/1.1 Host: ws.cdyne.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <NotifyReturn xmlns="http://ws.cdyne.com/NotifyWS/"> <ResponseCode>int</ResponseCode> <ResponseText>string</ResponseText> <CallAnswered>boolean</CallAnswered> <QueueID>long</QueueID> <TryCount>int</TryCount> <Demo>boolean</Demo> <DigitsPressed>string</DigitsPressed> <MachineDetection>string</MachineDetection> <Duration>int</Duration> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <MinuteRate>decimal</MinuteRate> <Country>string</Country> <CallComplete>boolean</CallComplete> <TextToSay>string</TextToSay> <VariableArray> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> </VariableArray> </NotifyReturn>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /NotifyWS/PhoneNotify.asmx/NotifyPhoneEnglishBasic HTTP/1.1 Host: ws.cdyne.com Content-Type: application/x-www-form-urlencoded Content-Length: length PhoneNumberToDial=string&TextToSay=string&LicenseKey=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <NotifyReturn xmlns="http://ws.cdyne.com/NotifyWS/"> <ResponseCode>int</ResponseCode> <ResponseText>string</ResponseText> <CallAnswered>boolean</CallAnswered> <QueueID>long</QueueID> <TryCount>int</TryCount> <Demo>boolean</Demo> <DigitsPressed>string</DigitsPressed> <MachineDetection>string</MachineDetection> <Duration>int</Duration> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <MinuteRate>decimal</MinuteRate> <Country>string</Country> <CallComplete>boolean</CallComplete> <TextToSay>string</TextToSay> <VariableArray> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> <Variable> <VariableName>string</VariableName> <VariableValue>string</VariableValue> </Variable> </VariableArray> </NotifyReturn>