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

Re-direct Url

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.

Best Answer
1 REPLY 1

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

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes