Need to see if your shared folder is taking up space on your dropbox šŸ‘Øā€šŸ’»? Find out how to check here.

Forum Discussion

FSUInnovation's avatar
FSUInnovation
Explorer | Level 4
6 years ago
Solved

API oauth code/token storage php

What array variable get returned to following the redirect uri upon a successful oauth2 flow on my app? Is it stored in a variable like $_GET['code'] or something like that? I tried checking for it i...
  • Greg-DB's avatar
    6 years ago

    You can find examples of the information included on the redirect URI after the user authorizes the app in the /oauth2/authorize documentation, under the "Returns" section:

    https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize

    Specifically, there is a "Sample response" for both the code and token flow.

    Note that for the code flow, the values are passed as URL parameters, so they do get sent to your server. Exactly how the URL parameters are made available to your will depend on the web framework you're using, so I can't offer detailed insight on that. I recommend referring to the documentation for your web framework.

    For the token flow, they are passed on the URL fragment, and so do not get sent to your server.

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!