1. List user's Consultant Working Time (api2/users/list_worktime)
This method will answer with a collection of a specific user workable frame (located on Admin->Manage Users->Work Time). The collection wil be in JSON format.
If the User is not a consultant, the workable frame will be always from 0 to 0.
The time value will be a number between 0 and 1440. The values are the number of minutes elapsed from 00:00 am.
time_from1 and time_to1 are the initial and final time for Mondays. time_from7 and time_to7 are the initial and final time for Sundays.
URL
| Environment |
URL |
HTTP Method |
| UAT |
https://api-ca-uat.iinsightonline.com/api2/users/list_worktime |
GET |
| PRODUCTION |
https://api-ca.iinsightonline.com/api2/users/list_worktime |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method. |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| user_id |
An iinsight user ID. |
Yes |
Response
[
{
"email": "xxx@bizexpress.com.au",
"time_from1": "0", // Monday 00:00 am
"time_to1": "1440", // Monday 00:00 pm
"time_from2": "540", // Tuesday 09:00 am
"time_to2": "1020", // Tuesday 05:00 9m
"time_from3": "0",
"time_to3": "0",
"time_from4": "0",
"time_to4": "0",
"time_from5": "0",
"time_to5": "0",
"time_from6": "0",
"time_to6": "0",
"time_from7": "0", // Sunday 00:00 am
"time_to7": "0", // Sunday 00:00 pm
"mfa_successfully_enrolled": "1" //1=true and 0=false
"priv_is_consultant": "0" //1=true and 0=false
}
]