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

Errors

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