Kampanyalar
GET https://popupke.com/api/campaigns/
curl --request GET \
--url 'https://popupke.com/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.com/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler | Detaylar | Açıklama |
---|---|---|
page | İsteğe bağlı Tamsayı | Sonuç almak istediğiniz sayfa numarası. Varsayılan olarak 1 'dir. |
results_per_page | İsteğe bağlı Tamsayı | Sayfa başına kaç sonuç istiyorsunuz? İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Varsayılan olarak 25 şeklindedir. |
{
"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": "2019-05-22 23:40:17"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://popupke.com/api/campaigns?&page=1",
"last": "https://popupke.com/api/campaigns?&page=1",
"next": null,
"prev": null,
"self": "https://popupke.com/api/campaigns?&page=1"
}
}
GET https://popupke.com/api/campaigns/{campaign_id}
curl --request GET \
--url 'https://popupke.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.com/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": "2019-05-22 23:40:17"
}
}
POST https://popupke.com/api/campaigns
Parametreler | Detaylar | Açıklama |
---|---|---|
domain_id | İsteğe bağlı Tamsayı | - |
name | Gerekli String | - |
domain | Gerekli String | - |
branding_name | İsteğe bağlı String | - |
branding_url | İsteğe bağlı String | - |
email_reports | İsteğe bağlı Sırala | Bildirim işleyici kimlikleri |
is_enabled | İsteğe bağlı Boolean | - |
curl --request POST \
--url 'https://popupke.com/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
--url 'https://popupke.com/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://popupke.com/api/campaigns/{campaign_id}
Parametreler | Detaylar | Açıklama |
---|---|---|
domain_id | İsteğe bağlı Tamsayı | - |
name | İsteğe bağlı String | - |
domain | İsteğe bağlı String | - |
branding_name | İsteğe bağlı String | - |
branding_url | İsteğe bağlı String | - |
email_reports | İsteğe bağlı Sırala | Bildirim işleyici kimlikleri |
is_enabled | İsteğe bağlı Boolean | - |
curl --request POST \
--url 'https://popupke.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://popupke.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://popupke.com/api/campaigns/{campaign_id}
curl --request DELETE \
--url 'https://popupke.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \