Simple AWS Lambda function to record your work attendance to Jobcan. This enables you to build a GPS-based automatic attendance recording system using IFTTT.
- Create two AWS Lambda functions
- jobcanStart
- jobcanEnd
- Set env var
JOBCAN_ADIT
towork_start
andwork_end
respectively - Create Amazon API Gateway to trigger the functions
- Create IFTTT applets to call the API
- Note that you have to send credential as body
Below is an example body to send.
{
"credential": {
"client_id": "your-company-name",
"account_type": "staff",
"login_id": "[email protected]",
"password": "yoursecretpassword"
}
}
Currently, once your API endpoint exposed, anyone around the world can invoke the function without any limitation. You might want throttling and/or authentication to call the API.
- Detailed installation
- Guide to add authentication
- Publish IFTTT applet