Skip to content

Instantly share code, notes, and snippets.

@bjeavons
Created May 19, 2015 16:31
Show Gist options
  • Save bjeavons/72075147de2ede567f04 to your computer and use it in GitHub Desktop.
Save bjeavons/72075147de2ede567f04 to your computer and use it in GitHub Desktop.
Quick script to list what I did yesterday via iDoneThis
#!/bin/bash
# 1)Install jq from http://stedolan.github.io/jq/download/
# 2) Get your username from https://idonethis.com/accounts/settings/account/
# 3) Get your token from https://idonethis.com/api/token/
# 4) Fill out this file and place in your path
URL="https://idonethis.com/api/v0.1/dones/?owner=[USERNAME]&done_date=yesterday"
AUTH="Token [TOKEN]"
curl –s -H "Authorization: ${AUTH}" ${URL} 2>/dev/null | jq '.results[].raw_text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment