Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Code Block

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

...

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.

Code Block

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

...

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

This method take up to 3 seconds to return a response so as to allow the system to deliver a Telecommunications network status in the statusCode variable.  If a fineal delivery status is not received this can be queried over time using the documentId supplied and the query method.

See the section on 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)