通过用户ID,获取指定用户的工作开放时间列表。
Request
HTTP request
GET https://www.featapi.com/api/user/opentime/{id}/
Parameters
Path parameters
Parameter name | Value | Description |
---|---|---|
id | string | 用户 ID |
Authorization
该请求需要授权以下scopes访问权限:
Scopes |
---|
user_opentime |
For more information, see the authentication and authorization page.
Request body
无需提交请求体信息。
Response
如果请求成功,根据path参数指定的用户ID,该API返回指定用户的User.OpenTime工作开放时间列表在响应体信息。
200 Returns other user’s OpenTime list successfully
{
"data":[ {
"start":"2020-01-03T00:10:00Z",
"until":"2020-01-03T12:10:00Z",
"timezone":"Asia/Shanghai",
"weekdays":[1,2,3],
"repeat_start":"2020-01-03T00:32:12Z"
}, {
"start":"2020-01-03T01:15:00Z",
"until":"2020-01-03T13:15:00Z",
"timezone":"Asia/Shanghai",
"weekdays":[4,5],
"repeat_start":"2020-01-03T00:32:12Z" }]
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found