Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

geggiamarti's avatar
geggiamarti
New member | Level 2
7 years ago

Install on website

Goodmorning,

I'm trying to use Dropbox api on my website, and I'm testing in a file using the code in the example:

var Dropbox = require('dropbox').Dropbox;
var dbx = new Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN_HERE' });
dbx.filesListFolder({path: ''})
  .then(function(response) {
    console.log(response);
  })
  .catch(function(error) {
    console.log(error);
  });

I have my access token, but I don't know what I have to do before this code. I don't use require js or similar, so there is a <script> link to access APIs? (like google maps API for example) Thank you and sorry for my bad English

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!