Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
RandySK
2 months agoNew member | Level 1
No Response to Authorize Command
After I set up my app at DropBox, I did a call from my database application to:
the /oauth2/authorize endpoint
with my client ID and redirect URI as parameters. I got the response:
302 Found\r\nThe resource was found at /e/oauth2/authorize?client_id=XXXXXXX&redirect_uri=https%3A%2F%2Fapi.intellexcorp.com&response_type=code;\r\nyou should be redirected automatically.\r\n\r\n\r\n
Nothing was redirected. There was no connection received at the redirect URI. Why not?
Randy Kaempen
- DB-Des
Dropbox Engineer
The /oauth2/authorize endpoint isn't an API call—it's the web page that lets the user sign in to Dropbox and authorize your app. Meaning, users are meant to navigate to it to authorize your app.
Once users authorize your app, then the redirect to your redirect URI happens. The type of response, or query parameters appended to your redirect URI, varies based on the "response_type".
- RandySKNew member | Level 1
Thanks. I'm doing this from our database app, so I need something that is an API call. We need to be able to load files to our DropBox and send links to people authorized to view them. Can you tell me what call I should be using?
- DB-Des
Dropbox Engineer
In order to authorize your app for the first time, there needs to be user interaction for that first step.
You can then get a long-term access token, by requesting "offline" access, where further manual user intervention is not needed. When requesting "offline" access, the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed. Refresh tokens do not expire automatically and can be used repeatedly. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.
When you use one of our official SDKs, you do not need to implement all of the logic for this process yourself. The SDK will do most of the work for you.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 4 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!