keitaro-api-skill/references/paths/campaigns_deleted.yaml

38 lines
911 B
YAML

get:
tags:
- Campaigns
security:
- ApiKeyAuth: []
summary: Get deleted campaigns
description: Get deleted campaigns
responses:
'200':
description: Returns deleted campaigns
content:
application/json:
schema:
type: array
items:
$ref: ../schemas/Campaign.yaml
'400':
$ref: ../responses/BadRequest.yaml
'401':
$ref: ../responses/Unauthorized.yaml
'402':
$ref: ../responses/PaymentRequired.yaml
'500':
$ref: ../responses/InternalError.yaml
x-code-samples:
- lang: PHP
source: >-
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
'http://example.com/admin_api/v1/campaigns/deleted');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Api-Key: your-api-key'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);