Get To-do List
API Overview
- Function: Get user's to-do list
- Request Method: GET
- Request URL: /api/users/{user_id}/todolist
Request Parameters
Parameter Name | Type | Location | Description | Example |
---|---|---|---|---|
user_id | integer | uri | User ID | 60000000001 |
page | integer | queryString | Page number | 1 |
per_page | integer | queryString | Items per page | 20 |
Request Demo
https://{{host}}/api/users/60000000001/todolist?appid={{appid}}&access_token={{access_token}}&page=1&per_page=10
Response Parameters
Parameter Name | Type | Description |
---|---|---|
total | integer | Total count |
list | [](object) | To-do list |
list[0].id | integer | To-do item ID |
list[0].survey_title | string | Survey title |
list[0].survey_id | integer | Survey ID |
list[0].survey_hash | string | Survey hash |
list[0].survey_scene | integer | Survey type: 1 Normal survey, 3 Exam survey |
list[0].created_at | string | To-do item creation time |
Response Demo
{
"code": "OK",
"error": {
"type": ""
},
"data": {
"list": [
{
"id": 4,
"survey_hash": "7714",
"survey_title": "todo",
"survey_id": 10010,
"survey_scene": 1,
"created_at": "2023-06-28 10:26:54"
},
{
"id": 3,
"survey_hash": "2451",
"survey_title": "问卷标题",
"survey_id": 10008,
"survey_scene": 1,
"created_at": "2023-06-15 20:08:51"
},
{
"id": 2,
"survey_hash": "e791",
"survey_title": "教师培训需求调查问卷",
"survey_id": 10007,
"survey_scene": 1,
"created_at": "2023-06-15 20:03:48"
}
],
"total": 3
},
"request_id": "de3e9316-458f-47c3-9e52-0b310f0d06e7"
}