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
Name
Value
apiKey
Optional Parameters
Name
Value
_format
json or xml
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)Response
Error Codes
Response Code
Message
10
Invalid API key
200
Everything went fine!
Last updated