[Premium]{class="badge positive" title="檢視Target Premium包含的內容。"}

使用者許可權(Premium)

Adobe可讓客戶在使用Adobe Target時管理其使用者的許可權。 為了成功進行Adobe Target Delivery API呼叫,必須在API呼叫中傳遞具有正確許可權的Token。 若要深入瞭解使用者許可權及如何擷取Token,請瀏覽本檔案

curl -X POST \
  'https://demo.tt.omtrdc.net/rest/v1/delivery?client=demo&sessionId=d359234570e04f14e1faeeba02d6ab9914e' \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
      "context": {
        "channel": "web",
        "browser" : {
          "host" : "demo"
        },
        "address" : {
          "url" : "http://demo.dev.tt-demo.com/demo/store/index.html"
        },
        "screen" : {
          "width" : 1200,
          "height": 1400
        }
      },
      "property" : {
        "token": "08b62abd-c3e7-dfb2-da93-96b3aa724d81"
      },
        "execute": {
        "mboxes" : [
          {
            "name" : "homepage",
            "index" : 1
          }
        ]
      }
    }'

擁有對應的Token後,請針對每個API呼叫將其傳遞至property -> token。 如果未在每個API呼叫中傳遞property -> token,您將無法從Adobe Target取得任何content

{
    "status": 200,
    "requestId": "07ce783d-58b9-461c-9f4c-6873aeb00c01",
    "client": "demo",
    "id": {
        "tntId": "d359234570e04f14e1faeeba02d6ab9914e.28_7"
    },
    "edgeHost": "mboxedge28.tt.omtrdc.net",
    "execute": {
        "mboxes": [
            {
                "index": 1,
                "name": "homepage"
            }
        ]
    }
}

如上所示,若未傳遞property -> token,您將無法取得任何內容。 如果您期望從API呼叫取得內容,但並未從回應中擷取任何內容,很可能是因為未提供property -> token,或傳遞內容時沒有正確的許可權。

recommendation-more-help
6906415f-169c-422b-89d3-7118e147c4e3