<?phprequire_once("Newsman/Client.php");// you can get your API KEY, your newsman_user_id and list_id from My account -> API$newsman_user_id="your-user-id";$api_key="your-api-key";
try {$client=new Newsman_Client($newsman_user_id,$api_key);$ret=$client->sms->getCurrentCreditsNumber();} catch (Exception $e){//do something with the error, eg: log $e->getMessage()}return$ret;?>
RESTClient client = new RESTClient("your_user_id","your_api_key");
var _params = new NameValueCollection();
var response = client.CallMethod("sms","getCurrentCreditsNumber", _params);