Skip to content

Instantly share code, notes, and snippets.

@jerico
Last active August 9, 2017 05:27
Show Gist options
  • Save jerico/a9e0272176028f53d9615f3bb745a134 to your computer and use it in GitHub Desktop.
Save jerico/a9e0272176028f53d9615f3bb745a134 to your computer and use it in GitHub Desktop.
Salarium Auto Time-in Time-out
# 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