cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Install on website

Install on website

geggiamarti
New member | Level 2

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

1 Reply 1

Greg-DB
Dropbox Staff
Yes, you can load the Dropbox API v2 JavaScript SDK via a script tag, as shown here:

https://dropbox.github.io/dropbox-sdk-js/tutorial-Getting%20started.html
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?