Get total sms remaining amount

Help with the Esendex API

Get total sms remaining amount

Postby iesjonqueres » Tue May 04, 2010 1:16 pm

Hi

is there any way to get the total sms remaining amount through the PHP API?

Thks!
iesjonqueres
 
Posts: 2
Joined: Tue May 04, 2010 1:06 pm

Re: Get total sms remaining amount

Postby Leanne » Tue May 04, 2010 3:06 pm

Hello,

There are currently two ways of you being able to do this. If you are using our SOAP API you will be able to find your remaining balance by following the link below:

https://www.esendex.com/secure/messenge ... ssageLimit

If you are currently using our Esendex API you will be able to find more information on page 11 of the Esendex API manual on our website.

Please let me know if you need any more help.

Many thanks,

Leanne
Leanne
 
Posts: 104
Joined: Thu Mar 04, 2010 12:35 am

Re: Get total sms remaining amount

Postby iesjonqueres » Thu May 06, 2010 10:03 am

Very usefull information

I use Esendex API with basic auth

Code: Select all
$protocol = "http://";
$url = "api.esendex.com/v1.0/accounts";
$username = "myuser";
$password = "mypass";
$cred = sprintf('Authorization: Basic %s',
base64_encode("$username:$password") );
$opts = array(
'http'=>array(
'method'=>'GET',
'header'=>$cred)
);
$ctx = stream_context_create($opts);

$fp = fopen ( $protocol.$url, 'r', false,$ctx)
   or die("Error reading XML data.");   

and then parse the XML :)

Losts of thks!!

done!

Vicenç
iesjonqueres
 
Posts: 2
Joined: Tue May 04, 2010 1:06 pm


Return to API



cron
© Esendex Ltd 2010
Company Registration Number: 04217280