Clocker enables restful clocking apis for the Sage HR portal.
The portal is accessed via screenscraping.
An audit trail is provided via the ClockEvent
model.
Set the environment variable SAGE_POTRAL_URL
to point to your Sage HR portal.
You can deploy this application to Heroku with just a click on the following button:
All requests require: Content-Type: application/json
Either submit your credentials via the request payload:
{
"username": "HomerS",
"password": "Doughnut"
}
or use HTTP Basic Auth (in this case, no payload is required).
Supported actions:
Response:
Success:
Status: 201
{
"success": true
}
Response:
Success:
Status: 201
{
"success": true
}
Response:
Success:
Status: 201
{
"success": true
}
Response:
Success:
Status: 201
{
"success": true,
"current_state": "absent"
}