알림 처리기
GET https://pushye.com/api/notification-handlers/
curl --request GET \
--url 'https://pushye.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
매개변수 | 세부사항 | 설명 |
---|---|---|
page | 선택 사항 정수 | 결과를 원하는 페이지 번호입니다. 기본값은 1 입니다. |
results_per_page | 선택 사항 정수 | 페이지당 원하는 결과 수는 얼마입니까? 허용되는 값은: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . 기본값은 25 입니다. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-02-05 12:46:56"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pushye.com/api/notification-handlers?&page=1",
"last": "https://pushye.com/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://pushye.com/api/notification-handlers?&page=1"
}
}
GET https://pushye.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://pushye.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.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": "2025-02-05 12:46:56"
}
}
POST https://pushye.com/api/notification-handlers
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 필수 문자열 | - |
type | 필수 문자열 | 허용된 값: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x , push_subscriber_id |
선택 사항 문자열 | 사용 가능 시: type = email 이메일 | |
webhook | 선택 사항 문자열 | 사용 가능 시: type = webhook 웹후크 URL |
slack | 선택 사항 문자열 | 사용 가능 시: type = slack 슬랙 웹후크 URL |
discord | 선택 사항 문자열 | 사용 가능 시: type = discord 디스코드 웹훅 URL |
telegram | 선택 사항 문자열 | 사용 가능 시: type = telegram 텔레그램 API 토큰 |
telegram_chat_id | 선택 사항 문자열 | 사용 가능 시: type = telegram 텔레그램 채팅 ID |
x_consumer_key | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_consumer_secret | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_access_token | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_access_token_secret | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
twilio | 선택 사항 문자열 | 사용 가능 시: type = twilio 전화번호 |
twilio_call | 선택 사항 문자열 | 사용 가능 시: type = twilio_call 전화번호 |
선택 사항 문자열 | 사용 가능 시: type = whatsapp 전화번호 |
curl --request POST \
--url 'https://pushye.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' \
--url 'https://pushye.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://pushye.com/api/notification-handlers/{notification_handler_id}
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 선택 사항 문자열 | - |
type | 선택 사항 문자열 | 허용된 값: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x , push_subscriber_id |
선택 사항 문자열 | 사용 가능 시: type = email 이메일 | |
webhook | 선택 사항 문자열 | 사용 가능 시: type = webhook 웹후크 URL |
slack | 선택 사항 문자열 | 사용 가능 시: type = slack 슬랙 웹후크 URL |
discord | 선택 사항 문자열 | 사용 가능 시: type = discord 디스코드 웹훅 URL |
telegram | 선택 사항 문자열 | 사용 가능 시: type = telegram 텔레그램 API 토큰 |
telegram_chat_id | 선택 사항 문자열 | 사용 가능 시: type = telegram 텔레그램 채팅 ID |
x_consumer_key | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_consumer_secret | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_access_token | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
x_access_token_secret | 선택 사항 문자열 | 사용 가능 시: type = x 텔레그램 API 토큰 |
twilio | 선택 사항 문자열 | 사용 가능 시: type = twilio 전화번호 |
twilio_call | 선택 사항 문자열 | 사용 가능 시: type = twilio_call 전화번호 |
선택 사항 문자열 | 사용 가능 시: type = whatsapp 전화번호 | |
is_enabled | 선택 사항 부울 | - |
curl --request POST \
--url 'https://pushye.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' \
--url 'https://pushye.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://pushye.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://pushye.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \