Interactuar con el historial de marketing interacting-with-marketing-history

El historia el punto de conexión permite interactuar con el historial de marketing de un perfil.
De este modo, puede, por ejemplo, recuperar fácilmente la página espejo de una entrega enviada a un perfil. Para realizar esto, siga los pasos a continuación:

  1. Realice una GET con historia extremo y clave principal del perfil.
  2. Realice una solicitud de GET en eventos href devuelto.
  3. Devuelve la lista de eventos del perfil con vínculos a páginas espejo en el mirrorPage nodo.

Solicitud de ejemplo

Recupere el historial de marketing del perfil con una solicitud de 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>'

El nodo "events" devuelve la dirección URL que le permite acceder a los eventos del perfil.

{
  "PKey": "<PKEY>",
  "firstName": "John",
  "lastName":"Doe",
  "birthDate": "1980-10-24",
  "events": {
    "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/history/<PKEY>/events/",
    "metadata": "subHisto"
    },
}

Realice una solicitud de GET sobre los eventos href devueltos.

-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>'

Devuelve la lista de eventos para el perfil con vínculos a páginas espejo en el 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