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

deleteSMS

=20
=20
=20
=20

 

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

Delete a previously scheduled SMS

=20
=20
=20
=20
=20
=20
Example
=20
$result =3D $tmClient->deleteSMS('1234');
echo "Message with ID {$result['scheduled_id']} was {$result['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 ID of the scheduled text message, as returned by the sendSMS method.=

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

Returns:

an array with 2 keys: 'scheduled_id', 'status' e.g. $result['scheduled_i= d']

=20
=20
=20
=20
Array 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 malf= ormed.
36

This can have multiple meanings: either 1) th= e scheduled message id doesn't exist or belongs to other account than the o= ne using the REST API; or 2) the scheduled message has already been sent an= d, as so, can't be deleted.

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

 

=20
=20
=20
=20

 

=20
=20
=20
=20

 

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

 

=20
=20
=20
=20

 

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

You must know!

=20 =20

Our example code is an illustra= tion of how you might integrate with our systems and is not certified for p= roduction environments. You are responsible for testing and QA.

=20
=20
=20
=20
=20
------=_Part_15820_67199949.1614958307541--