curl --request GET \
--url https://api.gextra.net/fr/customId/{id}import requests
url = "https://api.gextra.net/fr/customId/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gextra.net/fr/customId/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gextra.net/fr/customId/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gextra.net/fr/customId/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gextra.net/fr/customId/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gextra.net/fr/customId/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "commercial",
"data": {
"id": 123,
"customId": "<string>",
"type": "commercial.type.email",
"sejourType": "<string>",
"resultat": "commercial.resultat.refuse",
"motif": "<string>",
"comment": "<string>",
"commentBy": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>"
}
}récupérer les données d'un customId
Renvoie l’entrée rattachée à un customId, et le type de dossier dans lequel elle a été trouvée. Un customId peut désigner une démarche commerciale, un message (survey) ou une candidature (postuler) : la recherche passe les trois. Le type rendu est toujours celui de l’entrée trouvée — il n’est jamais rendu sans sa data.
curl --request GET \
--url https://api.gextra.net/fr/customId/{id}import requests
url = "https://api.gextra.net/fr/customId/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gextra.net/fr/customId/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gextra.net/fr/customId/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gextra.net/fr/customId/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gextra.net/fr/customId/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gextra.net/fr/customId/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "commercial",
"data": {
"id": 123,
"customId": "<string>",
"type": "commercial.type.email",
"sejourType": "<string>",
"resultat": "commercial.resultat.refuse",
"motif": "<string>",
"comment": "<string>",
"commentBy": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>"
}
}Permet à antipodes de savoir l’etat actuel des données rattachées à un customId sur gextra. surtout utile au cas ou le webhook n’a pas marché. Un même customId peut avoir été posé sur une démarche commerciale (
commercial/create), un message
(survey/create) ou une candidature (announcement/postuler) : la route cherche dans les trois, et
type dit dans lequel l’entrée a été trouvée. Les champs de data sont ceux que le webhook envoie
déjà pour ce type d’entrée.
Un customId introuvable dans les trois répond 404 avec code: "NORESULT" — jamais un type
sans data.Path Parameters
Le customId envoyé à la création de l'entrée.
"1-3-9-1752229975"
Query Parameters
Mot de passe pour l'accès sécurisé
"your_password_here"
Response
Entrée trouvée.
Entrée rattachée à un customId. Les champs de data sont ceux que le webhook envoie déjà pour ce type d'entrée.
Type de dossier où l'entrée a été trouvée :
commercial - démarche commerciale (commercial/create)
survey - message : contact, satisfaction ou réclamation (survey/create)
postuler - candidature à une annonce (announcement/postuler)
commercial, survey, postuler Démarche commerciale (type = commercial).
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes

