Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

ronS1's avatar
ronS1
Explorer | Level 4
8 years ago
Solved

Dropbox API not returning all files

public function __construct(Dropbox $dropbox) { $this->api_client = $dropbox->api(); $this->content_client = $dropbox->content(); $this->access_token = session('access_to...
  • Greg-DB's avatar
    8 years ago
    For the error you're getting, it looks like you aren't passing in an access token. (I.e., "Bearer" should be followed by the access token.) You'll need to see why that is. It appears you're trying to retrieve it via `session('access_token')`, which apparently isn't working.

    Anyway, yes, you can programmatically get an access token for the user using the OAuth 2 app authorization flow:

    https://www.dropbox.com/developers/reference/oauth-guide

    The documentation for that can be found here:

    https://www.dropbox.com/developers/documentation/http/documentation#authorization

    By the way, the subject for your post seems to be about another issue. If you're having another problem, please feel free to open another thread with the details.

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!