1. Récupération des codes de tracking d'une offre touristique
La première étape consiste à récupérer les codes de tracking d'une offre touristique à partir du flux aggrégé d'une syndication.
POST /api/syndications/{{clientId}}/{{syndicationId}}
HTTP
POST /api/syndications/aquitaine.tourinsoft.com/dd780723-d724-4654-a505-e41bcdd1bfb2 HTTP/1.1
Host: api-v3.tourinsoft.com
Content-Type: application/json
["HOTAQU000V501517"]
Réponse :
On récupère ainsi le contenu de l'offre avec les codes de tracking présent dans la propriété TisTracking. Pour rappel, cette propriété n'est disponible que pour les syndications ayant un flux typé et un tracking actif.
application/json, text/json
{
"value": [
{
"Structure": {
"SyndicStructureId": "8fcf1eba-f66d-494d-97da-eebe98784a67",
"Name": "ADT 79",
"Email": "tourisme.adt@deux-sevres.fr",
"EmailName": "Mission Tourisme - Département des Deux-Sèvres",
"Url": "http://www.tourisme-deux-sevres.com",
...
},
"TisTracking": {
"SyndicObjectId": "HOTAQU000V501517",
"CodeOffre": "22-HOTAQU000V501517-",
"CodeStructure": "7-",
"CodeSyndication": "2-188-95213-"
},
"SyndicObjectID": "HOTAQU000V501517",
"Published": "2018-11-29T11:17:27.247",
"Updated": "2018-11-29T11:17:24.553",
...,
"TIS_TRACKING_OFFRE": "...",
"TIS_TRACKING_LISTING_OFFRE": "..."
}
]
}