-
Notifications
You must be signed in to change notification settings - Fork 9
Notification
Zijun Chen edited this page Mar 26, 2019
·
2 revisions
get the list of notification
| Method | Path | Auth |
|---|---|---|
| POST | v1/notification/list | User |
Request Parameters
| Parameter | Type | Optional | Data Type | Description |
|---|---|---|---|---|
| - | - | - | - | - |
v1/notification/list?
Possible Error Codes
| Error Code | Description | Note |
|---|---|---|
| - | - | - |
Success Example
{
"code": 0,
"msg": "OK",
"data": {
"notifications": [
{
"_id": "5b5ad175d1cbcc1dc262a74f",
"name": "--default--",
"type": "email",
"setting": {
"email": "[email protected]"
}
},
{
"_id": "5b5c4e72d913333fca0e18b9",
"name": "method1",
"type": "serverchan",
"setting": {
"sckey": "SCU10...be"
}
}
]
}
}Server chan site: http://sc.ftqq.com/3.version
| Method | Path | Auth |
|---|---|---|
| POST | v1/notification/add_serverchan | User |
Request Parameters
| Parameter | Type | Optional | Data Type | Description |
|---|---|---|---|---|
| name | Query String | - | String | Name |
| sckey | Query String | - | String | Server chan key |
v1/notification/add_serverchan?name=method1&sckey=SCU10...be
Possible Error Codes
| Error Code | Description | Note |
|---|---|---|
| - | - | - |
Success Example
{
"code": 0,
"msg": "OK",
"data": {
"notificationId": "5b5c4e72d913333fca0e18b9"
}
}