Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
anthonyhaffey
8 years agoExplorer | Level 4
error? in dbx.usersGetCurrentAccount() in javascript
It looks like there's a new structure with dropbox, as of this morning I've been creating my dbx object by calling
var dbx = new Dropbox.Dropbox({ clientId: CLIENT_ID });
rather than
var d...
Greg-DB
Dropbox Community Moderator
8 years agoThanks for the report. We're looking into it. I'll follow up here once I have more information on this for you.
- Greg-DB8 years ago
Dropbox Community Moderator
The API v2 JavaScript SDK just received a major revision that includes breaking changes, with a corresponding major version bump. You can find the release notes here:
https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0
This includes a change to how the `Dropbox` object is constructed. In short, as of v3.0.0, you should now use `Dropbox.Dropbox` instead.
In order to avoid major version changes from breaking your app, you can instead import specific versions of the library.
Exactly how you do so depends on where you're loading the library from.
For instance, unpkg has information on specifying particular versions here: https://unpkg.com/
Anyway, there appears to be a bug with `usersGetCurrentAccount` in the new release. We're investigating that, and I'll let you know once I have an update on that.- Greg-DB8 years ago
Dropbox Community Moderator
The bug with usersGetCurrentAccount should be fixed now, as of v3.0.1. Please try again and let me know if you're still seeing any issues. Thanks!- anthonyhaffey8 years agoExplorer | Level 4
That was quicker than I thought it was going to be, so I reverted to 2.5.13.
Sorry to ask a N00b question, but I <script> link to the versions on https://cdnjs.com/libraries/dropbox.js/ as that means it's just one file - can you let me know when it's on there? And is there a reason I shouldn't do that generally? I'm now downloading each .min.js file onto my server and linking to it.
About 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!