/
sendSingle and sendSingle2 methods - Support http GET

sendSingle and sendSingle2 methods - Support http GET

Method sendSingle to Send Basic Single SMS

This provides the capability to send a text message of up to 160 characters to a sinlge mobile phone. This method is HTTP Get compatible.

https://primary.smartmessagingservices.net/gateway/services/SMSService?method=sendSingle
&username=your.username&password=your.password&recipient=%2B61your.phone&text=testing+1+2+3

*Please note that when using the HTTP Get method you must url encode any special characters

original character

url encoded

(space)

+

+

%2B

A documentId is returned which can then be used to query the status of the submitted SMS.

method

parameters

return

send

(String username, String password, String recipient, String text);

String documentId

 

Method sendSingle2 to Send Complex Single SMS

 

This provides the capability to send a text message of up to 160 characters to a sinlge mobile phone. This method is HTTP Get compatible.

https://primary.smartmessagingservices.net/gateway/services/SMSService?method=sendSingle2
&username=your.username&password=your.password&recipient=%2B61your.phone&text=testing+1+2+3
&replyTo=john@mycompany.com&sender=john

*Please note that when using the HTTP Get method you must url encode any special characters

original character

url encoded

(space)

+

+

%2B

method

parameters

return

send

(String username, String password, String recipient, String text, String encoding, String replyTo, String sender, expiry-time,scheduled-time);

String recipient, int statusCode, String documentId

Default status returned is always 10 Submitted.

Parameters 

ParameterNotes
encodingISO-8829-1, UTF-16, ASCII - use ISO-8829-1 to access all non english characters available in GSM-7 character set. unknown character from ISO that do not match the GSM Character
set are converted to a ?. Use UTF-16 (limited to 80 characters per message)  for non english characters not covered in the GSM-7 character set. Default is ASCII if parameter is not specified.
SenderCan either be a valid international mobile number (no + sign) of upto 11 alpha characters. alpha number sender must be support by country destination or address will be swamped with a mobile number. Do not specify is Source is defined against the user record in our system or if you wish to use our standard reply pool. If you define the Sender to an mobile number that is not one of ours or to an alpha address - replies will not be received to our gateway.
expiry-timeformat yyyy/MM/dd HH:mm:ss eg 2 hours = 0000/00/00 02:00:00 - message will expire 2 hours after sending if not delivered. Not supported by all Operators. Standard is 48 hours. Do not specify to use standard expiry time.
schedule-timeTime you wish us to submit message to Operator for delivery. Do not specify for message to be sent immediately - time format same as expiry-time.

Related content

MC4 MC5 compatible REST interface
MC4 MC5 compatible REST interface
Read with this
Query Message Status
Query Message Status
Read with this