API SMS

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

  >  
Contacts  >  






Récupérer une liste  <->   Récupérer toutes vos listes


Récupérer une liste

Requête à envoyer

URL

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

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

{ "fields": [ { "format": "", "id": "56fa4ab86004e50d55357bd3", "listId": "56f111226004e52ff98dbae1", "name": "Envoyer", "type": "NUMBER" } ], "id": "533e9f59e4b05d2efeb6f1b4", "name": "Liste de contacts API #4" }
// 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::getLists(); ListsManager::getList('533e9f59e4b05d2efeb6f1b4');
curl -X GET \ -H "X-Primotexto-ApiKey: 5a312492501729be484e69bf16064d03" \ https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b4
// 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 PTList newList = new PTList(); newList.setId("533e9f59e4b05d2efeb6f1b4"); ListsManager.getList(listId);




Récupérer toutes vos listes

Requête à envoyer

URL

https://api.primotexto.com/v2/lists/

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

[ { "id": "533e9f59e4b05d2efeb6f1b4", "name": "API List #1" }, { "id": "533e9f59e4b05d2efeb6f1b5", "name": "Liste 09-09-2014 09:55" }, { "id": "533e9f59e4b05d2efeb6f1b6", "name": "Liste 24-06-2014 11:15" } ]
// 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::getLists();
curl -X GET \ -H "X-Primotexto-ApiKey: 5a312492501729be484e69bf16064d03" \ https://api.primotexto.com/v2/lists/
// 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.getLists();