<?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: create custom link in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564718#M2296</link>
    <description>&lt;P&gt;Here is my code&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;dropbox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Dropbox&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;shared_link_metadata&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sharing_create_shared_link_with_settings&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/Model/s.pt"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;```&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Message&lt;/P&gt;
&lt;P&gt;Here is I use the No&amp;nbsp;expiration token&lt;/P&gt;
&lt;P&gt;Is&amp;nbsp;it safe for me to show metadata here ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Pictures/Dropbox/dropbox-sdk-python/example# python share.py&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "share.py", line 55, in &amp;lt;module&amp;gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Model/s.pt")&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/base.py", line 4131, in sharing_create_shared_link_with_settings&lt;BR /&gt;r = self.request(&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/dropbox_client.py", line 348, in request&lt;BR /&gt;raise ApiError(res.request_id,&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('731fb539203145e39e640cb66d80d3e3', CreateSharedLinkWithSettingsError('shared_link_already_exists', SharedLinkAlreadyExistsMetadata('metadata', FileLinkMetadata(client_modified=datetime.datetime(2021, 12, 16, 5, 1, 30), content_owner_team_info=NOT_SET, expires=NOT_SET, id='id:QTPba1EnHBoAAAAAAAAADA', link_permissions=LinkPermissions(allow_comments=True, allow_download=True, audience_options=[LinkAudienceOption(allowed=True, audience=LinkAudience('public', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=False, audience=LinkAudience('team', None), disallowed_reason=LinkAudienceDisallowedReason('user_not_on_team', None)), LinkAudienceOption(allowed=True, audience=LinkAudience('no_one', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=False, audience=LinkAudience('password', None), disallowed_reason=LinkAudienceDisallowedReason('user_account_type', None))], can_allow_download=True, can_disallow_download=False, can_remove_expiry=True, can_remove_password=False, can_revoke=True, can_set_expiry=False, can_set_password=False, can_use_extended_sharing_controls=NOT_SET, effective_audience=NOT_SET, link_access_level=NOT_SET, requested_visibility=RequestedVisibility('public', None), require_password=NOT_SET, resolved_visibility=ResolvedVisibility('public', None), revoke_failure_reason=NOT_SET, team_restricts_comments=False, visibility_policies=[VisibilityPolicy(allowed=True, disallowed_reason=NOT_SET, policy=RequestedVisibility('public', None), resolved_policy=AlphaResolvedVisibility('public', None)), VisibilityPolicy(allowed=False, disallowed_reason=VisibilityPolicyDisallowedReason('user_not_on_team', None), policy=RequestedVisibility('team_only', None), resolved_policy=AlphaResolvedVisibility('team_only', None)), VisibilityPolicy(allowed=False, disallowed_reason=VisibilityPolicyDisallowedReason('user_account_type', None), policy=RequestedVisibility('password', None), resolved_policy=AlphaResolvedVisibility('password', None))]), name='s.pt', path_lower='/model/s.pt', rev='015d33c53215f7d000000024ae230a0', server_modified=datetime.datetime(2021, 12, 16, 5, 2, 9), size=6, team_member_info=NOT_SET, url='&amp;lt;REDACTED&amp;gt;))))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 16:16:12 GMT</pubDate>
    <dc:creator>alicera</dc:creator>
    <dc:date>2021-12-17T16:16:12Z</dc:date>
    <item>
      <title>create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564309#M2289</link>
      <description>&lt;P&gt;Could I make a specific link for my data in dropbox.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/5iuddsfwdf46r7b/123.txt?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/&lt;/A&gt;&lt;A href="https://www.dropbox.com/s/5iuddsfwdf46r7b/123.txt?dl=0" target="_blank" rel="noopener"&gt;uddsf6r7ba&lt;/A&gt;&lt;A href="https://www.dropbox.com/s/5iuddsfwdf46r7b/123.txt?dl=0" target="_blank" rel="noopener"&gt;/folder1/hello.json?dl=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/5iuddsfwdf46r7b/123.txt?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/uddsf6r7ba/folder2/aa.json?dl=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;data/&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;├── folder1&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;├── hello.json&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;├── haha.json&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;├── folder2&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;├── aa.json&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:41:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564309#M2289</guid>
      <dc:creator>alicera</dc:creator>
      <dc:date>2021-12-15T20:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564410#M2291</link>
      <description>&lt;P&gt;Yes, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] (&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_self"&gt;files_list_folder&lt;/A&gt;/&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder_continue" target="_self"&gt;files_list_folder_continue&lt;/A&gt; and &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor" target="_self"&gt;filesListFolder&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor" target="_blank"&gt;filesListFolderContinue&lt;/A&gt; in the Python SDK and JavaScript SDKs, respectively) to list the contents under any particular path. You can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; (&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_create_shared_link_with_settings" target="_self"&gt;sharing_create_shared_link_with_settings&lt;/A&gt; and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor" target="_self"&gt;sharingCreateSharedLinkWithSettings&lt;/A&gt; in the Python SDK and JavaScript SDKs, respectively) to create a shared link for any particular file or folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend reading the &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_self"&gt;File Access Guide&lt;/A&gt; and &lt;A href="https://developers.dropbox.com/dbx-sharing-guide" target="_self"&gt;Sharing Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 18:46:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564410#M2291</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-15T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564502#M2293</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.sharing_create_shared_link_with_settings(&lt;/SPAN&gt;&lt;SPAN&gt;'/data/'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbx.sharing_create_shared_link_with_settings('/data/'1.jpg)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;At the dropbox have it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It doesnt work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;BR /&gt;File "share.py", line 57, in &amp;lt;module&amp;gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Model/s.pt", settings=None)&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/base.py", line 4131, in sharing_create_shared_link_with_settings&lt;BR /&gt;r = self.request(&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/dropbox_client.py", line 348, in request&lt;BR /&gt;raise ApiError(res.request_id,&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:04:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564502#M2293</guid>
      <dc:creator>alicera</dc:creator>
      <dc:date>2021-12-16T09:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564603#M2294</link>
      <description>&lt;P&gt;Can you share the full error message? You seem to have truncated the output here.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 18:12:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564603#M2294</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-16T18:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564718#M2296</link>
      <description>&lt;P&gt;Here is my code&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;dropbox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Dropbox&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;shared_link_metadata&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sharing_create_shared_link_with_settings&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/Model/s.pt"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;```&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Message&lt;/P&gt;
