URL
https://api.primotexto.com/v2/unsubscribers/default/contacts
HTTP METHOD
POST
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
Content-Type: application/json
DATA
{
"identifier": "+33600000000"
}
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": "543ceb14e4b0ef900801cbe3"
}
// 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');
// Add
$blacklist = new Blacklist;
$blacklist->type = 'unsubscribers';
$blacklist->identifier = '+33600000000';
accountManager::accountBlacklistsAdd($blacklist);
curl -X POST \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "identifier": "+33600000000" }' \
https://api.primotexto.com/v2/unsubscribers/defaults/contacts
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Add
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("unsubscribers");
blacklist.setIdentifier("+33600000000");
PTBlacklistContactId response = AccountManager.accountBlacklistsAdd(blacklist);
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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("unsubscribers");
blacklist.setIdentifier("+33600000000");
AccountManager.accountBlacklistsAdd(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts'
data= <<-JSON_SMS
{
"identifier":"+33600000000"
}
JSON_SMS
request= RestClient.post(url, data, { 'X-Primotexto-ApiKey' => apiKey, 'Content-Type' => 'application/json' })
puts request
// Installation -> npm install node-rest-client
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/unsubscribers/default/contacts";
var contact= { "identifier": "+33600000000" };
var Client = require('node-rest-client').Client;
var client = new Client();
client.post(url, { data: contact, headers: { "X-Primotexto-ApiKey": apiKey, "Content-Type": "application/json" } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts'
contact = '{"identifier": "+33600000000"}'
response = requests.post(url, contact, headers={'Content-Type': 'application/json', 'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts';
my $contact = '{"identifier": "+33600000000"}';
my $client = REST::Client->new();
$client->POST($url , $contact, { "X-Primotexto-ApiKey" => $apiKey, "Content-type" => 'application/json'});
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/unsubscribers/default/contacts"
myContact est une chaîne ANSI = [
{
"identifier": "+33600000000"
}
]
cMaRequete est un restRequête
cMaRequete..Contenu = myContact
cMaRequete..URL = myUrl
cMaRequete..Méthode = "POST"
cMaRequete.Entête["X-Primotexto-ApiKey"] = myApiKey
cMaRequete..ContentType = "application/json"
cMaReponse est un restRéponse = RESTEnvoie(cMaRequete)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN
URL
https://api.primotexto.com/v2/unsubscribers/default/contacts
HTTP METHOD
GET
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
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
[
{
"deleted": false,
"id": "543ced2de4b0ef900801cbe4",
"identifier": "+33600000000"
},
{
"deleted": false,
"id": "543ced35e4b0ef900801cbe5",
"identifier": "+33600000001"
},
{
"deleted": false,
"id": "543ced39e4b0ef900801cbe6",
"identifier": "+33600000002"
}
]
// 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');
// Unsubscribers blacklist
$blacklist = new Blacklist;
$blacklist->type = 'unsubscribers';
accountManager::accountBlacklists($blacklist);
curl -X GET \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
https://api.primotexto.com/v2/unsubscribers/defaults/contacts
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Get
List response = AccountManager.accountBlacklists("unsubscribers");
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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("unsubscribers");
AccountManager.accountBlacklists(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts'
request= RestClient.get(url, { 'X-Primotexto-ApiKey' => apiKey })
puts request
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/unsubscribers/default/contacts";
var Client = require('node-rest-client').Client;
var client = new Client();
client.get(url, { headers: { "X-Primotexto-ApiKey": apiKey } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts'
response = requests.get(url, headers={'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts';
my $client = REST::Client->new();
$client->GET($url , { "X-Primotexto-ApiKey" => $apiKey });
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/unsubscribers/default/contacts"
cMaRequete est un restRequête
cMaRequete..URL = myUrl
cMaRequete..Méthode = "GET"
cMaRequete.Entête["X-Primotexto-ApiKey"] = myApiKey
cMaReponse est un restRéponse = RESTEnvoie(cMaRequete)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN
URL
https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier=%2B33600000000
HTTP METHOD
DELETE
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
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 a bounce number
$blacklist = new Blacklist;
$blacklist->type = 'unsubscribers';
$blacklist->identifier = '+33600000000';
accountManager::accountBlacklistsAdd($blacklist);
curl -X DELETE \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
https://api.primotexto.com/v2/unsubcribers/defaults/contacts?identifier=%2B33600000000
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Del
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("unsubscribers");
blacklist.setIdentifier("+33600000000");
String response = AccountManager.accountBlacklistsDel(blacklist);
System.out.println(response);;
// 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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("unsubscribers");
blacklist.setIdentifier("+33600000000");
AccountManager.accountBlacklistsDel(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
number = '+33600000000'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier='
request= RestClient.delete(url + number.gsub("+", "%2B"), { 'X-Primotexto-ApiKey' => apiKey })
puts request
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier=";
var number = "+33600000000";
var Client = require('node-rest-client').Client;
var client = new Client();
client.delete(url + number.replace('+', '%2B'), { headers: { "X-Primotexto-ApiKey": apiKey, "Content-Type": "application/json" } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier='
contact = '+33600000000'
response = requests.delete(url + contact.replace('+', '%2B'), headers={'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier=';
my $contact = '+33600000000';
my $client = REST::Client->new();
$contact =~ s/\+/%2B/g;
$client->DELETE($url.$contact, { "X-Primotexto-ApiKey" => $apiKey});
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/unsubscribers/default/contacts?identifier="
myIdentifier est une chaîne = "+33600000000"
CMaRequête est une httpRequête
CMaRequête..Méthode = httpDelete
CMaRequête.Entête["X-Primotexto-ApiKey"] = myApiKey
myNewIdentifier est une chaîne = Remplace(myIdentifier,"+","%2B")
CMaRequête..URL = myUrl + myNewIdentifier
cMaReponse est un httpRéponse = HTTPEnvoie(CMaRequête)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN
URL
https://api.primotexto.com/v2/bounces/default/contacts
HTTP METHOD
POST
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
Content-Type: application/json
DATA
{
"identifier": "+33600000000"
}
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": "543ceb14e4b0ef900801cbe3"
}
// 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');
// Add
$blacklist = new Blacklist;
$blacklist->type = 'bounces';
$blacklist->identifier = '+33600000000';
accountManager::accountBlacklistsAdd($blacklist);
curl -X POST \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "identifier": "+33600000000" }' \
https://api.primotexto.com/v2/bounces/defaults/contacts
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Add
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("bounces");
blacklist.setIdentifier("+33600000000");
PTBlacklistContactId response = AccountManager.accountBlacklistsAdd(blacklist);
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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("bounces");
blacklist.setIdentifier("+33600000000");
AccountManager.accountBlacklistsAdd(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/bounces/default/contacts'
data= <<-JSON_SMS
{
"identifier":"+33600000000"
}
JSON_SMS
request= RestClient.post(url, data, { 'X-Primotexto-ApiKey' => apiKey, 'Content-Type' => 'application/json' })
puts request
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/bounces/default/contacts";
var contact= { "identifier": "+33600000000" };
var Client = require('node-rest-client').Client;
var client = new Client();
client.post(url, { data: contact, headers: { "X-Primotexto-ApiKey": apiKey, "Content-Type": "application/json" } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/bounces/default/contacts'
contact = '{"identifier": "+33600000000"}'
response = requests.post(url, contact, headers={'Content-Type': 'application/json', 'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/bounces/default/contacts';
my $contact = '{"identifier": "+33600000000"}';
my $client = REST::Client->new();
$client->POST($url , $contact, { "X-Primotexto-ApiKey" => $apiKey, "Content-type" => 'application/json'});
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/bounces/default/contacts"
myContact est une chaîne ANSI = [
{
"identifier": "+33600000000"
}
]
cMaRequete est un restRequête
cMaRequete..Contenu = myContact
cMaRequete..URL = myUrl
cMaRequete..Méthode = "POST"
cMaRequete.Entête["X-Primotexto-ApiKey"] = myApiKey
cMaRequete..ContentType = "application/json"
cMaReponse est un restRéponse = RESTEnvoie(cMaRequete)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN
URL
https://api.primotexto.com/v2/bounces/default/contacts
HTTP METHOD
GET
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
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
[
{
"deleted": false,
"id": "543ced2de4b0ef900801cbe4",
"identifier": "+33600000000"
},
{
"deleted": false,
"id": "543ced35e4b0ef900801cbe5",
"identifier": "+33600000001"
},
{
"deleted": false,
"id": "543ced39e4b0ef900801cbe6",
"identifier": "+33600000002"
}
]
// 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');
// Unsubscribers blacklist
$blacklist = new Blacklist;
$blacklist->type = 'bounces';
accountManager::accountBlacklists($blacklist);
curl -X GET \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
https://api.primotexto.com/v2/bounces/defaults/contacts
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Get
List response = AccountManager.accountBlacklists("bounces");
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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("bounces");
AccountManager.accountBlacklists(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/bounces/default/contacts'
request= RestClient.get(url, { 'X-Primotexto-ApiKey' => apiKey })
puts request
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/bounces/default/contacts";
var Client = require('node-rest-client').Client;
var client = new Client();
client.get(url, { headers: { "X-Primotexto-ApiKey": apiKey } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/bounces/default/contacts'
response = requests.get(url, headers={'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/bounces/default/contacts';
my $client = REST::Client->new();
$client->GET($url , { "X-Primotexto-ApiKey" => $apiKey });
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/bounces/default/contacts"
cMaRequete est un restRequête
cMaRequete..URL = myUrl
cMaRequete..Méthode = "GET"
cMaRequete.Entête["X-Primotexto-ApiKey"] = myApiKey
cMaReponse est un restRéponse = RESTEnvoie(cMaRequete)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN
URL
https://api.primotexto.com/v2/bounces/default/contacts?identifier=%2B33600000000
HTTP METHOD
DELETE
HEADERS
ApiKey
X-Primotexto-ApiKey: YOUR_API_KEY
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 a bounce number
$blacklist = new Blacklist;
$blacklist->type = 'bounces';
$blacklist->identifier = '+33600000000';
accountManager::accountBlacklistsAdd($blacklist);
curl -X DELETE \
-H "X-Primotexto-ApiKey: YOUR_API_KEY" \
https://api.primotexto.com/v2/bounces/defaults/contacts?identifier=%2B33600000000
import com.primotexto.*;
// Authentication
AuthenticationManager.setApiKey("YOUR_API_KEY");
// Del
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("bounces");
blacklist.setIdentifier("+33600000000");
String response = AccountManager.accountBlacklistsDel(blacklist);
System.out.println(response);;
// 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");
PTBlacklist blacklist = new PTBlacklist();
blacklist.setType("bounces");
blacklist.setIdentifier("+33600000000");
AccountManager.accountBlacklistsDel(blacklist);
#!/usr/bin/env ruby
require 'json'
require 'rest-client'
apiKey = 'YOUR_API_KEY'
number = '+33600000000'
url = 'https://api.primotexto.com/v2/bounces/default/contacts?identifier='
request= RestClient.delete(url + number.gsub("+", "%2B"), { 'X-Primotexto-ApiKey' => apiKey })
puts request
var apiKey = "YOUR_API_KEY";
var url = "https://api.primotexto.com/v2/bounces/default/contacts?identifier=";
var number = "+33600000000";
var Client = require('node-rest-client').Client;
var client = new Client();
client.delete(url + number.replace('+', '%2B'), { headers: { "X-Primotexto-ApiKey": apiKey, "Content-Type": "application/json" } }, function (data, response) {
console.log(data);
});
#!/usr/bin/env python
import requests
apiKey = 'YOUR_API_KEY'
url = 'https://api.primotexto.com/v2/bounces/default/contacts?identifier='
contact = '+33600000000'
response = requests.delete(url + contact.replace('+', '%2B'), headers={'X-Primotexto-ApiKey': apiKey})
print response.content
#!/usr/bin/perl
use REST::Client;
my $apiKey = 'YOUR_API_KEY';
my $url = 'https://api.primotexto.com/v2/bounces/default/contacts?identifier=';
my $contact = '+33600000000';
my $client = REST::Client->new();
$contact =~ s/\+/%2B/g;
$client->DELETE($url.$contact, { "X-Primotexto-ApiKey" => $apiKey});
print $client->responseContent()."\n";
myApiKey est une chaîne = "YOUR_API_KEY"
myUrl est une chaîne = "https://api.primotexto.com/v2/bounces/default/contacts?identifier="
myIdentifier est une chaîne = "+33600000000"
CMaRequête est une httpRequête
CMaRequête..Méthode = httpDelete
CMaRequête.Entête["X-Primotexto-ApiKey"] = myApiKey
myNewIdentifier est une chaîne = Remplace(myIdentifier,"+","%2B")
CMaRequête..URL = myUrl + myNewIdentifier
cMaReponse est un httpRéponse = HTTPEnvoie(CMaRequête)
SI ErreurDétectée ALORS
Erreur(ErreurInfo(errComplet))
SINON
Info(cMaReponse..Contenu)
FIN