02-28-2018 05:28 - edited 02-28-2018 05:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-28-2018 05:28 - edited 02-28-2018 05:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I created an app in Fitbit later I wrote code for authentication
import pythonfitbitfrom pythonfitbit import gather_keys_oauth2 as Oauth2 import pandas as pd import datetime CLIENT_ID = '******'CLIENT_SECRET = '***************************'server = Oauth2.OAuth2Server(CLIENT_ID, CLIENT_SECRET)server.browser_authorize()token = server.fitbit.client.session.token ACCESS_TKN = token['access_token']REFRESH_TKN = token['refresh_token']client = fitbit.Fitbit(CLIENT_ID, SECRET, access_token=ACCESS_TKN, refresh_token=REFRESH_TKN)fitbit_data = client.intraday_time_series('activities/heart', base_date="2017-04-10",detail_level='1min', start_time='9:00', end_time='18:00')
in my browser I got Fitbit login page after it redirected to another page it is showing the allow or deny I clicked on allow next it redirected to another URL which I mentioned in-app callback URL i.e "https://google.com"
and in my terminal, it is showing like this
Answered! Go to the Best Answer.
Accepted Solutions
03-01-2018 13:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-01-2018 13:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @ACC,
It redirects you to google.com because you set that in "Callback URL", so that works as expected. You need to set URL to your application.
Thanks,
Oleg

03-01-2018 00:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-01-2018 00:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
any one?

03-01-2018 13:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-01-2018 13:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @ACC,
It redirects you to google.com because you set that in "Callback URL", so that works as expected. You need to set URL to your application.
Thanks,
Oleg

