From 333fd7f98a8b0b85592f484b5de42c23db1d8569 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 26 Feb 2017 19:27:53 +0100 Subject: [PATCH] v1.25 --- rowers/c2stuff.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 804df73c..965b2c2d 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -347,8 +347,14 @@ def get_token(code): prepped.body+="&scope=" prepped.body+=scope + print prepped.body + response = s.send(prepped) + print response.body + print '' + print response.text + token_json = response.json() try: @@ -376,9 +382,9 @@ def make_authorization_url(request): state = str(uuid4()) scope = "user:read,results:write" - params = {"client_id": CLIENT_ID, + params = {"client_id": C2_CLIENT_ID, "response_type": "code", - "redirect_uri": REDIRECT_URI} + "redirect_uri": C2_REDIRECT_URI} url = "https://log.concept2.com/oauth/authorize?"+ urllib.urlencode(params) url += "&scope="+scope