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

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;
?>

Response

Error Codes

Response Code
Message

10

Invalid API key

200

Everything went fine!

Last updated