Download File

This request allows you to download the file of the location

URL

GET https://api.smspartner.fr/v1/location/file/download

Parameters

Name
Value

token

Location identifier.

Requests

<?php
 
        // Prepare data for GET request
        $data = 'apiKey=YOUR_API_KEY&token=xxx';
 
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/location/file/download?'.$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

{
    "success": true,
    "phoneNumbers": 10,
    "datas": [
        {
            "id": ...4314,
            "phone": "+336XXXXXX",
            "stopSms": false
        },
        {
            "id": ...4315,
            "phone": "+336XXXXXX",
            "stopSms": false
        },
        {
            "id": ...4316,
            "phone": "+336XXXXXX",
            "stopSms": false
        }...

Errors

{
    "success": false,
    "code": 10,
    "message": "Clé API incorrecte"
}

Error Codes

Response Code
Message

1

API key is required

10

Invalid API key

31

Location token is required

32

Location not found

200

Everything went well!

Last updated