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: 

Dropbox JavaScript SDK access

Dropbox JavaScript SDK access

ari10
Helpful | Level 5
Go to solution

In the head section of a web page I download the Dropbox Javascript with:

<script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>

then, a javascript function which invokes the following instruction does not return:

var dbx = new Dropbox({ accessToken: thisAccessToken });

where 'thisAccessToken' is the user's Dropbox access token.

Any suggestions on why the instruction does not complete?

Thanks!

1 Accepted Solution

Accepted Solutions

ari10
Helpful | Level 5
Go to solution

Great, thanks, this solved the problem!

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

Please check the JavaScript console for any errors.

For instance, the constructor under the 'Dropbox' class is also named 'Dropbox', so you should use `new Dropbox.Dropbox(...)' instead of `new Dropbox(...)'.

ari10
Helpful | Level 5
Go to solution

Great, thanks, this solved the problem!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    ari10 Helpful | Level 5
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?