Hashtable<String, String> result = tmClient.deleteSMS("1234");
System.out.println("Message with ID " + result.get("scheduled_id") + " was " + result.get("status"));
Arguments:
String scheduled_id:
The account number of the account to transfer the credits to (available in the web-based UI)
Returns:
A Hashtable with 2 keys: 'scheduled_id', 'status' e.g. result.get("source_credits_after")
Hashtable key
Value
scheduled_id
String: The unique ID of the scheduled message.
status
The status of the message, i.e., DELETED.
Specific error codes:
Code
Meaning
35
The provided Resource ID is not valid or is malformed.
36
This can have multiple meanings: either
1) the scheduled message id doesn't exist or belongs to other account than the one using the REST API;
or
2) the scheduled message has already been sent and, as so, can't be deleted.