Dies ist ein dreistufiges Verfahren.
Ist die Löschanfrage erfolgreich, lautet der Antwortstatus "204 Kein Inhalt".
Beispielanfrage
Die folgenden beispielhaften Payloads zeigen, wie Sie ein Profil von einem Service abmelden können. Führen Sie zuerst eine GET-Anfrage aus, um das Profil abzurufen.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Gibt die Anmeldungs-URL für das Profil zurück.
{
...
"postalAddress":...,
"preferredLanguage": "none",
"subscriptions": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/<PKEY>/subscriptions/"
},
}
Führen Sie eine GET-Anfrage für die Anmeldungs-URL aus.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/<PKEY>/subscriptions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Es wird eine Liste der Anmeldungen für das ausgewählte Profil mit einer URL für jeden abonnierten Dienst zurückgegeben.
...
"service": {
"PKey": "<PKEY>",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY>",
"label": "Sport Newsletter",
"name": "SVC1",
"title": "Sport Newsletter (SVC1)"
},
...
Führen Sie eine DELETE-Anfrage für die gewünschte Dienst-URL aus.
-X DELETE https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Dies ist ein dreistufiges Verfahren.
Ist die Löschanfrage erfolgreich, lautet der Antwortstatus "204 Kein Inhalt".
Beispielanfrage
Rufen Sie den Dienstdatensatz ab.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Es wird die Anmeldungs-URL für den Dienst zurückgegeben.
{
...
"messageType": "email",
"mode": "newsletter",
"name": "SVC3",
"subScenarioEventType": "subscriptionEvent",
"subscriptions": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY>/subscriptions/"
},
"targetResource": "profile",
...
},
Führen Sie eine GET-Anfrage für die Anmeldungs-URL aus.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY>/subscriptions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Für den ausgewählten Dienst wird die Liste aller Anmeldungen zurückgegeben, wobei für jede Profilanmeldung eine URL (href) angegeben ist.
{
"PKey": "<PKEY>",
"created": "2019-03-26 08:58:04.764Z",
"email": "",
"expirationDate": "",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY>/subscriptions/<PKEY>",
"metadata": "subscriptionRcp",
"service": ...,
"serviceName": "SVC3",
"subscriber": ...,
...
}
Führen Sie eine DELETE-Anfrage für die gewünschte Profilanmeldungs-URL aus.
-X DELETE https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/<PKEY>/subscriptions/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'