AdvancedSMSSend

Immediately send or schedule a single text message to multiple phone numbers, or individual messages to multiple recipients. The AdvancedSMSSend method includes a [PostBackURL] parameter. SMS Notify! uses DIDs or short codes assigned to your account license key to send MT text messages and receive MO text messages.

XML Request
HTTP Method: POST

Url: http://sms2.cdyne.com/sms.svc/help/operations/AdvancedSMSsend

Url: https://sms2.cdyne.com/sms.svc/SecureREST/AdvancedSMSsend

The following is an example request Xml body:

 true true  //Optional - If true max message character limit is 70. 1627aea5-8e0a-4371-9022-9b504344e724   String content String content  <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content </PhoneNumbers> <ReferenceID>String content</ReferenceID> <ScheduledDateTime>1999-05-31T11:20:00</ScheduledDateTime> <StatusPostBackURL>String content</StatusPostBackURL> </SMSRequest> <SMSRequest xmlns="http://sms2.cdyne.com"> String content</AssignedDID> String content</Message> <PhoneNumbers> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content </PhoneNumbers> <ReferenceID>String content</ReferenceID> <ScheduledDateTime>1999-05-31T11:20:00</ScheduledDateTime> <StatusPostBackURL>String content</StatusPostBackURL> </SMSRequest> </SMSRequests> </SMSAdvancedRequest>

Json Request
HTTP Method: POST

Url: http://sms2.cdyne.com/sms.svc/help/operations/AdvancedSMSsend

Url: https://sms2.cdyne.com/sms.svc/SecureREST/AdvancedSMSsend

The following is an example request Json body:

{       "Concatenate":true,  //Optional. "IsUnicode":true, //Optional. If "IsUnicode":true, max message character length is 70. "LicenseKey":"1627aea5-8e0a-4371-9022-9b504344e724", "SMSRequests":[{ "AssignedDID":"String content", "Message":"String content", "PhoneNumbers":["String content"], "ReferenceID":"String content", "ScheduledDateTime":"\/Date(928164000000)\/", "StatusPostBackURL":"String content" }] }

XML Response
The following is an example response Xml body:

<ArrayOfSMSResponse xmlns="http://sms2.cdyne.com"> <SMSResponse> <Cancelled>true</Cancelled> <MessageID>1627aea5-8e0a-4371-9022-9b504344e724</MessageID> <Queued>true</Queued> <ReferenceID>String content</ReferenceID> <SMSError>NoError</SMSError> <SMSIncomingMessages i:nil="true" /> <Sent>true</Sent> <SentDateTime>1999-05-31T11:20:00</SentDateTime> </SMSResponse> <SMSResponse> <Cancelled>true</Cancelled> <MessageID>1627aea5-8e0a-4371-9022-9b504344e724</MessageID> <Queued>true</Queued> <ReferenceID>String content</ReferenceID> <SMSError>NoError</SMSError> <SMSIncomingMessages i:nil="true" /> <Sent>true</Sent> <SentDateTime>1999-05-31T11:20:00</SentDateTime> </SMSResponse> </ArrayOfSMSResponse>

Json Response
The following is an example response Json body:

[{	"Cancelled":true, "MessageID":"1627aea5-8e0a-4371-9022-9b504344e724", "Queued":true, "ReferenceID":"String content", "SMSError":0, "SMSIncomingMessages":null, "Sent":true, "SentDateTime":"\/Date(928164000000-0400)\/" }]

CSharp
Using as a Service Reference(.NET Framework 3.5+)

Add a service reference to your project: http://sms2.cdyne.com/sms.svc?wsdl

VB.NET
Add a service reference to http://sms2.cdyne.com/sms.svc?wsdl

VBScript
Sending an AdvancedSMSsend request by passing XML with an http object in VBScript

PHP

 * Send SMS messages using SOAP client
 * Send different messages to different numbers with one method.

PHP with cURL

 * Send SMS messages using cURL

RubyOnRails
Ruby On Rails calling a WCF Webservice using REST and JSON.


 * Example provided by http://www.mobiqpons.com

cURL
Sending an SMS via cURL is easy to do. You can download cURL from http://curl.haxx.se

The following example allows you to call a .NET WCF service via REST and JSON using cURL:

curl -H "Content-Type: application/json" -d '{ "Concatenate":"true", #Optional. "IsUnicode":"true", #Optional. If "IsUnicode":"true" max message character limit is 70. "LicenseKey":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "SMSRequests":[{"AssignedDID":"", "Message":"From Curl", "PhoneNumbers":["XXXXXXXXXX","XXXXXXXXXX"], "ReferenceID":"ReqFromCurl", "StatusPostBackURL":""}]}' http://sms2.cdyne.com/sms.svc/AdvancedSMSsend

JAVA
Example provided by Uday Sappa with http://www.inhode.com

Perl
http://search.cpan.org/~revmischa/Net-SMS-CDYNE-0.04/lib/Net/SMS/CDYNE.pm