കാമ്പെയ്നുകൾ
GET https://bitpeak.ru/api/campaigns/
curl --request GET \
--url 'https://bitpeak.ru/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://bitpeak.ru/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-12-08 14:36:09",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://bitpeak.ru/api/campaigns?page=1",
"last": "https://bitpeak.ru/api/campaigns?page=1",
"next": null,
"prev": null,
"self": "https://bitpeak.ru/api/campaigns?page=1"
}
}
GET https://bitpeak.ru/api/campaigns/{campaign_id}
curl --request GET \
--url 'https://bitpeak.ru/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://bitpeak.ru/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-12-08 14:36:09",
}
}
POST https://bitpeak.ru/api/campaigns
| പാരാമീറ്ററുകൾ | വിശദാംശങ്ങൾ | വിവരണം |
|---|---|---|
| domain_id | ഓപ്ഷണൽ ഇന്റീജർ | - |
| name | ആവശ്യമാണ് സ്ട്രിംഗ് | - |
| domain | ആവശ്യമാണ് സ്ട്രിംഗ് | - |
| branding_name | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| branding_url | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| email_reports | ഓപ്ഷണൽ അറേ | അറിയിപ്പ് ഹാൻഡ്ലർ ഐഡികൾ |
| is_enabled | ഓപ്ഷണൽ ബൂളിയൻ | - |
curl --request POST \
--url 'https://bitpeak.ru/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
--url 'https://bitpeak.ru/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://bitpeak.ru/api/campaigns/{campaign_id}
| പാരാമീറ്ററുകൾ | വിശദാംശങ്ങൾ | വിവരണം |
|---|---|---|
| domain_id | ഓപ്ഷണൽ ഇന്റീജർ | - |
| name | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| domain | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| branding_name | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| branding_url | ഓപ്ഷണൽ സ്ട്രിംഗ് | - |
| email_reports | ഓപ്ഷണൽ അറേ | അറിയിപ്പ് ഹാൻഡ്ലർ ഐഡികൾ |
| is_enabled | ഓപ്ഷണൽ ബൂളിയൻ | - |
curl --request POST \
--url 'https://bitpeak.ru/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://bitpeak.ru/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://bitpeak.ru/api/campaigns/{campaign_id}
curl --request DELETE \
--url 'https://bitpeak.ru/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://bitpeak.ru/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \