Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

4 Coding Examples

4.1 CURL


1
2
34
5
6
7
8
9
10
11

#The following command posts attendance data.

Curl -F input=@<local reference to the attendance data file>"https:www.hinote.in/hrworks/AttendanceFileupload.do?key=<customer_api_key>"

...

"

...

On request of the customer a specific API userid/password is configured. Attendance upload API can be accessed only using this user id.

The data file should be an xls file (in MS Excel 97/2000/XP format) or in the CSV format. The template file for this can be downloaded from HRWorks application itself. The template file contains the following columns:

  1. Employee Id: Employee Id as specified in HRWorks.
  2. Date: Date for which attendance is being uploaded. Should be Excel date value.
  3. In Time: Date and Time of the employee entry time. Should be Excel date time value.
  4. Out Time: Date and Time of the employee exit time. Should be Excel date time value.
  5. In Location: Should be left as blank. Created for future use.
  6. Out Location: Should be left as blank. Created for future use.
  7. Comments: Any relevant comments for the attendance entry. Can be left blank.

...