Message-ID: <715879133.15831.1614958352677.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15830_1743913423.1614958352676" ------=_Part_15830_1743913423.1614958352676 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Basics - testing with the sandbox - Java

Basics - testing with the sandbox - Java

=20
=20
=20
=20

 

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

A sandbox system is available for testing. The sandbox will not modify y= our account in any way, but in almost all other respects it will respond no= rmally to your requests.
In other words if you use the sandbox to get= the number of credits on your account, it will provide the correct number.= However if you use it to transfer credits between accounts, it will simula= te a successful transfer (assuming you have enough credits on the account, = and provide valid target account details, etc.) but it will not actually mo= dify the number of credits on either account.
Similarly, the sandbox s= ystem will not actually send SMS messages and will not deduct credits for s= imulated sends.


To use the sandbox simply specify ENV_SANDBOX instead of ENV_PRODU= CTION when you create the wrapper object:

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

the values returned when using the sandbox may differ slightly from the = values returned when using the production system.

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

 

=20
=20
=20
=20

 

=20
=20
=20
------=_Part_15830_1743913423.1614958352676--