Перейти к содержимому

Check a spending request

Это содержимое пока не доступно на вашем языке.

scope campaigns:readreads

Returns where a request to a person stands — pending (not answered yet), approved (the launch, top-up or ending was carried out), rejected, expired (nobody answered in time) or cancelled (the key was revoked) — for an approvalId that campaign_activate, campaign_budget_add or campaign_end returned with approval_required.

Everything the agent is told about this tool

Returns where a request to a person stands — pending (not answered yet), approved (the launch, top-up or ending was carried out), rejected, expired (nobody answered in time) or cancelled (the key was revoked) — for an approvalId that campaign_activate, campaign_budget_add or campaign_end returned with approval_required. kind says which of the three it was. Only requests this token made can be read (approval_not_found otherwise). Use it to learn the outcome after approval_required, polling no faster than every few seconds; do not call the tool that asked again while a request is pending. Example: {"approvalId": "<approvalId from the 202 answer>"}.

Name Type Required Description
approvalId string yes The approvalId that campaign_activate returned.
curl https://countviews.com/api/public/v1/call \
-H "Authorization: Bearer $COUNTVIEWS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"approval_status","arguments":{"approvalId":"0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001"}}'