curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}
Boost on Behalf
获取推广授权
分页列出您账户中有效和已撤销的推广授权。每一项对应一个所有者、付款方和平台的组合。
GET
/
ads
/
delegations
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}
分页列出您账户中的推广授权,包括有效的和已撤销的。每一项对应一个所有者、付款方和平台的组合。请使用 Primary Profile(主 Profile)的 API Key 发送请求,且不要附带
Profile-Key。
如需获取下一页,请将响应中的 meta.pagination.next 作为 next 发送。当 meta.pagination.hasMore 为 false 时,表示您已获取全部推广授权。
请求头参数
查询参数
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/delegations?limit=100"
{
"status": "success",
"delegations": [
{
"id": "Kx3v9QpL2mZ7tR1wYb4N",
"owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
"payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
"platform": "instagram",
"permission": "unknown",
"status": "revoked",
"revokedReason": "api"
}
],
"meta": { "pagination": { "hasMore": false, "limit": 100 } }
}