<?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 List Shared links in Dropbox Business Java SDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653450#M29810</link>
    <description>&lt;P&gt;How to List Shared Links in a Dropbox Business account?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using dropbox &lt;STRONG&gt;Business&lt;/STRONG&gt;&amp;nbsp;(DbxTeamClientV2 client) to get all shared links but getting an error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;DbxTeamClientV2 client = new &lt;/SPAN&gt;&lt;SPAN&gt;DbxTeamClientV2(&lt;/SPAN&gt;&lt;SPAN&gt;config&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;accessToken) // &lt;FONT size="2" color="#000000"&gt;&lt;EM&gt;The access token was generated&amp;nbsp; for business account&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;client.asAdmin(memberId).sharing().listSharedLinks().getLinks(); // fails right here&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;EM&gt;Error in call to API function "sharing/list_shared_links": This endpoint doesn't support "HTTP header \"Dropbox-API-Select-Admin\""&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Although, it works fine in dropbox &lt;STRONG&gt;Personal&lt;/STRONG&gt; account (DbxClientV2 client)&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, accessToken); &lt;SPAN&gt;// &lt;FONT size="2" color="#000000"&gt;&lt;EM&gt;The access was token generated&amp;nbsp; for personal account&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;client.sharing().listSharedLinks().getLinks(); // this works&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Jan 2023 11:56:57 GMT</pubDate>
    <dc:creator>abhinovClairvoyant</dc:creator>
    <dc:date>2023-01-25T11:56:57Z</dc:date>
    <item>
      <title>List Shared links in Dropbox Business Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653450#M29810</link>
      <description>&lt;P&gt;How to List Shared Links in a Dropbox Business account?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using dropbox &lt;STRONG&gt;Business&lt;/STRONG&gt;&amp;nbsp;(DbxTeamClientV2 client) to get all shared links but getting an error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;DbxTeamClientV2 client = new &lt;/SPAN&gt;&lt;SPAN&gt;DbxTeamClientV2(&lt;/SPAN&gt;&lt;SPAN&gt;config&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;accessToken) // &lt;FONT size="2" color="#000000"&gt;&lt;EM&gt;The access token was generated&amp;nbsp; for business account&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;client.asAdmin(memberId).sharing().listSharedLinks().getLinks(); // fails right here&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;EM&gt;Error in call to API function "sharing/list_shared_links": This endpoint doesn't support "HTTP header \"Dropbox-API-Select-Admin\""&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Although, it works fine in dropbox &lt;STRONG&gt;Personal&lt;/STRONG&gt; account (DbxClientV2 client)&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, accessToken); &lt;SPAN&gt;// &lt;FONT size="2" color="#000000"&gt;&lt;EM&gt;The access was token generated&amp;nbsp; for personal account&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;client.sharing().listSharedLinks().getLinks(); // this works&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jan 2023 11:56:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653450#M29810</guid>
      <dc:creator>abhinovClairvoyant</dc:creator>
      <dc:date>2023-01-25T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: List Shared links in Dropbox Business Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653459#M29811</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1611686"&gt;@abhinovClairvoyant&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Take a look on the listSharedLinks method description. There you can see that it lists current user' links (not very clear; &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; certainly can be improved) which means member' links, not admin! &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; That's where your problem comes from - change asAdmin to asMember.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 09:15:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653459#M29811</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-01-24T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: List Shared links in Dropbox Business Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653531#M29812</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1611686"&gt;@abhinovClairvoyant&lt;/a&gt;&amp;nbsp;Здравко is correct. For that method you should use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/DbxTeamClientV2.html#asMember(java.lang.String)" target="_self"&gt;asMember​&lt;/A&gt; instead of asAdmin​, as you're operating on the member account, not as an admin (whether or not the member happens to be an admin). Give that a try and let us know if you're still running in to any issues.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:27:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653531#M29812</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-01-24T14:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: List Shared links in Dropbox Business Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653678#M29815</link>
      <description>&lt;P&gt;Thank you. That works !!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:19:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-Shared-links-in-Dropbox-Business-Java-SDK/m-p/653678#M29815</guid>
      <dc:creator>abhinovClairvoyant</dc:creator>
      <dc:date>2023-01-25T04:19:59Z</dc:date>
    </item>
  </channel>
</rss>

