La seule API pour activer et gérer les domaines .it en temps réel
Vérifier, enregistrer et renouveler un domaine .it directement via API
Toutes les connaissances dont vous avez besoin
Vous trouverez ici quelques conseils à prendre en compte pour aborder cette API. Si vous préférez, nous fournissons des exemples de code, la documentation OAS3, la possibilité d'essayer l'API en direct via Swagger UI ou d'importer l'intégralité de la collection dans Postman. Nous proposons également un environnement Sandbox où vous pouvez expérimenter toutes sortes de requêtes de manière totalement gratuite.
Obtenir le Token dans la section appropriée avant de commencer.
- Oas file url https://console.openapi.com/oas/fr/domains.openapi.json
- Fork or import with Postman
- Production domain domains.altravia.com
- Sandbox domain test.domains.altravia.com
-
Production Scopes 10
- POST domains.altravia.com/domain
- POST domains.altravia.com/contact
- GET domains.altravia.com/domain
- GET domains.altravia.com/contact
- DELETE domains.altravia.com/domain
- DELETE domains.altravia.com/contact
- GET domains.altravia.com/check
- PUT domains.altravia.com/domain
- PUT domains.altravia.com/contact
- PUT domains.altravia.com/restore
-
Sandbox Scopes 10
- POST test.domains.altravia.com/domain
- POST test.domains.altravia.com/contact
- GET test.domains.altravia.com/contact
- PUT test.domains.altravia.com/domain
- PUT test.domains.altravia.com/contact
- DELETE test.domains.altravia.com/domain
- DELETE test.domains.altravia.com/contact
- GET test.domains.altravia.com/check
- PUT test.domains.altravia.com/restore
- GET test.domains.altravia.com/domain
Domains (1.0.0)
Ce service web vous permet d'acheter et de gérer des domaines .it.
Liste de vos contacts
Cette méthode vous permet d'afficher la liste des contacts associés à vos domaines.
Authorizations:
Responses
Response Schema: application/json
data | Array of strings |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/contact"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": [
- "AV-1386236438161",
- "AV-1485797541768",
- "AV-1485797620032",
- "AV-1386236511621",
- "LS7743"
- "success": true,
- "message": "",
- "error": null
Créer un nouveau contact
Cette méthode vous permet d'enregistrer un nouveau contact dans le système, que vous devrez ensuite associer aux nouveaux domaines à acquérir. Si vous souhaitez créer un contact "registrant", "nationalitycode", "entitytype" et "regcode" sont obligatoires.
Authorizations:
Request Body schema: application/json
name required | string Nom de la personne de contact |
org required | string Contact Organisation |
street required | string Adresse de contact |
city required | string Contact Ville |
province required | string Contact Province |
postalcode required | string Code postal de la personne de contact |
countrycode required | string Code pays de la personne de contact |
voice required | string Numéro de téléphone de la personne de contact ; seul ce format international est accepté:'+39.3502285745'. |
email required | string Contact E-mail |
nationalitycode | string Code de nationalité de la personne de contact |
entitytype | integer Enum: 0 1 2 3 4 5 6 7 Type de contact : - 0 : contact non enregistré ; - 1 : personnes physiques ; - 2 : sociétés, entreprises individuelles ; - 3 : professions libérales ; - 4 : organisations à but non lucratif ; - 5 : institutions publiques ; - 6 : autres sujets ; - 7 : sujets étrangers |
regcode | string Numéro d'identification fiscale ou numéro de TVA |
Responses
Response Schema: application/json
object | |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "name": "Jane Doe",
- "org": "Jane Doe",
- "street": "Via xxx 2",
- "city": "Terni",
- "province": "TR",
- "postalcode": "05100",
- "countrycode": "IT",
- "voice": "+39.349xxxxxxx",
- "email": "[email protected]"
Response samples
- 200
- 406
- 412
- 417
- 422
- "data": {
- "handle": "AV-982654609"
- "message": "Greeting OK. Login OK. Create contact 'AV-982654609' created. Logout OK.",
- "success": true,
- "error": null
Contact facile
Cette méthode permet de voir le contact individuel associé au paramètre passé dans le chemin d'accès
Authorizations:
path Parameters
handle required | string Example: LS7743 Contact Id |
Responses
Response Schema: application/json
object (Contact_Object) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/contact/%7Bhandle%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": {
- "status": [
- "ok",
- "linked"
- "handle": "LS7743",
- "name": "Lxxa Sxxxxi",
- "org": "Altravia srl",
- "street": "Via A. Millevoi 683",
- "street2": "",
- "street3": "",
- "city": "Roma",
- "province": "RM",
- "postalcode": "00178",
- "countrycode": "IT",
- "voice": "xxxxxxxx",
- "fax": "xxxxxxx",
- "authinfo": "",
- "consentforpublishing": 1,
- "nationalitycode": "",
- "entitytype": 0,
- "regcode": "",
- "schoolcode": "",
- "timestamp": 1563193303
- "success": true,
- "message": "",
- "error": null
Mettre à jour un contact
Cette méthode permet de mettre à jour les informations de contact telles que le nom, l'e-mail, la sphère privée ou la voix. Si le contact est un inscrit et que "nationalitycode", "entitytype" et "regcode" sont déjà remplis, ils ne peuvent plus être modifiés.
Authorizations:
Request Body schema: application/json
name | string Nom de la personne de contact |
org | string Contact Organisation |
street | string Adresse de contact |
city | string Contact Ville |
province | string Contact Province |
postalcode | string Code postal de la personne de contact |
countrycode | string Code pays de la personne de contact |
voice | string Numéro de téléphone de la personne de contact ; seul ce format international est accepté:'+39.3502285745'. |
string Contact E-mail | |
consentforpublishing | boolean Contact Protection des données |
nationalitycode | string Code de nationalité de la personne de contact |
entitytype | integer Enum: 0 1 2 3 4 5 6 7 Type de contact : - 0 : contact non enregistré ; - 1 : personnes physiques ; - 2 : sociétés, entreprises individuelles ; - 3 : professions libérales ; - 4 : organisations à but non lucratif ; - 5 : institutions publiques ; - 6 : autres sujets ; - 7 : sujets étrangers |
regcode | string Numéro d'identification fiscale ou numéro de TVA |
Responses
Response Schema: application/json
data | Array of any |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "consentforpublishing": false
Response samples
- 200
- 400
- 404
- 406
- 412
- 417
- "data": [ ],
- "message": "Greeting OK. Login OK. Contact 'AV-982654609' is now up to date. Logout OK.",
- "success": true,
- "error": null
Supprimer un contact
Cette méthode permet de supprimer un contact dans le système.
Authorizations:
Responses
Response Schema: application/json
data | Array of any |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/contact/%7Bhandle%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 400
- 403
- 404
- 412
- 417
- "data": [ ],
- "message": "Greeting OK. Login OK. Contatc 'AV-1485837405' not available, trying to delete... OK. Logout OK.",
- "success": true,
- "error": null
Vérifier le domaine
Cette méthode vous permet de déterminer si un domaine est disponible
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
Responses
Response Schema: application/json
data | Array of strings |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/check/%7Bdomain%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 400
- 412
- "data": [ ],
- "success": true,
- "message": "Greeting OK. Login OK. Domain 'provasitotest.it' is available. Logout OK.",
- "error": null
Liste de vos domaines
Cette méthode vous permet de consulter la liste des domaines enregistrés par votre profil.
Authorizations:
Responses
Response Schema: application/json
data | Array of strings |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": [
- "borsaimmobiliare.roma.it",
- "imasrl.it",
- "tranquilli.it",
- "astebabuino.it",
- "omasystem.it",
- "stimacasa.it",
- "baglioni.it",
- "centrirevisioni.it"
- "success": true,
- "message": "",
- "error": null
Enregistrer un nouveau domaine
Cette méthode permet d'enregistrer un nouveau domaine ou de transférer un domaine existant. Pour ajouter un nouveau domaine, il faut : 'domain', 'registrant', 'admin', 'tech', 'dns' ; pour transférer un domaine existant, il faut : 'domain', 'authinfo'.
Authorizations:
Request Body schema: application/json
domain required | string Nom de domaine |
authinfo required | string Code d'autorisation de domaine |
registrant required | string Identification du déclarant |
admin required | string Identifiant Admin |
tech required | Array of strings |
dns required | Array of strings |
Responses
Response Schema: application/json
data | Array of any |
success | boolean |
message | string |
price | integer |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "domain": "pagabolloaci.it",
- "registrant": "AV-1463493248976",
- "admin": "LS7743",
- "tech": [
- "AV-1463493248976"
- "dns": [
- "dns1.altravia.com",
- "dns2.altravia.com",
- "dns3.altravia.com"
Response samples
- 200
- 402
- 406
- 412
- 417
- 422
- "data": [ ],
- "message": "Greeting OK. Login OK. Domain 'pagabolloaci.it' is available. Domain 'pagabolloaci.it' created. Logout OK.",
- "price": 10,
- "success": true,
- "error": null
Single domain
Cette méthode permet de voir le domaine unique qui se réfère au paramètre passé dans le chemin d'accès
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
Responses
Response Schema: application/json
object (Domain_Object) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": {
- "status": [
- "ok"
- "domain": "altravia.it",
- "ns": [
- "dns1.altravia.com",
- "dns2.altravia.com",
- "dns3.altravia.com"
- "registrant": "AV-xxxxxxxxx",
- "admin": "AV-xxxxxxxx",
- "tech": "AV-xxxxxxxxx",
- "authinfo": "xxxxxxxxxx",
- "crDate": "2002-11-14T00:00:00.000+01:00",
- "exDate": "2020-02-21T23:59:59.000+01:00",
- "dnssec": [ ],
- "timestamp": 1565354292,
- "renewal_date": "09/09/2020"
- "success": true,
- "message": "",
- "error": null
Mettre à jour un domaine
Cette méthode permet de mettre à jour les informations de domaine telles que registrant, admin, tech ou dns. Tant "registrant" que "dns" doivent être mis à jour seuls, et non pas en combinaison avec d'autres paramètres, même ensemble.
Authorizations:
Request Body schema: application/json
registrant | string Identification du nouveau déclarant |
admin | string Identification du nouvel administrateur |
tech | Array of strings |
dns | Array of strings |
Responses
Response Schema: application/json
data | Array of any |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "dns": [
- "dns1.altravia.com",
- "dns2.altravia.com",
- "dns3.altravia.com"
Response samples
- 200
- 400
- 404
- 406
- 409
- 412
- 417
- "data": [ ],
- "message": "Greeting OK. Login OK. Adding NS: ns1.altravia.com. Adding NS: ns2.altravia.com. Adding NS: ns3.altravia.com. Domain 'yingyang.it' is now up to date. Logout OK.",
- "success": true,
- "error": null
Supprimer un domaine
Cette méthode permet de supprimer un domaine
Authorizations:
Responses
Response Schema: application/json
data | Array of any |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 400
- 404
- 412
- 417
- "data": [ ],
- "message": "Greeting OK. Login OK. Domain 'urbegas.it' not available, trying to delete... OK. Logout OK.",
- "success": true,
- "error": null
Obtenir le déclarant
Cette méthode vous indique qui est le contact du registrant de votre domaine
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
Responses
Response Schema: application/json
object | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D/registrant"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": {
- "registrant": "AV-1463493248976"
- "success": true,
- "message": "",
- "error": null
Obtenir l'admin
Cette méthode vous indique qui est le contact admin de votre domaine
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
Responses
Response Schema: application/json
object | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D/admin"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": {
- "admin": "AV-1463493248976"
- "success": true,
- "message": "",
- "error": null
Obtenir la technique
Cette méthode vous indique qui est le contact technique pour votre domaine
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
Responses
Response Schema: application/json
object | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D/tech"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 404
- "data": {
- "tech": "AV-1463493248976"
- "success": true,
- "message": "",
- "error": null
Effacer la technique
Cette méthode permet de supprimer un tech d'un domaine donné.
Authorizations:
path Parameters
domain required | string Example: altravia.it Nom de domaine |
handle required | string Example: AV-1463493248976 Nom technique |
Responses
Response Schema: application/json
data | Array of strings |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://domains.altravia.com/domain/%7Bdomain%7D/tech/%7Bhandle%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 400
- 404
- 412
- 417
- "data": [ ],
- "success": true,
- "message": "Greeting OK. Login OK. Removing TECH-C: LS7743. TECH-C LS7743 is deleted. Logout OK.",
- "error": null