You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

UWRL's avatar
UWRL
Explorer | Level 4
9 years ago

Problem with using Generated access token to test using SwiftyDropbox

I have followed the instructions on https://github.com/dropbox/SwiftyDropbox in an attempt to test the V2 API with my Swift desktop macOS App.  The only difference is that I am using the Swift_2_3 br...
  • Greg-DB's avatar
    9 years ago

    The Swift 3 branch has the DropboxClient constructor just taking the access token as a string now, but the Swift 2.3 branch still requires a DropboxAccessToken object there. You can construct it like this:

     

    DropboxClient.init(accessToken: DropboxAccessToken(accessToken:"ACCESS_TOKEN_HERE", uid:"USER_ID_HERE"))
  • Steve M.'s avatar
    Steve M.
    9 years ago

    Just use client instead of Dropbox.authorizedClient:

     

    client.sharing.createSharedLinkWithSettings(...)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 2 days ago
326 Following

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 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!