Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

SMS API: Difference between revisions

246 bytes added ,  16 August 2024
 
(6 intermediate revisions by 2 users not shown)
The targets can also be prefixed by a special character to impact the format of how the message is sent. These are currently +, *, or !. (This is an issue for an email address that starts with one of these, but for email the * prefix does nothing, so in the rare case of an email starting with *, !, or +, prefix with a *)
 
===EmailInbound targets:===
 
You can use one or many of these targets:
 
====Email====
You may specify an email address, e.g. ''localpart''@''hostname'' and we'll send the messages by email.
*The prefix format + may be used to force mobile numbers to be E.123 (+ prefix) formatted and an ISO8601 timestamp.
 
====Toot====
You may specify a fediverse address, e.g. @''name''@''hostname'' to get messages as a toot (''direct mention'').
*The prefix format + may be used to force mobile numbers to be E.123 (+ prefix) formatted and an ISO8601 timestamp.
 
====Mobile====
You may specify a mobile number (no spaces) to forward an SMS to another number (chargeable).
 
====HTTP====
If you put an entry starting http:// or https:// then we will attempt to send the SMS to you using HTTP (or HTTPS). We recommend https for privacy.
 
We operate an outbound text service that is available to all of our customers that have a VoIP number. To use this service you must have an outgoing password configured in the control pages for the VoIP number.
 
ToOur sendSMS textsgateway you need to issue an HTTP POST to our outbound text gatewayis https://sms.aa.net.uk/sms.cgi and uses with the following fields as if sent from a form. As the password is sent in plain text you may prefer to use https.
*These can be sent as a URL encoded form data GET
*These can be sent as a URL encoded form data POST
*These can be sent as fields in a POST of a JSON object
 
{|class="wikitable"
|-
| ''private''
| Marks the message as private, seesuch belowthat it is not included in the itemises billing.
|-
| ''oa''
| Email address or URL for delivery report, see below
|}
Note that we have, again, tried to use GSM 03.40 field names, but alternative field names are supported for now: ''destination'', ''originator'', ''message''.
 
We support UTF-8 coding of the full GSM 7 bit character set (including £$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞÆæÉÄÖÑܧäöñüà€¡¿). Whilst one message is normally up to 160 characters some characters are coded using two characters using an ESC prefix in the 7 bit alphabet (€,[,\,],^,{,|,},~). The message will be coded as 7, 8 or 16 bit depending on what you include in the text, and this will impact the number of message parts that may be sent ('''meaning you potentially pay for more parts'''). If you include the invalid UTF-8 sequence 0xC0 0x80, then that includes a null in the message. If you include any unicode characters beyond U+0xFFFF then UTF-16 coding is used and sending of text in is UCS2 format. Not all interconnects or devices understand UTF-16 format.
 
===Response===
The response text starts either ERR: and an error message or OK:
 
You can choose to have a response back in XML - this makes the service more compatible with Acrobits' Groundwire mobile phone app that is a softphone with SMS capability. AddInclude a field called xml, e.g. add &xml to the URL for a GET.
 
===Example===
autoreview, Bots, Bureaucrats, editor, Interface administrators, reviewer, Administrators, upwizcampeditors
42

edits