Skip to content

Commit

Permalink
track other places api calls are made
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithan committed May 2, 2012
1 parent 15fe69e commit 28f147e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions training/core/backends.py
Expand Up @@ -27,13 +27,15 @@ def authenticate(self, code=None):
settings.DAILYMILE_CLIENT_SECRET,
code,
settings.DAILYMILE_REDIRECT_URI)
APICall.objects.create()

api_endpoint='https://api.dailymile.com/'

user_stuff = json.loads(requests.get(
api_endpoint + 'people/me.json',
params={'oauth_token': auth_stuff['access_token']}
).content)
APICall.objects.create()

user = User.objects.filter(username=user_stuff['username'])

Expand Down

0 comments on commit 28f147e

Please sign in to comment.