카운팅
Adobe Campaign REST API는 요청의 레코드 수를 카운트할 수 있습니다. 이렇게 하려면 count 노드에서 반환된 URL을 사용합니다.
샘플 요청
messageType 값이 "sms"인 모든 서비스를 계산하려면 byChannel 필터로 GET 요청을 수행하십시오.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/byChannel?channel=sms \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
필터에 해당하는 서비스를 반환합니다.
{
"content": [
{
...
"messageType": "sms",
"mode": "newsletter",
"name": "SVC6",
...
},
...
],
"count": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/byChannel/_count?channel=sms&_lineStart=@iKTZ2q3IiSEDqZ5Nw1vdoGnQCqF-8DAUJRaVwR9obqqTxhMy"
},
"serverSidePagination": true
}
count 노드의 URL에 대해 GET 요청을 수행하여 결과 수를 검색합니다.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/service/byChannel/_count?channel=sms&_lineStart=@iKTZ2q3IiSEDqZ5Nw1vdoGnQCqF-8DAUJRaVwR9obqqTxhMy \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
레코드 수를 반환합니다.
{
"count": 26
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff