09-03-2015 10:07 - edited 09-03-2015 10:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-03-2015 10:07 - edited 09-03-2015 10:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
Accepted Solutions
09-03-2015 10:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
09-03-2015 10:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@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.
09-03-2015 10:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
09-03-2015 10:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@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.
09-03-2015 10:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-03-2015 10:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Dchen! Works perfectly. Cheers!

