Виджеты
GET https://popup.bz/api/notifications/
curl --request GET \
--url 'https://popup.bz/api/notifications/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popup.bz/api/notifications/' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Подробнее | Описание |
---|---|---|
page | Optional Integer | The page number that you want results from. Defaults to 1 . |
results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Defaults to 25 . |
{
"data": [
{
"id": 1,
"campaign_id": 1,
"notification_key": "d4752d29a557a9fdc67b0a9a27cbe3b1",
"name": "Email Collector",
"type": "EMAIL_COLLECTOR",
"settings": {
...
},
"is_enabled": false,
"last_datetime": null,
"datetime": "2019-05-29 22:30:29"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://popup.bz/api/notifications?&page=1",
"last": "https://popup.bz/api/notifications?&page=1",
"next": null,
"prev": null,
"self": "https://popup.bz/api/notifications?&page=1"
}
}
GET https://popup.bz/api/notifications/{notification_id}
curl --request GET \
--url 'https://popup.bz/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popup.bz/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"campaign_id": 1,
"notification_key": "d4752d29a557a9fdc67b0a9a27cbe3b1",
"name": "Email Collector",
"type": "EMAIL_COLLECTOR",
"settings": {
...
},
"is_enabled": false,
"last_datetime": null,
"datetime": "2019-05-29 22:30:29"
}
}
DELETE https://popup.bz/api/notifications/{notification_id}
curl --request DELETE \
--url 'https://popup.bz/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popup.bz/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \