Interazione con lo storico dei dati marketing interacting-with-marketing-history
L'endpoint history ti consente di interagire con la cronologia di marketing di un profilo.
In questo modo, ad esempio, puoi recuperare facilmente la pagina speculare per una consegna inviata a un profilo. A questo scopo, segui la procedura indicata di seguito:
- Esegui un GET con l'endpoint history e la chiave primaria del profilo.
- Esegui una richiesta GET per i eventi href restituiti.
- Restituisce l'elenco degli eventi per il profilo con collegamenti alle pagine mirror nel nodo mirrorPage.
Richiesta di esempio
Recupera la cronologia di marketing del profilo con una richiesta GET.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/"<PKEY>" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Il nodo "events" restituisce l’URL che ti consente di accedere agli eventi sul profilo.
{
"PKey": "<PKEY>",
"firstName": "John",
"lastName":"Doe",
"birthDate": "1980-10-24",
"events": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/<PKEY>/events/",
"metadata": "subHisto"
},
}
Eseguire una richiesta GET sugli eventi href restituiti.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/<PKEY>/events \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Restituisce l’elenco degli eventi per il profilo con collegamenti alle pagine mirror nel nodo "mirrorPage".
{
"PKey": "<PKEY>",
"category": "email",
"date": "2018-05-17 08:44:49.366Z",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/<PKEY>/events/<PKEY>",
"label": "Send via email",
"mirrorPage": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/<PKEY>/events/<PKEY>/mirrorPage/"
},
"type": "outbound"
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff