Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Peter M.107
10 years agoNew member | Level 1
SwiftyDropbox (v0.2) - invalid_access_token
Hi,
I'm trying out SwiftyDropbox and following the code given in the blogpost (https://blogs.dropbox.com/developers/2015/05/try-out-swiftydropbox-the-new-swift-sdk-for-dropbox-api-v2/).
When I ...
Peter M.107
10 years agoNew member | Level 1
Hi Leah,
I am just following up on this again as I've had a couple of issues along the way. The main issue I've had is not being able to call Dropbox after auth. It happens if it's the first time I auth or if I call Dropbox.unlinkClient() then re-auth. The problem seems to be the same - Dropbox.authorizedClient and DropboxClient.sharedClient are nil.
I also didn't like that the 401 was embedded in the error string. I added an extension to make the http code more easily accessible and to handle the unlinking. I've ended up wrapping SwiftyDropbox (https://gist.github.com/p15martin/82cbae8188729f26fbbb).
Interested in your thoughts?
-Peter
About 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!