02-14-2022 23:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-14-2022 23:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi Fitbit team,
I need to obtain the Intraday for my flutter application. The authentication is handled in a WebView area using a package 'oauth_webauth' without leaving the app. I could not obtain the redirect URL for the application. Is the redirect URL necessary when obtaining intraday data. Thank you.
02-23-2022 12:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-23-2022 12:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Vaji
The redirect_url is required to complete the authorization. The redirect_url is typically defined by you, the developer. The url is a location in your code which the user is sent once they enable the scopes. This location in your code should parse the authorization code from the URL and use it to obtain the initial access and refresh token. After you have the tokens, you will use the access token to make the intraday request.
I'm not familiar with the details of Flutter. I did find this site which has some information about flutter and oauth, https://pub.dev/packages/flutter_web_auth. Maybe it will help you.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

