Message-ID: <1303579347.15857.1614958470149.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15856_84419587.1614958470149" ------=_Part_15856_84419587.1614958470149 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html deleteSMS - Java

deleteSMS - Java

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

Delete a previously scheduled SMS

=20
=20
=20
=20
=20
=20
Example
=20
Hashtable<String, String> result =3D tmClient.deleteSMS("1=
234");
System.out.println("Message with ID " + result.get("schedule=
d_id") + " was " + result.get("status"));
=20
=20
=20
=20
=20
=20
=20

Arguments:

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

String scheduled_id: 

=20
=20
=20
=20

The account number of the account to transfer the credits to (available = in the web-based UI)

=20
=20
=20
=20
=20
=20

Returns:


A Hashtable with 2 keys: 'scheduled_id', 'status' e.g. result.get(= "source_credits_after")

=20
=20
=20
=20
Hashtable key Value
scheduled_id 

String: The unique ID of the scheduled messag= e.

status

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

=
=20
=20
=20
=20
=20
=20

Specific error codes:

=20
=20
=20
=20
Code

Meaning

35

The provided Resource ID is not valid or is m= alformed.

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 al= ready been sent and, as so, can't be deleted.

=20
=20
=20
=20
=20 =20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
------=_Part_15856_84419587.1614958470149--