Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change redirect URI/callback URL

ANSWERED

I'm developing an app for users that will access their fitbit data. Right now I have no trouble connecting to the FitBit API after the user is directed to the Fitbit Authorization page. However, I'd like to change the callback URI to bring the user back to my app after they have authorized their account.

 

I'm using the fitbit.py that I found here https://github.com/magnific0/FitBit.py. Right now, it only works if my redirect URI is set tohttp://127.0.0.1:8080/ in the fitbit.py program and on how my dev.fitbit.com/app is registered. Is it possible to change the redirect URI in this way?

 

Do I need to change it somewhere else as well? I'd really appreciate any information you may have that can help with this. Thanks in advance!

 

Mike

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

You can add multiple callback / redirect URIs to your application settings on https://dev.fitbit.com/apps . Just put one redirect URI per line.

 

Then, in your application, you'll need to specify which redirect URI you want Fitbit to redirect the user back to by specifying a value in the redirect_uri parameter of the Authorization Page.

View best answer in original post

Best Answer
2 REPLIES 2

You can add multiple callback / redirect URIs to your application settings on https://dev.fitbit.com/apps . Just put one redirect URI per line.

 

Then, in your application, you'll need to specify which redirect URI you want Fitbit to redirect the user back to by specifying a value in the redirect_uri parameter of the Authorization Page.

Best Answer

Ok. Thank you. I see now. 

When I have another web address in addition to http://127.0.0.1:8080/ the callback will go to the one specified in my fitbit.py program. 

 

Thanks!

Best Answer
0 Votes