Last active
August 9, 2017 05:27
-
-
Save jerico/a9e0272176028f53d9615f3bb745a134 to your computer and use it in GitHub Desktop.
Salarium Auto Time-in Time-out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Email and password must be escaped e.g. jerico%40instinctivedrives.com | |
# If this will be used in a cron, '%' must be escaped, e.g. jerico\%40instinctivedrives.com | |
# TIME IN | |
curl -c /tmp/salarium-cookie.txt 'https://app.salarium.com/users/login' --data 'email=EMAIL_HERE&password=PASSWORD_HERE' && curl -b /tmp/salarium-cookie.txt https://app.salarium.com/employees/ebundy_clock --data 'log_type=TIME+IN' | |
# TIME OUT | |
curl -c /tmp/salarium-cookie.txt 'https://app.salarium.com/users/login' --data 'email=EMAIL_HERE&password=PASSWORD_HERE' && curl -b /tmp/salarium-cookie.txt https://app.salarium.com/employees/ebundy_clock --data 'log_type=TIME+OUT' | |
# Cron Monday-Friday 1pm | |
0 13 * * 1-5 | |
# Cron Monday-Friday 10pm | |
0 22 * * 1-5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment