Query Alarm List
Query the alarm list.
Request URL
GET {base_url}/{api_path}/wakeupcall/list?access_token={access_token}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
page | No | Integer | Define which page is displayed. |
page_size | No | Integer | Define how many records per page. |
Response parameters
Parameter | Type | Description |
---|---|---|
errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
errmsg | String | Returned message.
|
data | Array <Wakeup_Info> | Alarm list. |
- Wakeup_Info
-
Table 3. Parameter Type Description ext_id Integer The unique ID of an extension. wakeup_call Array <Extension_Wakeup> The alarm information of the extension.
- Extension_Wakeup
-
Table 4. Parameter Type Description id Integer The unique ID of an alarm. alarm_time String Alarm time. repeat_type String How often will the alarm be repeated. number_of_snoozes Integer How many times will the alarm be repeated. snooze_duration String The interval in minutes between each repeat. alarm_prompt String The name of alarm prompt.
Examples
Request example
GET /openapi/v1.0/wakeupcall/list?access_token=ojPrvnfzPdwc8OCcRmhG16gEHuZcwFco HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"data": [
{
"ext_id": 39,
"wakeup_call": [
{
"id": 19,
"alarm_time": "09:30",
"repeat_type": "never",
"number_of_snoozes": 3,
"snooze_duration": 5,
"alarm_prompt": "alarm_prompt"
},
{
"id": 21,
"alarm_time": "07:00",
"repeat_type": "never",
"number_of_snoozes": 2,
"snooze_duration": 1,
"alarm_prompt": "alarm_prompt"
}
]
},
{
"ext_id": 223,
"wakeup_call": [
{
"id": 20,
"alarm_time": "07:00",
"repeat_type": "never",
"number_of_snoozes": 2,
"snooze_duration": 1,
"alarm_prompt": "alarm_prompt"
}
]
}
]
}