Notify slack channel with endomondo leaderboard
Crontab syntax to run every Monday at 12:00
# m h dom mon dow command
0 12 * * 1 AUTH_TOKEN='xxxxx' CHALLENGE_ID='xxxxx' SLACK_URL_TOKEN='https://hooks.slack.com/services/xxx/xxx/xxx' /usr/bin/node /home/endoslack/app.js
Get auth token by sending this POST request: (make sure to urlencode email and password)
https://api.mobile.endomondo.com/mobile/auth?email=xxxx&password=xxxx&deviceId=null&action=PAIR&country=