Credits
This request is used to retrieve your available SMS credits, as well as the number of pending outgoing SMS.
URL
GET
https://api.smspartner.fr/v1/me
Required Parameters
Optional Parameters
Requests
<?php
// Prepare data for GET request
$data = 'apiKey=YOUR_API_KEY';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/me?'.$data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$result = curl_exec($curl);
curl_close($curl);
// Process your response here
echo $result;
?>
' VB.NET code (same as original, no translation needed)
# Python code (same as original, no translation needed)
curl -H "Content-Type: application/json" -X GET https://api.smspartner.fr/v1/me?apiKey=xxx
// Node.js code (same as original, no translation needed)
// Java code (same as original, no translation needed)
// Swift code (same as original, no translation needed)
// Go code (same as original, no translation needed)
// C# code (same as original, no translation needed)
Response
{
"success": true,
"code": 200,
"user": {
"username": "exemple@email.com",
"firstname": "John",
"lastname": "Doe"
},
"credits": {
"creditSms": 269082,
"creditSmsECO": 444570,
"creditHlr": 2045023,
"toSend": 0,
"solde": "10225.119",
"currency": "EUR",
"balance": "10225.119"
}
}
<?xml version='1.0' encoding='UTF-8'?>
<result>
<entry>true</entry>
<entry>200</entry>
<entry>
<username>exemple@email.com</username>
<firstname>John</firstname>
<lastname>Doe</lastname>
</entry>
<entry>
<entry>269070</entry>
<entry>444551</entry>
<entry>2044937</entry>
<entry>0</entry>
<entry><![CDATA[10224.688]]></entry>
<entry><![CDATA[EUR]]></entry>
<entry><![CDATA[10224.688]]></entry>
</entry>
</result>
Error Codes