Solution SMS

Bannière Découvrez Dialog, une exclusivité Primotexto qui va révolutionner votre communication par SMS !

API SMS

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

  >  
Contacts  >  






Supprimer un contact par son numéro de mobile  <->   Supprimer un contact par son id






Supprimer un contact par son numéro de mobile

Requête à envoyer

URL

https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b2/contact?identifier=%2B33600000000

HTTP METHOD

DELETE

HEADERS

X-Primotexto-ApiKey: YOUR_API_KEY

Retour de l'API


HEADERS

HTTP/1.1 204 No Content Date: Fri, 08 Jan 2016 15:11:02 GMT Server: Apache Content-Length: 0
// 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'); // Delete $newContact = new PTContact(); $newContact->listId = $listId; $newContact->identifier = '+33600000000'; ListsManager::delContact($newContact);
curl -X DELETE \ -H "X-Primotexto-ApiKey: YOUR_API_KEY" \ https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b2/contacts?identifier=%2B33600000000
// 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"); // Delete PTContact newContact = new PTContact(); newContact.setIdentifier("+33600000000"); ListsManager.delContact(newContact);





Supprimer un contact par son id

Requête à envoyer

URL

https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b2/contacts/533e9f59e4b05d2efeb6f1b5

HTTP METHOD

DELETE

HEADERS

X-Primotexto-ApiKey: YOUR_API_KEY

Retour de l'API


HEADERS

HTTP/1.1 204 No Content Date: Fri, 08 Jan 2016 15:11:02 GMT Server: Apache Content-Length: 0
// 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'); // Delete $newContact = new PTContact(); $newContact->listId = $listId; $newContact->id = $contactId; ListsManager::delContact($newContact);
curl -X DELETE \ -H "X-Primotexto-ApiKey: YOUR_API_KEY" \ https://api.primotexto.com/v2/lists/533e9f59e4b05d2efeb6f1b2/contacts/533e9f59e4b05d2efeb6f1b5
// 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"); // Delete PTContact newContact = new PTContact(); newContact.setId("531e68c1e4b094e0a124b393"); ListsManager.delContact(newContact);