Skip to content

Notification

Zijun Chen edited this page Mar 26, 2019 · 2 revisions

Notification list

get the list of notification

Method Path Auth
POST v1/notification/list User

Request

Request Parameters
Parameter Type Optional Data Type Description
- - - - -

v1/notification/list?

Response

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"
                }
            }
        ]
    }
}

Add notification method (Serverchan)

Server chan site: http://sc.ftqq.com/3.version

Method Path Auth
POST v1/notification/add_serverchan User

Request

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

Response

Possible Error Codes
Error Code Description Note
- - -

Success Example

{
    "code": 0,
    "msg": "OK",
    "data": {
        "notificationId": "5b5c4e72d913333fca0e18b9"
    }
}

Clone this wiki locally