Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Bill P.12's avatar
Bill P.12
New member | Level 1
10 years ago

SwiftyDropbox download error in tutorial

When the SwiftyDropbox tutorial was implemented at the 1.0 release, the following error was received: 

“Missing argument for parameter 'destination' in call” for this line of code: “client.files.download(path: "/hello.txt").response { response, error in”

 

The error can be eliminated by changing the line of code to: “client.files.download(path: "/hello.txt", destination: destination).response { response, error in” 

The documentation may need to be changed.

1 Reply

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

    Thanks for the report! We'll get that fixed up.

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!