Skip to content

Instantly share code, notes, and snippets.

@jayliew
Last active December 13, 2016 21:49
Show Gist options
  • Save jayliew/9226839aae6a4c46190dc90c729532fd to your computer and use it in GitHub Desktop.
Save jayliew/9226839aae6a4c46190dc90c729532fd to your computer and use it in GitHub Desktop.
Cheatsheet to get data from Runkeeper's API using github.com/aouyar/healthgraph-api
# 1. install aouyar's healthgraph-api (via pip install or git clone. see his instructions)
# 2. signup on Runkeeper.com (as developer, not end user) as an RK app, to get client secret and key
# 3. fire up the self contained web server (bottle and beaker), installing dependencies as needed (about 1 or 2)
# 4. from previous step, you should get the user's access token
import healthgraph
access_token = "xxxxxxxxx" # enter your user access token here
session = healthgraph.Session(access_token)
response = session.get("/fitnessActivities") # this will get you your running data
# see response.text for json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment