Sidebar Menu

NotifyMultiplePhoneAdvanced

Use this method to send multiple notifies at a time. We suggest using our list management features for batches of over 100 messages. (See the LM_DialListAdvanced method.)

Syntax

NotifyMultiplePhoneAdvanced(MultipleANR)

Request Parameters

Parameter Name Description Data Type Required Sample Value
MultipleANR

The notifies you want to send.

Array of AdvancedNotifyRequest objects True

Response

Returns: Array of NotifyReturn objects

Code Samples

/* https://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NotifyMultiplePhoneAdvanced.WSDL;

namespace NotifyMultiplePhoneAdvanced
{
    class Program
    {
        static void Main(string[] args)
        {
            WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
            WSDL.AdvancedNotifyRequest ANR = new AdvancedNotifyRequest();

            List<WSDL.AdvancedNotifyRequest> MultipleANR = new List<WSDL.AdvancedNotifyRequest>();

            ANR.CallerIDName = "CDYNE Testing";
            ANR.CallerIDNumber = "18009843710";
            ANR.PhoneNumberToDial = "17575449510";
            ANR.TextToSay = "Hello this is a test.  Testing 1, 2, 3.";
            ANR.VoiceID = 1;
            ANR.TryCount = 3;
            ANR.NextTryInSeconds = 60;
            ANR.TTSrate = 5;
            ANR.TTSvolume = 8;
            ANR.MaxCallLength = 120;
            ANR.StatusChangePostUrl = "http://yourpostbackurlhere.com";
            ANR.UTCScheduledDateTime = DateTime.UtcNow;
            // ANR.UTCScheduledDateTime = new DateTime(2012, 12, 18, 11, 36, 0).ToUniversalTime(); // Converts local time to UTC
            ANR.LicenseKey = "f01d89fd-5155-5455-5585-e84ab8de8591";

            MultipleANR.Add(ANR);

            // ADD ADDITIONAL REQUESTS HERE

            Array NR = PN.NotifyMultiplePhoneAdvanced(MultipleANR.ToArray());

            WSDL.NotifyReturn Return = PN.NotifyPhoneAdvanced(ANR);

            Console.WriteLine("QueueID: " + Return.QueueID + "\n" +
                              "Response Code: " + Return.ResponseCode + "\n" +
                              "Response Text: " + Return.ResponseText);
            Console.ReadLine();
        }
    }
}
Dim request, xmlHttp, url
url = "http://ws.cdyne.com/NotifyWS/PhoneNotify.asmx"

request = "<?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>" & _
"<NotifyMultiplePhoneAdvanced xmlns=""http://ws.cdyne.com/NotifyWS/"">" & _
"<MultipleANR>" & _
"<AdvancedNotifyRequest>" & _ 
"<PhoneNumberToDial>17575449510</PhoneNumberToDial>" & _
"<VoiceID>1</VoiceID>" & _
"<CallerIDNumber>15551234567</CallerIDNumber>" & _
"<CallerIDName>CDYNE</CallerIDName>" & _
"<TextToSay>Hello, this is a test.</TextToSay>" & _
"<LicenseKey>YOUR LICENSE KEY</LicenseKey>" & _
"<UTCScheduledDateTime>2008-01-28T00:53:06.608Z</UTCScheduledDateTime>" & _
"<StatusChangePostUrl>'http://www.yourpostbackurl.com'</StatusChangePostUrl>" & _
"</AdvancedNotifyRequest>" & _
"<AdvancedNotifyRequest>" & _ 
"<PhoneNumberToDial>18009843710</PhoneNumberToDial>" & _
"<VoiceID>1</VoiceID>" & _
"<CallerIDNumber>15551234567</CallerIDNumber>" & _
"<CallerIDName>CDYNE</CallerIDName>" & _
"<TextToSay>Hello, this is a test.</TextToSay>" & _
"<LicenseKey>YOUR LICENSE KEY</LicenseKey>" & _
"<UTCScheduledDateTime>2008-01-28T00:53:06.608Z</UTCScheduledDateTime>" & _
"<StatusChangePostUrl>'http://www.yourpostbackurl.com'</StatusChangePostUrl>" & _
"</AdvancedNotifyRequest>" & _
"</MultipleANR>" & _
"</NotifyMultiplePhoneAdvanced>" & _
"</soap:Body>" & _
"</soap:Envelope>"

Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.open "POST", url, False
xmlHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlHttp.send request
response = xmlhttp.responseText

MsgBox xmlHttp.responseText
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/NotifyMultiplePhoneAdvanced"

<?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>
    <NotifyMultiplePhoneAdvanced xmlns="http://ws.cdyne.com/NotifyWS/">
      <MultipleANR>
        <AdvancedNotifyRequest>
          <PhoneNumberToDial>string</PhoneNumberToDial>
          <TransferNumber>string</TransferNumber>
          <VoiceID>int</VoiceID>
          <CallerIDNumber>string</CallerIDNumber>
          <CallerIDName>string</CallerIDName>
          <TextToSay>string</TextToSay>
          <LicenseKey>string</LicenseKey>
          <TryCount>int</TryCount>
          <NextTryInSeconds>int</NextTryInSeconds>
          <UTCScheduledDateTime>dateTime</UTCScheduledDateTime>
          <TTSrate>unsignedByte</TTSrate>
          <TTSvolume>unsignedByte</TTSvolume>
          <MaxCallLength>int</MaxCallLength>
          <StatusChangePostUrl>string</StatusChangePostUrl>
          <ReferenceID>string</ReferenceID>
        </AdvancedNotifyRequest>
        <AdvancedNotifyRequest>
          <PhoneNumberToDial>string</PhoneNumberToDial>
          <TransferNumber>string</TransferNumber>
          <VoiceID>int</VoiceID>
          <CallerIDNumber>string</CallerIDNumber>
          <CallerIDName>string</CallerIDName>
          <TextToSay>string</TextToSay>
          <LicenseKey>string</LicenseKey>
          <TryCount>int</TryCount>
          <NextTryInSeconds>int</NextTryInSeconds>
          <UTCScheduledDateTime>dateTime</UTCScheduledDateTime>
          <TTSrate>unsignedByte</TTSrate>
          <TTSvolume>unsignedByte</TTSvolume>
          <MaxCallLength>int</MaxCallLength>
          <StatusChangePostUrl>string</StatusChangePostUrl>
          <ReferenceID>string</ReferenceID>
        </AdvancedNotifyRequest>
      </MultipleANR>
    </NotifyMultiplePhoneAdvanced>
  </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>
    <NotifyMultiplePhoneAdvancedResponse xmlns="http://ws.cdyne.com/NotifyWS/">
      <NotifyMultiplePhoneAdvancedResult>
        <NotifyReturn>
          <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 xsi:nil="true" />
            <Variable xsi:nil="true" />
          </VariableArray>
        </NotifyReturn>
        <NotifyReturn>
          <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 xsi:nil="true" />
            <Variable xsi:nil="true" />
          </VariableArray>
        </NotifyReturn>
      </NotifyMultiplePhoneAdvancedResult>
    </NotifyMultiplePhoneAdvancedResponse>
  </soap:Body>
</soap:Envelope>
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>
    <NotifyMultiplePhoneAdvanced xmlns="http://ws.cdyne.com/NotifyWS/">
      <MultipleANR>
        <AdvancedNotifyRequest>
          <PhoneNumberToDial>string</PhoneNumberToDial>
          <TransferNumber>string</TransferNumber>
          <VoiceID>int</VoiceID>
          <CallerIDNumber>string</CallerIDNumber>
          <CallerIDName>string</CallerIDName>
          <TextToSay>string</TextToSay>
          <LicenseKey>string</LicenseKey>
          <TryCount>int</TryCount>
          <NextTryInSeconds>int</NextTryInSeconds>
          <UTCScheduledDateTime>dateTime</UTCScheduledDateTime>
          <TTSrate>unsignedByte</TTSrate>
          <TTSvolume>unsignedByte</TTSvolume>
          <MaxCallLength>int</MaxCallLength>
          <StatusChangePostUrl>string</StatusChangePostUrl>
          <ReferenceID>string</ReferenceID>
        </AdvancedNotifyRequest>
        <AdvancedNotifyRequest>
          <PhoneNumberToDial>string</PhoneNumberToDial>
          <TransferNumber>string</TransferNumber>
          <VoiceID>int</VoiceID>
          <CallerIDNumber>string</CallerIDNumber>
          <CallerIDName>string</CallerIDName>
          <TextToSay>string</TextToSay>
          <LicenseKey>string</LicenseKey>
          <TryCount>int</TryCount>
          <NextTryInSeconds>int</NextTryInSeconds>
          <UTCScheduledDateTime>dateTime</UTCScheduledDateTime>
          <TTSrate>unsignedByte</TTSrate>
          <TTSvolume>unsignedByte</TTSvolume>
          <MaxCallLength>int</MaxCallLength>
          <StatusChangePostUrl>string</StatusChangePostUrl>
          <ReferenceID>string</ReferenceID>
        </AdvancedNotifyRequest>
      </MultipleANR>
    </NotifyMultiplePhoneAdvanced>
  </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>
    <NotifyMultiplePhoneAdvancedResponse xmlns="http://ws.cdyne.com/NotifyWS/">
      <NotifyMultiplePhoneAdvancedResult>
        <NotifyReturn>
          <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 xsi:nil="true" />
            <Variable xsi:nil="true" />
          </VariableArray>
        </NotifyReturn>
        <NotifyReturn>
          <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 xsi:nil="true" />
            <Variable xsi:nil="true" />
          </VariableArray>
        </NotifyReturn>
      </NotifyMultiplePhoneAdvancedResult>
    </NotifyMultiplePhoneAdvancedResponse>
  </soap12:Body>
</soap12:Envelope>