依預設,清單中會載入25個資源。
_lineCount參數允許您限制響應中列出的資源數。 然後,可以使用next節點來顯示下一個結果。
請務必使用next節點中傳回的URL值來執行分頁請求。
會計算**_lineStart**請求,且必須一律使用在next節點中傳回的URL中。
請求範例
顯示1個描述檔資源記錄的範例GET請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile?_lineCount=1 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
回應請求,並使用next節點執行分頁。
{
"content": [
{
"PKey": "<PKEY>",
"firstName": "John",
"lastName":"Doe",
"birthDate": "1980-10-24",
...
}
],
"next": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/email?_lineCount=10&_
lineStart=@Qy2MRJCS67PFf8soTf4BzF7BXsq1Gbkp_e5lLj1TbE7HJKqc"
}
...
}
預設情況下,與具有大量資料的表交互時,next節點不可用。 若要執行分頁,您必須將_forcePagination=true參數新增至呼叫URL。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile?_forcePagination=true \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Campaign Standard XtkBigTableThreshold選項中定義了表被視為大的記錄數。 預設值為100,000條記錄。