活动
GET https://vibes.su/api/campaigns/
curl --request GET \
--url 'https://vibes.su/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://vibes.su/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
参数 | 详情 | 描述 |
---|---|---|
page | 可选 整数 | 您想要获取结果的页码。默认为 1 。 |
results_per_page | 可选 整数 | 每页您想要的结果数量。允许的值为:10 , 25 , 50 , 100 , 250 , 500 , 1000 。默认为 25 。 |
{ "data": [ { "id": 1, "pixel_key": "1234567890abcdef", "name": "Example", "domain": "example.com", "branding": { "name": "", "url": "" }, "email_reports_is_enabled": true, "email_reports_last_datetime": "2019-05-22 23:40:17", "is_enabled": true, "last_datetime": null, "datetime": "2025-10-15 15:03:18", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://vibes.su/api/campaigns?page=1", "last": "https://vibes.su/api/campaigns?page=1", "next": null, "prev": null, "self": "https://vibes.su/api/campaigns?page=1" } }
GET https://vibes.su/api/campaigns/{campaign_id}
curl --request GET \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "pixel_key": "1234567890abcdef", "name": "Example", "domain": "example.com", "branding": { "name": "", "url": "" }, "email_reports_is_enabled": true, "email_reports_last_datetime": "2019-05-22 23:40:17", "is_enabled": true, "last_datetime": null, "datetime": "2025-10-15 15:03:18", } }
POST https://vibes.su/api/campaigns
参数 | 详情 | 描述 |
---|---|---|
domain_id | 可选 整数 | - |
name | 必需 字符串 | - |
domain | 必需 字符串 | - |
branding_name | 可选 字符串 | - |
branding_url | 可选 字符串 | - |
email_reports | 可选 数组 | 通知处理器 ID |
is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://vibes.su/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
--url 'https://vibes.su/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
{ "data": { "id": 1 } }
POST https://vibes.su/api/campaigns/{campaign_id}
参数 | 详情 | 描述 |
---|---|---|
domain_id | 可选 整数 | - |
name | 可选 字符串 | - |
domain | 可选 字符串 | - |
branding_name | 可选 字符串 | - |
branding_url | 可选 字符串 | - |
email_reports | 可选 数组 | 通知处理器 ID |
is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{ "data": { "id": 1 } }
DELETE https://vibes.su/api/campaigns/{campaign_id}
curl --request DELETE \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://vibes.su/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \