Last active
December 13, 2016 21:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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