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

Forum Discussion

ari10's avatar
ari10
Helpful | Level 5
7 years ago
Solved

Dropbox JavaScript SDK access

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!

  • ari10's avatar
    ari10
    7 years ago

    Great, thanks, this solved the problem!

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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's avatar
    ari10
    Helpful | Level 5
    7 years ago

    Great, thanks, this solved the problem!

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!