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

Dynamic Redirect Url

ANSWERED

Does the FitBit API have the ability to accept a dynamic redirect url? e.g. http://mysite.com/connectresult?myuserid={xxxxxxx} The bolded blue portion of the url would be set in the App Settings but my server would stuff the userid value dynamically.  I can do this in the IHealth API platform without an issue. 

Best Answer
1 BEST ANSWER

Accepted Solutions

@geeman44 wrote:

Does the FitBit API have the ability to accept a dynamic redirect url? e.g. http://mysite.com/connectresult?myuserid={xxxxxxx} The bolded blue portion of the url would be set in the App Settings but my server would stuff the userid value dynamically.  I can do this in the IHealth API platform without an issue. 


With our OAuth 1.0a implementation, you can do this. With our OAuth 2.0 implementation, you need to put any dynamic content into the `state` parameter which will be passed back to your application in the callback.

View best answer in original post

Best Answer
2 REPLIES 2

@geeman44 wrote:

Does the FitBit API have the ability to accept a dynamic redirect url? e.g. http://mysite.com/connectresult?myuserid={xxxxxxx} The bolded blue portion of the url would be set in the App Settings but my server would stuff the userid value dynamically.  I can do this in the IHealth API platform without an issue. 


With our OAuth 1.0a implementation, you can do this. With our OAuth 2.0 implementation, you need to put any dynamic content into the `state` parameter which will be passed back to your application in the callback.

Best Answer

Thanks Dchen! Works perfectly. Cheers!

Best Answer
0 Votes