API SMS

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

  >  
SMS  >  





Listes noires des STOP (unsubscribers) & NPAI (bounces)

Requête à envoyer

URL

https://api.primotexto.com/v2/messages/blacklists?category=codeConfirmation

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

{ "bounces" { "number": 18, "identifiers" { "0600000000", "0600000001", "0600000002" } }, "unsubscribers" { "number": 9, "identifiers" { "0600000000", "0600000001", "0600000002" } } }
// Download library -> https://www.primotexto.com/api/librairies/latest-php.asp require_once 'primotexto-api-php/baseManager.class.php'; // Authentication authenticationManager::setApiKey('YOUR_API_KEY'); // Blacklists $msg = new Query; $msg->type = 'notification'; $msg->category = 'codeConfirmation'; messagesManager::messagesBlacklists($msg);
curl -X GET \ -H "X-Primotexto-ApiKey: YOUR_API_KEY" \ https://api.primotexto.com/v2/messages/blacklists?category=codeConfirmation
// Download library -> JDK 1.5 : https://www.primotexto.com/api/librairies/latest-jdk-1.5.zip // Download library -> JDK 1.6 : https://www.primotexto.com/api/librairies/latest-jdk-1.6.zip // Download library -> JDK 1.7 : https://www.primotexto.com/api/librairies/latest-jdk-1.7.zip import com.primotexto.*; // Authentication AuthenticationManager.setApiKey("YOUR_API_KEY"); // Blacklists PTMessageBlacklistsResponse response = MessagesManager.messagesBlacklists("codeConfirmation"); System.out.println(response.toString());
// Download library -> .NET 4.0 : https://www.primotexto.com/api/librairies/latest-net-4.0.asp // Download library -> .NET 4.5 : https://www.primotexto.com/api/librairies/latest-net-4.5.asp using Primotexto; // Authentication AuthenticationManager.setApiKey("YOUR_API_KEY"); PTQuery msg = new PTQuery(); msg.setType("notification"); msg.setCategory("tests"); MessagesManager.messagesBlacklists(msg);