Consultation du Solde SMS
Définition
Ce Web Service vous permet de récupérer votre solde en nombre de SMS.
Le résultat vous donne votre solde en Premium et en Standard.
URL
XML : https://www.octopush-dm.com/api/balance
JSON : https://www.octopush-dm.com/api/balance/json
Paramètres particuliers
Nom | Définition |
user_login | Login utilisateur (adresse e-mail). |
api_key | Clé api disponible sur votre manager. |
Exemple Curl
curl « https://www.octopush-dm.com/api/balance/?user_login=*****%40******.com&api_key=*************** »
Retour XML
<?xml version= »1.0″ encoding= »UTF-8″?>
<octopush>
<error_code>000</error_code>
<balance type=« FR »>1251.80</balance>
<balance type=« XXX »>1829.40</balance>
</octopush>
Retour JSON
{« error_code« :« 000 », »balance« :{« FR« : »1251.80″, »XXX« : »1829.40 »}}
Définition des Tags XML
Code | Définition |
error_code | Consulter la liste des retours |
balance type= »FR » | Votre solde résiduel de SMS en qualité Premium France |
balance type= »XXX » | Votre solde résiduel de SMS en qualité Low Cost France |