<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with using Generated access token to test using SwiftyDropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191666#M8414</link>
    <description>&lt;P&gt;Just use client instead of&amp;nbsp;Dropbox.authorizedClient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;client.sharing.createSharedLinkWithSettings(...)&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Oct 2016 17:04:18 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2016-10-22T17:04:18Z</dc:date>
    <item>
      <title>Problem with using Generated access token to test using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191598#M8404</link>
      <description>&lt;P&gt;I have followed the instructions on&amp;nbsp;&lt;A href="https://github.com/dropbox/SwiftyDropbox" target="_self"&gt;https://github.com/dropbox/SwiftyDropbox&lt;/A&gt;&amp;nbsp;in an attempt to test the V2 API with my Swift desktop macOS App. &amp;nbsp;The only difference is that I am using the Swift_2_3 branch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When inputting my "Generated access token", from my App page on my account, and compiling&amp;nbsp;I get an error on this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; client = &lt;/SPAN&gt;&lt;SPAN&gt;DropboxClient&lt;/SPAN&gt;&lt;SPAN&gt;(accessToken: &lt;/SPAN&gt;&lt;SPAN&gt;"GENERATED_ACCESS_CODE_HERE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is "Connot convert value of type 'String' to expected argument type 'DropboxAccessToken'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted to cast the string into the correct type but nothing is working.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191598#M8404</guid>
      <dc:creator>UWRL</dc:creator>
      <dc:date>2019-05-29T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using Generated access token to test using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191600#M8406</link>
      <description>&lt;P&gt;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&amp;nbsp;DropboxAccessToken object there. You can construct it like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DropboxClient.init(accessToken: DropboxAccessToken(accessToken:"ACCESS_TOKEN_HERE", uid:"USER_ID_HERE"))&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 22:57:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191600#M8406</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-21T22:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using Generated access token to test using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191658#M8413</link>
      <description>&lt;P&gt;Thanks for that help. That pushed me along a little further. I'm trying to retrieve a public shared link for a folder. This is what I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var client = DropboxClient.init(accessToken: DropboxAccessToken(accessToken:"ACESS_TOKEN", uid:"UID_NUMBER"))
                
Dropbox.authorizedClient?.sharing.createSharedLinkWithSettings(path: dropboxItemName).response({ response, error in
    if let link = response {
      print("link.url: " + link.url)
    } else {
      print("error: ")
      print(error!)
    }
})&lt;/PRE&gt;&lt;P&gt;Unfortunately I'm not getting anything from either "print" statement in the "if" statement in the Dropbox.authorizedClient&amp;nbsp;statement. Any suggestions? Am I missing something here?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 16:20:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191658#M8413</guid>
      <dc:creator>UWRL</dc:creator>
      <dc:date>2016-10-22T16:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using Generated access token to test using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191666#M8414</link>
      <description>&lt;P&gt;Just use client instead of&amp;nbsp;Dropbox.authorizedClient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;client.sharing.createSharedLinkWithSettings(...)&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Oct 2016 17:04:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-using-Generated-access-token-to-test-using/m-p/191666#M8414</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-10-22T17:04:18Z</dc:date>
    </item>
  </channel>
</rss>

