分页
默认情况下,一个列表中加载25个资源。
_lineCount ?参数允许您限制响应中列出的资源数。 然后,可以使用? next ?节点显示下一个结果。
NOTE
始终使用? next ?节点中返回的鲍搁尝值执行分页请求。
已计算?**冲濒颈苍别厂迟补谤迟**?请求,必须始终在? next ?节点中返回的鲍搁尝中使用。
示例请求
用于显示配置文件资源1条记录的示例骋贰罢请求。
-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 ?参数添加到调用鲍搁尝中。
-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>'
NOTE
在Campaign Standard XtkBigTableThreshold ?选项中定义了表被视为大于此值的记录数。 默认值为100,000条记录。
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff