Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello!
I’ve been working with SwiftyDropbox and I’m having a curious problem with errors. Specifically, I’m not sure how to manipulate errors in the closure callbacks provided after responses are received.
For instance, the completion handler for Dropbox.authorizedClient.filesListFolder provides a CallError<(Files.ListFolderError)>? to work with. How would I go about checking if it is a CallError.HTTPError, so that I can get the HTTP error code out of it? Right now I’m just sucking that information out of the error’s .description but that doesn’t seem like the right way to do it.
Halp? 😞
I suspect that I do not properly understand how to deal with the generics involved:
Cross-linking with Stack Overflow: http://stackoverflow.com/questions/34043932/how-can-i-access-the-associated-values-of-swiftydropbox-....
Ah, I should have cross-linked when I posted both. Thank you!
That SO answer was quite a gem.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!