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.
Answered! Go to the Best Answer.
@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.
@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.