API SMS

Intégrez Primotexto à vos applications grâce à notre puissante API SMS.

  >  
Contacts  >  





Récupérer vos contacts dans une liste

Requête à envoyer

URL

https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b4/contacts

HTTP METHOD

GET

HEADERS

X-Primotexto-ApiKey: YOUR_API_KEY

Retour de l'API


HEADERS

HTTP/1.1 200 OK Date: Fri, 08 Jan 2016 15:11:02 GMT Server: Apache Content-Type: application/json;charset=UTF-8 Vary: Accept-Encoding Transfer-Encoding: chunked

DATA

[ { "attributes": {}, "id": "56f1120e6004e52ff98dbadf", "identifier": "+33661107176" }, { "attributes": {}, "id": "56f1120e6004e52ff98dbajh", "identifier": "+33639840547" }, { "attributes": {}, "id": "56f1120e6004e52ff98dbapl", "identifier": "+33675702461" } ]
// Download library -> https://www.primotexto.com/api/librairies/latest-php.asp require_once 'primotexto-api-php/baseManager.class.php'; // Authentication authenticationManager::setApiKey('5a312492501729be484e69bf16064d03'); // Get ListsManager::getList("533e9f59e4b05d2efeb6f1b4");
curl -X GET \ -H "X-Primotexto-ApiKey: 5a312492501729be484e69bf16064d03" \ https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b4/contacts
// Download library -> JDK 1.5 : https://www.primotexto.com/api/downloads/java/primotexto-3.3-jdk-1.5.zip // Download library -> JDK 1.6 : https://www.primotexto.com/api/downloads/java/primotexto-3.3-jdk-1.6.zip // Download library -> JDK 1.7 : https://www.primotexto.com/api/downloads/java/primotexto-3.3-jdk-1.7.zip import com.primotexto.*; // Authentication AuthenticationManager.setApiKey("5a312492501729be484e69bf16064d03"); // Get ListsManager.getList("533e9f59e4b05d2efeb6f1b4");