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

How do I write down the blank Redirect URL?

Hello

I am developing an app using MIT appinventor.

when i wirte Edit the Application, I don't know what to write in the Redirect URL * blank space.

What should I do if I don't know app url?

Please tell me how to connect Fitbit api to AppInventor.

Best Answer
0 Votes
1 REPLY 1

Hi @ydk12 

We describe the redirect URL a few times in the documentation.  I would recommend reading through the Authorization section to help you understand the authorization flow.  Basically, when the user selects the data they want to share with your application, the user needs to be redirected back to a location in your application which will accept the created authorization code and convert it to the access token and refresh token.  The authorization code will be appended to the redirect URL after redirection occurs.  So, you're application will need to parse the authorization code from the current URL so your application can use it in the /oauth2/token call.

If you haven't established an external endpoint (URL) for the redirection, then lots of people use localhost.  If you do this, I believe you will have to manually extract the authorization code and paste it into your application code.   

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