Versions Compared

Key

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

 

Delete a previously scheduled SMS

Code Block
themeRDark
languagec#
titleExample
linenumberstrue
Hashtable result = tmClient.deleteSMS("1234");
Console.WriteLine("Message with ID {0} was {1}", result["scheduled_id"], result["status"]);

Arguments:

string scheduled_id: 

The ID of the scheduled text message, as returned by the sendSMS method.

Returns:

A Hashtable with 2 keys: 'scheduled_id', 'status' e.g. result["scheduled_id"]


Hashtable keyValue
scheduled_id 

String: The unique ID of the scheduled message.

status The status of the message, i.e., DELETED.

Specific error codes:

CodeMeaning
35The 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.

Panel
title
  • Next
Panel
titleAll Functions
Panel
titleDownload