Send a text message to the specified recipient. Optionally, sends can be scheduled.
See also What is a sent message?
With the minimum arguments required, sends 'my message' to 447000000000 with sender ID 'Sender':
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Hashtable result = tmClient.sendSMS("My message", "447000000000", "Sender", 72, "", "", null); Console.WriteLine("Used {0} Credits, ID:{1}, Status: {2}", result["credits_used"], result["message_id"], result["status"]); |
As above, but sets validity to 72 hours and is scheduled for sending on 1st Jan 2013 at 01:00 GMT:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Hashtable result = tmClient.sendSMS("My message", "447000000000", "Sender", 72, "", "myTag", new DateTime(2013, 1, 1, 1, 0, 0)); Console.WriteLine("Used {0} Credits, ID:{1}, Status: {2}", result["credits_used"], result["scheduled_id"], result["status"]); |
Arguments: