02-14-2022 23:28
02-14-2022 23:28
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
02-23-2022 12:42
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