<?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: Use external link in iOS app in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645889#M29653</link>
    <description>&lt;P&gt;I don't believe we have sample code for these in particular, but you can call those methods much the same way as you would call createSharedLinkWithSettings, and get the information from the response object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the folder sharing operation may run asynchronously though. If successful, the &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC11shareFolder4path15aclUpdatePolicy10forceAsync06memberJ0010sharedLinkJ0010viewerInfoJ017accessInheritance7actions12linkSettingsAA10RpcRequestCyAA0C0C05ShareF16LaunchSerializerCAQ0yF15ErrorSerializerCGSS_AQ03AcliJ0OSgSbAQ06MemberJ0OSgAQ06SharedoJ0OSgAQ06ViewerqJ0OSgAQ06AccessS0OSayAQ0F6ActionOGSgAQ0oV0CSgtF" target="_self"&gt;shareFolder&lt;/A&gt; response will be a &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html" target="_self"&gt;ShareFolderLaunch&lt;/A&gt; which will either be '&lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html#/s:13SwiftyDropbox7SharingC17ShareFolderLaunchO8completeyAeC06SharedE8MetadataCcAEmF" target="_self"&gt;complete&lt;/A&gt;' and give you a &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/SharedFolderMetadata.html" target="_blank"&gt;SharedFolderMetadata&lt;/A&gt; directly, or '&lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html#/s:13SwiftyDropbox7SharingC17ShareFolderLaunchO10asyncJobIdyAESScAEmF" target="_self"&gt;asyncJobId&lt;/A&gt;', in which case you poll &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC19checkShareJobStatus05asyncG2IdAA10RpcRequestCyAA0C0C0f6FoldergH10SerializerCAA5AsyncC09PollErrorN0CGSS_tF" target="_self"&gt;checkShareJobStatus&lt;/A&gt; to get the SharedFolderMetadata. Either way, once you get the SharedFolderMetadata, you can get the shared folder ID from &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/SharedFolderMetadata.html#/s:13SwiftyDropbox7SharingC20SharedFolderMetadataC06sharedE2IdSSvp" target="_self"&gt;SharedFolderMetadata.sharedFolderId&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 14:57:38 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-12-22T14:57:38Z</dc:date>
    <item>
      <title>createSharedLinkWithSettings: Use external link in iOS app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645565#M29637</link>
      <description>&lt;P&gt;I am creating a sharing link using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let linkURL = link.url&amp;nbsp;&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; // Send &lt;EM&gt;linkURL&amp;nbsp;&lt;/EM&gt;to be accessed through another DB account in another app&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to open this generated &amp;nbsp;link in a different app with a different Dropbox account. And then to access the shared folder in order to up- and download files by the app.&lt;/P&gt;&lt;P&gt;Unfortunately, I am stuck and seem to be missing something. Can anyone point me in the right direction? Thanks very much.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 10:03:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645565#M29637</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-12-21T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: createSharedLinkWithSettings: Use external link in iOS app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645628#M29639</link>
      <description>&lt;P&gt;You can use createSharedLinkWithSettings to create a shared link to any file or folder to allow access to view that file or folder, but to enable other people to make changes in a folder, you should share the folder itself. You can use &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC11shareFolder4path15aclUpdatePolicy10forceAsync06memberJ0010sharedLinkJ0010viewerInfoJ017accessInheritance7actions12linkSettingsAA10RpcRequestCyAA0C0C05ShareF16LaunchSerializerCAQ0yF15ErrorSerializerCGSS_AQ03AcliJ0OSgSbAQ06MemberJ0OSgAQ06SharedoJ0OSgAQ06ViewerqJ0OSgAQ06AccessS0OSayAQ0F6ActionOGSgAQ0oV0CSgtF" target="_self"&gt;shareFolder&lt;/A&gt; and &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC15addFolderMember06sharedF2Id7members5quiet13customMessageAA10RpcRequestCyAA14VoidSerializerCAA0C0C03Addfg5ErrorQ0CGSS_SayAN0rG0CGSbSSSgtF" target="_self"&gt;addFolderMember&lt;/A&gt; to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information in &lt;A href="https://developers.dropbox.com/dbx-sharing-guide" target="_blank"&gt;the Sharing Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:38:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645628#M29639</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-21T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: createSharedLinkWithSettings: Use external link in iOS app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645828#M29650</link>
      <description>&lt;P&gt;Thanks Greg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I can grasp the overall concept - thanks for pointing me in the direction of folder shareFolder and addFolderMember - I am still struggling. I don't know how to obtain the shared_folder_id after running &lt;EM&gt;client.sharing.shareFolder(path...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can't find any sample code in Swift for the sharing functionality? Can you please point me in the right direction.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 10:25:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645828#M29650</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-12-22T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: createSharedLinkWithSettings: Use external link in iOS app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645889#M29653</link>
      <description>&lt;P&gt;I don't believe we have sample code for these in particular, but you can call those methods much the same way as you would call createSharedLinkWithSettings, and get the information from the response object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the folder sharing operation may run asynchronously though. If successful, the &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC11shareFolder4path15aclUpdatePolicy10forceAsync06memberJ0010sharedLinkJ0010viewerInfoJ017accessInheritance7actions12linkSettingsAA10RpcRequestCyAA0C0C05ShareF16LaunchSerializerCAQ0yF15ErrorSerializerCGSS_AQ03AcliJ0OSgSbAQ06MemberJ0OSgAQ06SharedoJ0OSgAQ06ViewerqJ0OSgAQ06AccessS0OSayAQ0F6ActionOGSgAQ0oV0CSgtF" target="_self"&gt;shareFolder&lt;/A&gt; response will be a &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html" target="_self"&gt;ShareFolderLaunch&lt;/A&gt; which will either be '&lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html#/s:13SwiftyDropbox7SharingC17ShareFolderLaunchO8completeyAeC06SharedE8MetadataCcAEmF" target="_self"&gt;complete&lt;/A&gt;' and give you a &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/SharedFolderMetadata.html" target="_blank"&gt;SharedFolderMetadata&lt;/A&gt; directly, or '&lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/ShareFolderLaunch.html#/s:13SwiftyDropbox7SharingC17ShareFolderLaunchO10asyncJobIdyAESScAEmF" target="_self"&gt;asyncJobId&lt;/A&gt;', in which case you poll &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/SharingRoutes.html#/s:13SwiftyDropbox13SharingRoutesC19checkShareJobStatus05asyncG2IdAA10RpcRequestCyAA0C0C0f6FoldergH10SerializerCAA5AsyncC09PollErrorN0CGSS_tF" target="_self"&gt;checkShareJobStatus&lt;/A&gt; to get the SharedFolderMetadata. Either way, once you get the SharedFolderMetadata, you can get the shared folder ID from &lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Sharing/SharedFolderMetadata.html#/s:13SwiftyDropbox7SharingC20SharedFolderMetadataC06sharedE2IdSSvp" target="_self"&gt;SharedFolderMetadata.sharedFolderId&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:57:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/645889#M29653</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-22T14:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: createSharedLinkWithSettings: Use external link in iOS app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/646026#M29654</link>
      <description>&lt;P&gt;Thank you very much. I didn't understand that I needed to run the result through a switch statement as the ShareFolderLaunch returned is a Dropbox-union:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;client.share.shareFolder(path:&lt;SPAN&gt;"/MyTestPath").response { shareResult, error in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; switch shareResult {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case .complete(let shareData):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Use metadata here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case .asyncJobId(.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it works perfectly!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 10:15:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/createSharedLinkWithSettings-Use-external-link-in-iOS-app/m-p/646026#M29654</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-12-23T10:15:53Z</dc:date>
    </item>
  </channel>
</rss>

