-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback URL not being invoked #32
Comments
Hi @karthikarul20
import webbrowser
from fitbit import Fitbit
client_kwargs = {
'client_key': 'c8ca82f890c44a969cc3524b7c342e8b',
'client_secret': '7bf3dd8b933144e2bbe2c7971d46e3ae',
'callback_uri': 'http://127.0.0.1/test'
}
fb = Fitbit(**client_kwargs)
fb.client.fetch_request_token()
webbrowser.open(fb.client.authorize_token_url()) Let me know how that works out for you. |
Thanks Brad. App type on dev.fitbit.com was the culprit. It was set as Desktop and now it works fine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to integrate the FITBIT api in which i managed to get auth_token and redirect the user for Authorization. While creating the Fitbit() i am setting the callback_uri. But, after completing the authorization the FitBit API is not invoking my callback service.
Please pardon my ignorance and help me to deal with this issue.
I am using Web2Py framework and below is my code.
EDIT(brad): I wrapped your code to make it easier to read
The text was updated successfully, but these errors were encountered: