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
Boost डेलिगेशन प्राप्त करें
अपने खाते के सक्रिय और रद्द किए गए boost डेलिगेशन एक बार में एक पेज के रूप में सूचीबद्ध करें। प्रत्येक आइटम एक owner, payer और प्लेटफ़ॉर्म है।
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 } }
}
अपने खाते के boost डेलिगेशन, सक्रिय और रद्द किए गए दोनों, एक बार में एक पेज के रूप में सूचीबद्ध करें। प्रत्येक आइटम एक owner, payer और प्लेटफ़ॉर्म है। अनुरोध अपने Primary 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 } }
}