Use curl
to register attendance in Zoho People. Service will skip holidays or days off. Use dry
paramter to verify witch days will be registered.
curl https://api-attend.herokuapp.com/ \
-X POST \
-H "Authorization: Berer <your-token>" \
-d "email=name@example.com" \
-d "from=2021-03-01" \
-d "to=2021-03-31" \
-d "check_in=9:30" \
-d "check_out=17:30" \
-d "verbose=1" \
-d "dry=1"
Pass Authorization
header with Berer
token.
Authorization: Berer <your-token>
email
- your email addressfrom
- date in ISO 8601 formatto
- date in ISO 8601 formatcheck_in
- check in time (default is9:00
)check_out
- check out time (default is17:00
)verbose
- flag enables verbose output of error massagedry
- flag enables dry run
Register current day with default check in times.
curl https://api-attend.herokuapp.com/ \
-X POST \
-H "Authorization: Berer <your-token>" \
-d "email=name@example.com"
Register one week with custom check in times.
curl https://api-attend.herokuapp.com/ \
-X POST \
-H "Authorization: Berer <your-token>" \
-d "email=name@example.com" \
-d "from=2021-03-22" \
-d "to=2021-03-26" \
-d "check_in=10:00" \
-d "check_out=18:00"