<?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: Check if user shared any links in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619977#M28552</link>
    <description>&lt;P&gt;No, as I call it for each user on the team, so I'm not sure what that would be.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@1CADB087A3A73888E9AEB0DBCCEA98E8/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 12:48:58 GMT</pubDate>
    <dc:creator>JuliaNowicka</dc:creator>
    <dc:date>2022-09-02T12:48:58Z</dc:date>
    <item>
      <title>Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619950#M28549</link>
      <description>&lt;P&gt;Hello, I need to check how many links user has shared and how many of them are public links. Is this possible using the Dropbox API? I'm using the get_shared_links endpoint at the moment, but I'm not sure if that returns the shared links of that user or their team space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for all your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:03:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619950#M28549</guid>
      <dc:creator>JuliaNowicka</dc:creator>
      <dc:date>2022-09-02T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619973#M28551</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_blank" rel="noopener"&gt;Documentation&lt;/A&gt;:&lt;BR /&gt;&lt;P&gt;List shared links of this user. If no path is given, returns a list of all shared links for the current user. For members of business teams using team space and member folders, returns &lt;U&gt;all shared links in the team member's home folder&lt;/U&gt; unless the team space ID is specified in the request header.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Have you passed any parameters restricting the set of links? 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:37:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619973#M28551</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-02T12:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619977#M28552</link>
      <description>&lt;P&gt;No, as I call it for each user on the team, so I'm not sure what that would be.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@1CADB087A3A73888E9AEB0DBCCEA98E8/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:48:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619977#M28552</guid>
      <dc:creator>JuliaNowicka</dc:creator>
      <dc:date>2022-09-02T12:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619980#M28555</link>
      <description>&lt;P&gt;You can use the Dropbox API to list the shared links for a user. In the Python SDK, you should use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_list_shared_links" target="_blank"&gt;sharing_list_shared_links&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that by default though, that only lists links in the user's member folder. If the user is on a team with a team space, and you need to list their shared links in the team space, you'd need to configure the call as described in the &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;Team Files Guide&lt;/A&gt; to access the team space. With the Python SDK, you'd use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank"&gt;the with_path_root method&lt;/A&gt; to set that.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:50:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619980#M28555</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-02T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619986#M28559</link>
      <description>&lt;P&gt;So if I understand correctly, I would need to potentially loop through a list of team folders as well to get all the shared links?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 13:02:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619986#M28559</guid>
      <dc:creator>JuliaNowicka</dc:creator>
      <dc:date>2022-09-02T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user shared any links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619995#M28565</link>
      <description>&lt;P&gt;For a user not on a team with a team space, you can just use sharing_list_shared_links, without setting the path root, to get all the shared links for that user, since their member folder is their root anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a user on a team with a team space, you should still use sharing_list_shared_links, but you would need to set the path root to their team space if you need to list all their shared links, including those in both their team space and member folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code should illustrate how to count all shared links for either type, checking for and rooting from a team space if present:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dbx = dropbox.Dropbox(ACCESS_TOKEN)

current_account = dbx.users_get_current_account()
if isinstance(current_account.root_info, dropbox.common.TeamRootInfo):
	dbx = dbx.with_path_root(dropbox.common.PathRoot.root(current_account.root_info.root_namespace_id))

links = []

res = dbx.sharing_list_shared_links()
links += res.links

while res.has_more:
	res = dbx.sharing_list_shared_links(cursor=res.cursor)
	links += res.links

print(len(links))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 13:32:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Check-if-user-shared-any-links/m-p/619995#M28565</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-02T13:32:43Z</dc:date>
    </item>
  </channel>
</rss>

