De geografische eenheid van een profiel ophalen
18 augustus 2023
- Van toepassing op:
- Campaign Standard
- Onderwerpen:
- API
Gemaakt voor:
- Ervaren
- Ontwikkelaar
- Voer een GET verzoek op het profiel PKey uit om terug te winnen geoUnit URL.
- Voer een verzoek van de GET op URL uit om meer details over de Geografische eenheid terug te winnen.
Voorbeeldverzoek
Haal de profielrecord op.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/profile/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
De geoUnit URL voor het profiel wordt geretourneerd.
{
...
"geoUnit": {
"PKey": "@zYV4vIjP1wpBebml6s71hjGiDhs4_gHgbC_UhuJFk8h7XTZxZ5QnZrPnQPEfB__TxwR2ge6sz61D8RR4zvD75CLDZtc<PKEY>",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
"title": "All (all)"
},
...
}
Voer een verzoek van de GET op URL uit om meer informatie terug te winnen.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/geoUnitBase/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Het geeft details over de geografische eenheid.
{
"PKey": "<PKEY>",
"created": "2019-04-02 22:36:13.252Z",
"desc": "Default geographical entity (accessible to everyone)",
"label": "All",
"lastModified": "2019-04-03 08:17:19.100Z",
"name": "all",
"parentTitle": "",
"title": "All (all)"
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff