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

Wrapper Functions - Java

=20
=20
=20
=20

 

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

Below is a list of all the functions currently available in the latest v= ersion of the JAVA wrapper library.

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

 

=20
=20
=20
=20
Name Meaning
addG= roup Create a new 'send' group 
addNumbersToGroup Add new numbers to a 'send' group 
createSubAccount

Create a new account that is a sub-account of= your main account

ge= tCredits Get the number of credits available in your acco= unt 
getDeliveryReport  Get the contents of one/several delivery report(= s)
getDeliveryReports Get a list of the available delivery reports&nbs= p;
getG= roup Get the numbers present in a send/merge group&nb= sp;
get= Groups  Get a list of the available 'send' and 'merge' g= roups 
ge= tKeyword

Get the availability of a keyword for use on = our 88802 short code number

getLastErrors Get the errors returned from the last call to th= e API 
= isLoginValid 

Check the username/password credentials used = are valid

sendS= MS Send an SMS to a given recipient
deleteSMS Delete a previously scheduled SMS
transferCreditsToAccount Transfer credits to a specified account number
transferCreditsToUser  Transfer credits to a specified account username=

 

 

=20
=20
=20
=20

 

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

 All function call examples should be placed in a Java try-catch bl= ock, as described in Handling errors . Each example assumes you have already instanci= ated the wrapper object and assigned it to the variable tmClient:

Example
=20
RestClient tmClient;
tmClient =3D new RestClient("myAPIusername", "myAPIpassword&=
quot;, RestClient.ENV_SANDBOX);
=20
=20
=20
=20
=20
=20 =20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20 =20
------=_Part_15832_1706320341.1614958361557--