マーケティング履歴の操作 interacting-with-marketing-history

The 履歴 endpoint を使用すると、プロファイルのマーケティング履歴を操作できます。
これにより、例えば、プロファイルに送信された配信のミラーページを簡単に取得できます。 これを行うには、次の手順に従います。

  1. でのGETの実行 履歴 エンドポイントとプロファイルのプライマリキー。
  2. でのGETリクエストの実行 イベント href が返した。
  3. プロファイルのイベントのリストと、 mirrorPage ノード。

リクエストのサンプル

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

「events」ノードは、プロファイル上のイベントにアクセスするための URL を返します。

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

返されたイベント href に対してGETリクエストを実行します。

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

「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