<?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: createSharedLinkWithSettings -&amp;gt; sessionDeinitialized error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-gt-sessionDeinitialized-error/m-p/645058#M29620</link>
    <description>&lt;P&gt;I hope this helps others with the same issue -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logging into Dropbox with the access token does not work. I need to go through the "normal" authorization process, first defining a &lt;EM&gt;ScopeRequest&lt;/EM&gt;, including the scope &lt;EM&gt;"sharing.write"&lt;/EM&gt;. Afterwards using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DropboxClientsManager.authorizeFromControllerV2(......&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 16:13:37 GMT</pubDate>
    <dc:creator>petepete717</dc:creator>
    <dc:date>2022-12-19T16:13:37Z</dc:date>
    <item>
      <title>createSharedLinkWithSettings -&gt; sessionDeinitialized error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-gt-sessionDeinitialized-error/m-p/644940#M29618</link>
      <description>&lt;P&gt;I am attempting to obtain the link to share a folder but I always receive a&amp;nbsp;sessionDeinitialized error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setup:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;struct DropboxManager {&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var&lt;/SPAN&gt; &lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;DropboxClient&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&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;(&lt;/SPAN&gt;&lt;SPAN&gt;accessToken&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;"sl.myAccessToken"&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/SPAN&gt; client&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; func&lt;/SPAN&gt; shareFolder&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;client&lt;SPAN&gt;.&lt;/SPAN&gt;sharing&lt;SPAN&gt;.&lt;/SPAN&gt;createSharedLinkWithSettings&lt;SPAN&gt;(&lt;/SPAN&gt;path&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"/MyTestPath"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;response&lt;SPAN&gt; { response, error &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;let&lt;/SPAN&gt; link = response {&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(link.&lt;SPAN&gt;url&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;} &lt;SPAN&gt;else&lt;/SPAN&gt; {&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;print(&lt;SPAN&gt;"Error sharing:"&lt;/SPAN&gt;, error)&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems like I am missing something here? Is it possible I can't test sharing when setting up the client with the access token?&lt;/P&gt;
&lt;P&gt;I have tested that the client works - I'm able to up- and download files to Dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for guiding me in the right direction.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 15:17:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-gt-sessionDeinitialized-error/m-p/644940#M29618</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-12-19T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: createSharedLinkWithSettings -&gt; sessionDeinitialized error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-gt-sessionDeinitialized-error/m-p/645058#M29620</link>
      <description>&lt;P&gt;I hope this helps others with the same issue -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logging into Dropbox with the access token does not work. I need to go through the "normal" authorization process, first defining a &lt;EM&gt;ScopeRequest&lt;/EM&gt;, including the scope &lt;EM&gt;"sharing.write"&lt;/EM&gt;. Afterwards using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DropboxClientsManager.authorizeFromControllerV2(......&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 16:13:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-gt-sessionDeinitialized-error/m-p/645058#M29620</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-12-19T16:13:37Z</dc:date>
    </item>
  </channel>
</rss>