&lt;P&gt;Here is I use the No&amp;nbsp;expiration token&lt;/P&gt;
&lt;P&gt;Is&amp;nbsp;it safe for me to show metadata here ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Pictures/Dropbox/dropbox-sdk-python/example# python share.py&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "share.py", line 55, in &amp;lt;module&amp;gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Model/s.pt")&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/base.py", line 4131, in sharing_create_shared_link_with_settings&lt;BR /&gt;r = self.request(&lt;BR /&gt;File "/opt/conda/lib/python3.8/site-packages/dropbox/dropbox_client.py", line 348, in request&lt;BR /&gt;raise ApiError(res.request_id,&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('731fb539203145e39e640cb66d80d3e3', CreateSharedLinkWithSettingsError('shared_link_already_exists', SharedLinkAlreadyExistsMetadata('metadata', FileLinkMetadata(client_modified=datetime.datetime(2021, 12, 16, 5, 1, 30), content_owner_team_info=NOT_SET, expires=NOT_SET, id='id:QTPba1EnHBoAAAAAAAAADA', link_permissions=LinkPermissions(allow_comments=True, allow_download=True, audience_options=[LinkAudienceOption(allowed=True, audience=LinkAudience('public', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=False, audience=LinkAudience('team', None), disallowed_reason=LinkAudienceDisallowedReason('user_not_on_team', None)), LinkAudienceOption(allowed=True, audience=LinkAudience('no_one', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=False, audience=LinkAudience('password', None), disallowed_reason=LinkAudienceDisallowedReason('user_account_type', None))], can_allow_download=True, can_disallow_download=False, can_remove_expiry=True, can_remove_password=False, can_revoke=True, can_set_expiry=False, can_set_password=False, can_use_extended_sharing_controls=NOT_SET, effective_audience=NOT_SET, link_access_level=NOT_SET, requested_visibility=RequestedVisibility('public', None), require_password=NOT_SET, resolved_visibility=ResolvedVisibility('public', None), revoke_failure_reason=NOT_SET, team_restricts_comments=False, visibility_policies=[VisibilityPolicy(allowed=True, disallowed_reason=NOT_SET, policy=RequestedVisibility('public', None), resolved_policy=AlphaResolvedVisibility('public', None)), VisibilityPolicy(allowed=False, disallowed_reason=VisibilityPolicyDisallowedReason('user_not_on_team', None), policy=RequestedVisibility('team_only', None), resolved_policy=AlphaResolvedVisibility('team_only', None)), VisibilityPolicy(allowed=False, disallowed_reason=VisibilityPolicyDisallowedReason('user_account_type', None), policy=RequestedVisibility('password', None), resolved_policy=AlphaResolvedVisibility('password', None))]), name='s.pt', path_lower='/model/s.pt', rev='015d33c53215f7d000000024ae230a0', server_modified=datetime.datetime(2021, 12, 16, 5, 2, 9), size=6, team_member_info=NOT_SET, url='&amp;lt;REDACTED&amp;gt;))))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:16:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564718#M2296</guid>
      <dc:creator>alicera</dc:creator>
      <dc:date>2021-12-17T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: create custom link</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564800#M2297</link>
      <description>&lt;P&gt;This particular error includes the shared link metadata, so you would want to redact the shared link if you don't wish to post that. I've redacted it for you just in case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, this error says 'shared_link_already_exists' meaning that a new shared link was not created because one already exists. You can find error types in the documentation, such as &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/sharing.html#dropbox.sharing.CreateSharedLinkWithSettingsError" target="_self"&gt;here for this CreateSharedLinkWithSettingsError&lt;/A&gt;. In some cases like this the existing metadata will be returned in the error which you can get from &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/sharing.html#dropbox.sharing.SharedLinkAlreadyExistsMetadata" target="_self"&gt;SharedLinkAlreadyExistsMetadata&lt;/A&gt;. You can also call &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_list_shared_links" target="_self"&gt;sharing_list_shared_links&lt;/A&gt; to list existing shared links. Refer to the documentation for that for the available options when doing so.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 18:02:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/create-custom-link/m-p/564800#M2297</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-17T18:02:46Z</dc:date>
    </item>
  </channel>
</rss>

