Import Foursquare check-ins to your Ohai ADN journal.
This is alpha software, I am not responsible for any issues with it, but I am glad to help with them :). Be aware that the script imports all of your checkins.
The script is just a couple of lines of Python and you can tackle stuff from the TODO list if you want to help out - just send a pull request.
$ brew install python
$ sudo easy_install pip
$ sudo pip install requests foursquare
$ git submodule update --init --recursive
You will need to obtain API tokens for Foursquare and ADN. Those will need to be inserted into the appsquare.py script.
For Foursquare:
- Go to https://foursquare.com/developers/apps.
- Create an application.
- Insert FOURSQUARE_CLIENT_ID and FOURSQUARE_CLIENT_SECRET into the script.
- On first run of the script, you will need to go through an OAuth process in your browser.
- The token that comes from OAuth needs to end up in the variable FOURSQUARE_USER_TOKEN.
For ADN:
If you have a developer account:
- Go to https://account.app.net/developer/apps/ and create an app.
- Click on 'Generate a user token for yourself' and copy that into the APP_TOKEN variable.
- We need permissions for messages and public_messages.
If you don't:
- Go to http://dev-lite.jonathonduerig.com, make sure 'Messages' and 'Public messages' are checked.
- Click 'Authorize', authorize the app, get the token and copy it into the APP_TOKEN variable.