ClockIt-Online API integration documentation for method GET_TOKEN
GET_TOKEN
Use this method in application when each user needs to sign in with their ClockIt-Online username & password. Using a token avoids having to send the user password and email with each new API call.
All parameters are POST to URL http://v5.clockit-online.net/api/api.php
Parameter | Type | Value |
---|---|---|
method | string | GET_TOKEN |
userMail | string | email address of the logged on user, known by ClockIt-Online |
userPass | string | ClockIt-Online password of logged on user |
Responses are in JSON format
Parameter | Type | Value |
---|---|---|
swError | string | "true"/"false" |
errorMsg | string | Filled in with the errormessage in case swError = true |
msg | string | success message |
userId | integer | technical user ID as used in ClockIt-Online |
companyId | integer | Company account ID under which this user is known in ClockIt-Online. |
token | string | Token valid during 30 mintues after request. Use this token in other API calls. |
isUserAdmin | string | Is the logged on user a ClockIt-Online admin "true"/"false". |
isUserScheduleManager | string | Is the logged on user a ClockIt-Online a schedule manager "true"/"false". |