获取当前登录用户的工作开放时间列表。
Request
HTTP request
GET https://www.featapi.com/api/user/opentime/
Parameters
无需添加参数。
Authorization
该请求需要授权以下scopes访问权限:
Scopes |
---|
user_opentime |
For more information, see the authentication and authorization page.
Request body
无需提交请求体信息。
Response
如果请求成功,该API返回当前登录用户的User.OpenTime工作开放时间列表在响应体信息中。
200 Returns current user’s OpenTime data successfully
{
"data": [
{
"start": "2019-12-30T00:00:00Z",
"until": "2019-12-30T12:00:00Z",
"timezone": "Asia/Shanghai",
"weekdays": [
0,
1,
2
],
"repeat_start": "2019-12-30T11:59:34Z"
},
{
"start": "2019-12-30T11:00:00Z",
"until": "2019-12-30T14:00:00Z",
"timezone": "Asia/Shanghai",
"weekdays": [
3,
4,
5,
6
],
"repeat_start": "2019-12-30T11:59:34Z"
}
]
}