De organisatorische eenheid van een profiel ophalen retrieving-organizational-units

  1. Voer een verzoek van GET op het profiel PKey uit om orgUnit URL terug te winnen.
  2. Voer een GET-verzoek uit op de URL om meer informatie over de Organizer-eenheid op te halen.

verzoek van de Steekproef

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 URL orgUnit voor het profiel wordt geretourneerd.

{
  ...
  "orgUnit": {
    "PKey": "<PKEY>",
    "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
    "title": "All (all)"
    },
  ...
}

Voer een GET-verzoek uit op de URL om meer informatie op te halen.

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<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 organisatorische eenheid terug.

{
  "PKey": "<PKEY>",
  "created": "2019-04-02 22:36:13.252Z",
  "desc": "",
  "label": "Brand 4",
  "lastModified": "2019-04-03 08:17:19.100Z",
  "name": "brand4",
  "parentTitle": "All (all)",
  "title": "Brand 4 (brand4)"
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff