...
...
...
...
Method parameters
Performs a single sending of a text message, already existing or created as the request is executed.
- string SendSingleSMS(string accessKey, int listID, string subject, string type, string content, string numero, Option[] options)
- accessKey:
...
- access key obtained using the Login method
- listID: list identifier. Lists and corresponding IDs can be obtained calling the GetLists Method
- subject: subject of the text message
- type: type of message text source (TEXT, ID)
- content:
...
- message text source, depending on the type:
- type = TEXT,
- content is the text of the message
- type = ID,
- content is the identifier of the text message to be sent
- options:
...
- an array
...
- of key/value
...
- note: una stringa contenente delle note relative al messaggiopairs for options setting. A subset of the options listed for the CreateSMS Method and SendSMS Method are available for this method as well.
- note: a string containing notes about the message
- dyn_fld:
- boolean value to enable/disable the use of dynamic fields in the message (dyn_fld=true, dyn_fld=false)
- from:
- sender of the text message
- track_delivery:
Il codice di errore vale 0 se la chiamata al metodo è andata a buon fine e nel risultato sono restituiti i dettagli sull'invio (vedi esempio).Il numero di messaggi che possono essere inviati in un'ora è dell'ordine di qualche migliaio se si utilizza l'opzione type=ID, mentre con l'utilizzo dell'opzione type=TEXT ci si deve limitare a qualche decina di messaggi al giorno. Ne consegue che l'opzione type=TEXT è in genere consigliata solo se l'invio di SMS è occasionale.
Esempio di messaggio SendSingleSMSResult:
<SendSingleSMSResult>
<errorCode>0</errorCode>
<errorDescription>Message sent +393401111111</errorDescription>
</SendSingleSMSResult>- boolean value indicating whether the sending will appear in the delivery report or not
The option type=ID allows to send a few thousand messages per hour, whereas the option type=TEXT only allows to send a few dozens a day. As a consequence, we recommend not to use the option type=TEXT for massive deliveries. |
If error code=0, the call to the method was successful and the method returns the details of the sending
Sample SendSingleSMS response
Code Block | ||||
---|---|---|---|---|
| ||||
<SendSingleSMSResult>
<errorCode>0</errorCode>
<errorDescription>Message sent +393401111111</errorDescription>
</SendSingleSMSResult> |