Methods
auth(company_id, group_manager_id, password, callbackopt)
Execution of authentication
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
company_id |
String
|
Company ID of JobCan | |
group_manager_id |
String
|
Group Manager ID of JobCan | |
password |
String
|
Group Manager Password of JobCan | |
callback |
Client~authCallback
|
<optional> |
Callback function |
getWorkStates(Optionsopt, callback)
Get the work states.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
Options |
Object
|
<optional> |
Optinal parameters |
callback |
Client~getWorkStatesCallback
|
Callback function |
getWorkSummaries(Optionsopt, callback)
Get the work summaries.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
Options |
Object
|
<optional> |
Optinal parameters |
callback |
Client~getWorkSummariesCallback
|
Callback function |
getWorkSummariesInPeriod(start_date, end_date, opt_optionsopt, callback)
Get a work summary of all employees in the period
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
start_date |
Date
|
Start date | |
end_date |
Date
|
End date | |
opt_options |
Object
|
<optional> |
Optional paramters |
callback |
Client~getWorkSummariesCallback
|
Callback function |
getWorkSummariesInPerm(start_date, end_date, opt_optionsopt, callback)
Get a work summary of all employees in the period
- Deprecated:
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
start_date |
Date
|
Start date | |
end_date |
Date
|
End date | |
opt_options |
Object
|
<optional> |
Optional paramters |
callback |
Client~getWorkSummariesCallback
|
Callback function |
getWorkSummariesInThisMonth(opt_optionsopt, callback)
Get a work summary of all employees in this month
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opt_options |
Object
|
<optional> |
Optional paramters |
callback |
Client~getWorkSummariesCallback
|
Callback function |
getWorkSummariesInThisWeek(opt_optionsopt, callback)
Get a work summary of all employees in this week
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opt_options |
Object
|
<optional> |
Optional paramters |
callback |
Client~getWorkSummariesCallback
|
Callback function |
Type Definitions
authCallback(error, session_id)
Callback of auth(...) method
Parameters:
Name | Type | Description |
---|---|---|
error |
Error
|
Error object (If something happened) |
session_id |
String
|
Session ID |
getWorkStatesCallback(error, work_states)
Callback of getWorkStates(...) method
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error |
Error
|
Error object (If something happened) | |||||||||||||||||||||||||||
work_states |
Array.<Object>
|
Array of work states
|
getWorkSummariesCallback(error, work_summaries)
Callback of getWorkSummaries(...) method
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error |
Error
|
Error object (If something happened) | ||||||||||||||||||
work_summaries |
Array.<Object>
|
Array of work summaries
|