cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

Re: 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?