The timecard SOAP API
The timecard SOAP API is similar to the EService SOAP API, in that it provides methods for retrieving, updating, and deleting data stored on the server.
The API is published seperately at the moment, as another interface for linking into the timecard server, although there is some progress on integrating the two products together in a future release.
The Interface Definition
Below are listed the various functions that make up the timecard API. Each function is called, passing in at least one parameter, a UserIDBean. This bean contains the user name and password of a previously registered EService User, with administrative rights. This ensures only authorised users are able to access the interface.
Timecard User Management Functions
Method |
Summary |
createUser |
Creates a new user based on the user data passed in. |
getUserDetail |
Gets all the details of a specified user. |
updateUser |
Updates a particular user with new details. |
updateUserPassword |
Updates a user's password. |
deleteUser |
Deletes an existing user. |
getUnsynchronisedUsers |
Retrieves all users who have not previously been synchronised and acknowledged, and all users that have changed since their last synchronisation. |
ackUserSynchronisation |
Acknowledges that synchronisation has been performed on the selected users. |
Timecard Field Device Management Functions
Timecard functions to Retrieve Raw Event Data
Methods to Retrieve Processed Data
Retrieving and updating Organization Details
Various Maintenance Functions
Returns |
Method |
Parameters |
Description |
sendMessageToUserResult |
sendMessageToUser |
UserIDBean, userPrimaryKey, messageString |
Sends a string message to the specified user. |
wakeFieldDeviceResult |
wakeFieldDevice |
UserIDBean, userPrimaryKey |
Sends a message to the phone, which forces the application to start and connect to the server. |
createNewTeamResult |
createNewTeam |
UserIDBean, teamName, teamLeaderUserPrimaryKey |
Creates a new team with the specified user as the team leader. |
deleteTeamResult |
deleteTeam |
UserIDBean, teamName |
Deletes the specified team. Members of this team should be reallocated to existing teams. |
addUserToTeamResult |
addUserToTeam |
UserIDBean, teamName, userPrimaryKey |
Adds the specified user to the specified team. Note that each user can only belong to one team. |
removeUserFromTeamResult |
removeUserFromTeam |
UserIDBean, teamName, userPrimaryKey |
Removes the user from the team specified. |
sendMessageToTeamResult |
sendMessageToTeam |
UserIDBean, teamName, messageString |
Sends a string message to all users in the specified team. |
wakeTeamFieldDevicesResult |
wakeTeamFieldDevices |
UserIDBean, teamName |
Sends a message to all phone devices, which forces the application to start and connect to the server. |
Array of strings |
getTaskList |
UserIDBean |
Gets the tasks/customers list from the server. |
addNewTaskResult |
addNewTask |
UserIDBean, taskString |
Adds a new task/customer to the server list. |
removeTaskResult |
removeTask |
UserIDBean, taskString |
Remove task/customer from the server. |
Main Data Type Definitions
EventObjectBean
Fields :
- Event Occurred Timestamp (the date and time at which a clock in, clock out, start break, end break start task or end task event occurred)
- Event ID
- Event Type (Clock in, Clock out, Start break, End break, Task start, Task end)
- Name of User
- DeviceID of User
- UserPrimaryKey
- UserType
TaskEventBean extends EventObjectBean
Fields :
HourBreakdownBean
- UserPrimaryKey
- UserType
- UserName
- Device ID
- Normal Hours as int
- Normal mins as int
- Normal seconds as int (always zero currently)
- Overtime Hours as int
- Overtime mins as int
- Overtime seconds as int (always zero currently)
- Extratime Hours as int
- Extratime mins as int
- Extratime seconds as int (always zero currently)
OverTimeRuleBean
- UserType Applies to
- Start date
- End Date (may be indefinite, need constant for that !) not null !!!
- boolean for include break in time worked
- Overtime rule as #OverTimeBean
- ExtraTime rule as #OverTimeBean
OverTimeBean
HoursPeriodBean
- boolean applicable
- hours as int
- mins as int
OrganizationDetailsBean
- Name
- Description
- AccountNumber
- ContactName
- ContactWorkPhone
- ContactMobilePhone
- ContactEmailAddress
- Address1
- Address2
- Address3
- Address4
- Locale