The 履歴 endpoint を使用すると、プロファイルのマーケティング履歴を操作できます。
これにより、例えば、プロファイルに送信された配信のミラーページを簡単に取得できます。 これを行うには、次の手順に従います。
リクエストのサンプル
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"
}