Bildirim işleyicileri

GET https://popupke.com/api/notification-handlers/
curl --request GET \
--url 'https://popupke.com/api/notification-handlers/' \
--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, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2021-06-27 22:16:23" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://popupke.com/api/notification-handlers?&page=1", "last": "https://popupke.com/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://popupke.com/api/notification-handlers?&page=1" } }
GET https://popupke.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2021-06-27 22:16:23" } }
POST https://popupke.com/api/notification-handlers
Parametreler Detaylar Açıklama
name Gerekli String -
type Gerekli String İzin verilen değerler: email , telegram
email İsteğe bağlı String Mevcut olduğunda: type = email E-posta
webhook İsteğe bağlı String Mevcut olduğunda: type = webhook Web kancası URL'si
slack İsteğe bağlı String Mevcut olduğunda: type = slack Gevşek web kancası URL'si
discord İsteğe bağlı String Mevcut olduğunda: type = discord Discord webhook URL'si
telegram İsteğe bağlı String Mevcut olduğunda: type = telegram Telegram API Token
telegram_chat_id İsteğe bağlı String Mevcut olduğunda: type = telegram Telegram Sohbet Kimliği
curl --request POST \
--url 'https://popupke.com/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{ "data": { "id": 1 } }
POST https://popupke.com/api/notification-handlers/{notification_handler_id}
Parametreler Detaylar Açıklama
name İsteğe bağlı String -
type İsteğe bağlı String İzin verilen değerler: email , telegram
email İsteğe bağlı String Mevcut olduğunda: type = email E-posta
webhook İsteğe bağlı String Mevcut olduğunda: type = webhook Web kancası URL'si
slack İsteğe bağlı String Mevcut olduğunda: type = slack Gevşek web kancası URL'si
discord İsteğe bağlı String Mevcut olduğunda: type = discord Discord webhook URL'si
telegram İsteğe bağlı String Mevcut olduğunda: type = telegram Telegram API Token
telegram_chat_id İsteğe bağlı String Mevcut olduğunda: type = telegram Telegram Sohbet Kimliği
is_enabled İsteğe bağlı Boolean -
curl --request POST \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
{ "data": { "id": 1 } }
DELETE https://popupke.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \