هندلرهای اعلان
GET https://biolink60.rbsrv.in/api/notification-handlers/
curl --request GET \
--url 'https://biolink60.rbsrv.in/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://biolink60.rbsrv.in/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| page | اختیاری Integer | شماره صفحهای که میخواهید نتایج از آن باشد. به طور پیشفرض 1 است. |
| results_per_page | اختیاری Integer | چند نتیجه میخواهید در هر صفحه نمایش داده شود. مقادیر مجاز عبارتند از: 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-12-27 06:29:32",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://biolink60.rbsrv.in/api/notification-handlers?page=1",
"last": "https://biolink60.rbsrv.in/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://biolink60.rbsrv.in/api/notification-handlers?page=1"
}
}
GET https://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://biolink60.rbsrv.in/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-12-27 06:29:32",
}
}
POST https://biolink60.rbsrv.in/api/notification-handlers
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| name | ضروری String | - |
| type | ضروری String | مقادیر مجاز: email , webhook , slack , discord , telegram , microsoft_teams |
| اختیاری String | در دسترس است زمانی که: type = email ایمیل | |
| webhook | اختیاری String | در دسترس است زمانی که: type = webhook آدرس URL وب هوک |
| slack | اختیاری String | در دسترس است زمانی که: type = slack URL وبهوک اسلک |
| discord | اختیاری String | در دسترس است زمانی که: type = discord URL وبهوک دیسکورد |
| telegram | اختیاری String | در دسترس است زمانی که: type = telegram توکن API تلگرام |
| telegram_chat_id | اختیاری String | در دسترس است زمانی که: type = telegram شناسه چت تلگرام |
| microsoft_teams | اختیاری String | در دسترس است زمانی که: type = microsoft_teams آدرس وبهوک مایکروسافت تیمز |
curl --request POST \
--url 'https://biolink60.rbsrv.in/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://biolink60.rbsrv.in/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://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| name | اختیاری String | - |
| type | اختیاری String | مقادیر مجاز: email , webhook , slack , discord , telegram , microsoft_teams |
| اختیاری String | در دسترس است زمانی که: type = email ایمیل | |
| webhook | اختیاری String | در دسترس است زمانی که: type = webhook آدرس URL وب هوک |
| slack | اختیاری String | در دسترس است زمانی که: type = slack URL وبهوک اسلک |
| discord | اختیاری String | در دسترس است زمانی که: type = discord URL وبهوک دیسکورد |
| telegram | اختیاری String | در دسترس است زمانی که: type = telegram توکن API تلگرام |
| telegram_chat_id | اختیاری String | در دسترس است زمانی که: type = telegram شناسه چت تلگرام |
| microsoft_teams | اختیاری String | در دسترس است زمانی که: type = microsoft_teams آدرس وبهوک مایکروسافت تیمز |
| is_enabled | اختیاری Boolean | - |
curl --request POST \
--url 'https://biolink60.rbsrv.in/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://biolink60.rbsrv.in/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://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://biolink60.rbsrv.in/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \