Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.08 KB

jobcan-lambda

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.

Installation

  • Create two AWS Lambda functions
    • jobcanStart
    • jobcanEnd
  • Set env var JOBCAN_ADIT to work_start and work_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

Usage

Below is an example body to send.

{
  "credential": {
    "client_id": "your-company-name",
    "account_type": "staff",
    "login_id": "[email protected]",
    "password": "yoursecretpassword"
  }
}

Note

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.

Future Works

  • Detailed installation
  • Guide to add authentication
  • Publish IFTTT applet