<?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: Dropbox API Python in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/292711#M136</link>
    <description>&lt;P&gt;If you have a&amp;nbsp;Dropbox Business API app with the "team member file access" permission, and want to use a user-specific API call, such as&amp;nbsp;files_list_folder, you can do so using&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.as_user" target="_blank"&gt;DropboxTeam.as_user&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you should make your &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam" target="_self"&gt;DropboxTeam&lt;/A&gt;&amp;nbsp;instance, and then use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.as_user" target="_blank"&gt;DropboxTeam.as_user&lt;/A&gt;&amp;nbsp;to get a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox" target="_self"&gt;Dropbox&lt;/A&gt;&amp;nbsp;instance. You can then use that&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox" target="_self"&gt;Dropbox&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;instance normally for user API calls. That would look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import dropbox

TEAM_MEMBER_FILE_ACCESS_ACCESS_TOKEN = '...'
TEAM_MEMBER_ID = 'dbmid:...'

team_client = dropbox.DropboxTeam(TEAM_MEMBER_FILE_ACCESS_ACCESS_TOKEN)
user_client = team_client.as_user(TEAM_MEMBER_ID)

for entry in user_client.files_list_folder('').entries:
    print(entry)
&lt;/PRE&gt;
&lt;P&gt;You can get the member ID for the desired member from the&amp;nbsp;Dropbox Business API, in a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.sharing.TeamMemberInfo" target="_self"&gt;TeamMemberInfo&lt;/A&gt;, e.g., as returned by&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_list" target="_blank"&gt;team_members_list&lt;/A&gt;/&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_list_continue" target="_blank"&gt;team_members_list_continue&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_get_info" target="_blank"&gt;team_members_get_info&lt;/A&gt;, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 19:53:08 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-08-20T19:53:08Z</dc:date>
    <item>
      <title>Dropbox API Python</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/292699#M135</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please I need help, How can I do this with Business API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import dropbox&lt;/P&gt;
&lt;P&gt;client = dropbox.Dropbox('JCJoqsBi2DAAAAGGHFHFGH')&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;for entry in client.files_list_folder('').entries:&lt;BR /&gt; print(entry)&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:05:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/292699#M135</guid>
      <dc:creator>AdanHerrera</dc:creator>
      <dc:date>2019-05-29T09:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Python</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/292711#M136</link>
      <description>&lt;P&gt;If you have a&amp;nbsp;Dropbox Business API app with the "team member file access" permission, and want to use a user-specific API call, such as&amp;nbsp;files_list_folder, you can do so using&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.as_user" target="_blank"&gt;DropboxTeam.as_user&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you should make your &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam" target="_self"&gt;DropboxTeam&lt;/A&gt;&amp;nbsp;instance, and then use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.as_user" target="_blank"&gt;DropboxTeam.as_user&lt;/A&gt;&amp;nbsp;to get a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox" target="_self"&gt;Dropbox&lt;/A&gt;&amp;nbsp;instance. You can then use that&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox" target="_self"&gt;Dropbox&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;instance normally for user API calls. That would look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import dropbox

TEAM_MEMBER_FILE_ACCESS_ACCESS_TOKEN = '...'
TEAM_MEMBER_ID = 'dbmid:...'

team_client = dropbox.DropboxTeam(TEAM_MEMBER_FILE_ACCESS_ACCESS_TOKEN)
user_client = team_client.as_user(TEAM_MEMBER_ID)

for entry in user_client.files_list_folder('').entries:
    print(entry)
&lt;/PRE&gt;
&lt;P&gt;You can get the member ID for the desired member from the&amp;nbsp;Dropbox Business API, in a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.sharing.TeamMemberInfo" target="_self"&gt;TeamMemberInfo&lt;/A&gt;, e.g., as returned by&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_list" target="_blank"&gt;team_members_list&lt;/A&gt;/&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_list_continue" target="_blank"&gt;team_members_list_continue&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_members_get_info" target="_blank"&gt;team_members_get_info&lt;/A&gt;, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:53:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/292711#M136</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-20T19:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Python</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/293400#M142</link>
      <description>Can you show me show to do this: "You can get the member ID for the desired member from the Dropbox Business API, in a TeamMemberInfo, e.g., as returned by team_members_list/team_members_list_continue or team_members_get_info, etc."&lt;BR /&gt;&lt;BR /&gt;I'm a rookie and I'm a little lost... thanks</description>
      <pubDate>Thu, 23 Aug 2018 10:41:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/293400#M142</guid>
      <dc:creator>AdanHerrera</dc:creator>
      <dc:date>2018-08-23T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Python</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/293422#M145</link>
      <description>&lt;P&gt;That would look like this, for example:&lt;/P&gt;
&lt;PRE&gt;team_member_info = team_client.team_members_get_info([dropbox.team.UserSelectorArg.email(member_email_address)]).pop()
if team_member_info and team_member_info.is_member_info():
    team_member_id = team_member_info.get_member_info().profile.team_member_id&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 15:00:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-Python/m-p/293422#M145</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-23T15:00:09Z</dc:date>
    </item>
  </channel>
</rss>

