Notification handlers
GET https://push.axiox.net/api/notification-handlers/
curl --request GET \
--url 'https://push.axiox.net/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://push.axiox.net/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
參數 | Details | 描述 |
---|---|---|
page | 可選 整數 | 你想要結果的頁碼。默認為 1 . |
results_per_page | 可選 整數 | 每頁需要多少個結果。允許的值為:10 , 25 , 50 , 100 , 250 , 500 , 1000 。默認為 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-26 20:14:02"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://push.axiox.net/api/notification-handlers?&page=1",
"last": "https://push.axiox.net/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://push.axiox.net/api/notification-handlers?&page=1"
}
}
GET https://push.axiox.net/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://push.axiox.net/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://push.axiox.net/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-26 20:14:02"
}
}
POST https://push.axiox.net/api/notification-handlers
參數 | Details | 描述 |
---|---|---|
name | 必需 字符串 | - |
type | 必需 字符串 |
Warning: Undefined property: stdClass::$email_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$webhook_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$slack_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$discord_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$telegram_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$microsoft_teams_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$twilio_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$twilio_call_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$whatsapp_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$x_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Allowed values:
|
可選 字符串 | Available when: type = email Email | |
webhook | 可選 字符串 | Available when: type = webhook Webhook URL |
slack | 可選 字符串 | Available when: type = slack Slack webhook URL |
discord | 可選 字符串 | Available when: type = discord Discord webhook URL |
telegram | 可選 字符串 | Available when: type = telegram Telegram API Token |
telegram_chat_id | 可選 字符串 | Available when: type = telegram Telegram Chat ID |
x_consumer_key | 可選 字符串 | Available when: type = x Telegram API Token |
x_consumer_secret | 可選 字符串 | Available when: type = x Telegram API Token |
x_access_token | 可選 字符串 | Available when: type = x Telegram API Token |
x_access_token_secret | 可選 字符串 | Available when: type = x Telegram API Token |
curl --request POST \
--url 'https://push.axiox.net/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
--url 'https://push.axiox.net/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
{
"data": {
"id": 1
}
}
POST https://push.axiox.net/api/notification-handlers/{notification_handler_id}
參數 | Details | 描述 |
---|---|---|
name | 可選 字符串 | - |
type | 可選 字符串 |
Warning: Undefined property: stdClass::$email_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$webhook_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$slack_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$discord_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$telegram_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$microsoft_teams_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$twilio_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$twilio_call_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$whatsapp_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Warning: Undefined property: stdClass::$x_is_enabled in /home/u777764674/domains/axiox.net/public_html/PushNotifications/app/includes/notification_handlers.php on line 22
Allowed values:
|
可選 字符串 | Available when: type = email Email | |
webhook | 可選 字符串 | Available when: type = webhook Webhook URL |
slack | 可選 字符串 | Available when: type = slack Slack webhook URL |
discord | 可選 字符串 | Available when: type = discord Discord webhook URL |
telegram | 可選 字符串 | Available when: type = telegram Telegram API Token |
telegram_chat_id | 可選 字符串 | Available when: type = telegram Telegram Chat ID |
x_consumer_key | 可選 字符串 | Available when: type = x Telegram API Token |
x_consumer_secret | 可選 字符串 | Available when: type = x Telegram API Token |
x_access_token | 可選 字符串 | Available when: type = x Telegram API Token |
x_access_token_secret | 可選 字符串 | Available when: type = x Telegram API Token |
is_enabled | 可選 布爾 | - |
curl --request POST \
--url 'https://push.axiox.net/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' \
--url 'https://push.axiox.net/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://push.axiox.net/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://push.axiox.net/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://push.axiox.net/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \