<?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 Java API for Team Folder Operations in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294202#M17916</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using dropbox V2 API with the Java library:&amp;nbsp;dropbox-sdk-java 3.0.8. I would like to have features as below: User (who are part of team) can&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i.&amp;nbsp; List&amp;nbsp;Team Folders,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ii.&amp;nbsp; Create Folder inside Team Folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;iii.&amp;nbsp; Upload Files in Team Folders&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; For all above functionality, I am using&amp;nbsp;&lt;SPAN&gt;OAuth &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; access token created with a Dropbox API app key and not using&amp;nbsp;Dropbox Business API app key. And&amp;nbsp;all operations are&amp;nbsp;working fine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, I am just wondering whether it is the right behaviour? Is it required to use token created using Dropbox Business API app key?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am reffering these below links:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/namespace-guide&lt;/A&gt; &amp;amp;&amp;nbsp; &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-access-Team-Folders-with-Java-API/td-p/271239" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-access-Team-Folders-with-Java-API/td-p/271239&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) Please find code for listing folders &amp;amp; uploading file:&amp;nbsp; Is it correct?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt; DbxRequestConfig config = new DbxRequestConfig(clientIdentifier);&lt;BR /&gt; DbxClientV2 client = new DbxClientV2(config, accessToken);&lt;BR /&gt; &lt;BR /&gt; FullAccount account = client.users().getCurrentAccount();&lt;BR /&gt; String rootNS = account.getRootInfo().getRootNamespaceId();&lt;BR /&gt; &lt;BR /&gt; // Display Root Folders including TEAM Folders&lt;BR /&gt; ListFolderResult rootFolderResult = client.withPathRoot(PathRoot.root(rootNS)).files().listFolder(path);&lt;BR /&gt; &lt;BR /&gt;// For Uploading File in Team folder&lt;BR /&gt;InputStream in = new FileInputStream(uploadFile);&lt;BR /&gt; &lt;BR /&gt; FileMetadata metadata = dbxClient.files().uploadBuilder(dropboxPath)&lt;BR /&gt; .withMode(WriteMode.OVERWRITE)&lt;BR /&gt; .withClientModified(new Date(uploadFile.lastModified()))&lt;BR /&gt; .uploadAndFinish(in);&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:10:45 GMT</pubDate>
    <dc:creator>himanshu_jha</dc:creator>
    <dc:date>2019-05-29T09:10:45Z</dc:date>
    <item>
      <title>Java API for Team Folder Operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294202#M17916</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using dropbox V2 API with the Java library:&amp;nbsp;dropbox-sdk-java 3.0.8. I would like to have features as below: User (who are part of team) can&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i.&amp;nbsp; List&amp;nbsp;Team Folders,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ii.&amp;nbsp; Create Folder inside Team Folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;iii.&amp;nbsp; Upload Files in Team Folders&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; For all above functionality, I am using&amp;nbsp;&lt;SPAN&gt;OAuth &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; access token created with a Dropbox API app key and not using&amp;nbsp;Dropbox Business API app key. And&amp;nbsp;all operations are&amp;nbsp;working fine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, I am just wondering whether it is the right behaviour? Is it required to use token created using Dropbox Business API app key?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am reffering these below links:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/namespace-guide&lt;/A&gt; &amp;amp;&amp;nbsp; &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-access-Team-Folders-with-Java-API/td-p/271239" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-access-Team-Folders-with-Java-API/td-p/271239&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) Please find code for listing folders &amp;amp; uploading file:&amp;nbsp; Is it correct?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt; DbxRequestConfig config = new DbxRequestConfig(clientIdentifier);&lt;BR /&gt; DbxClientV2 client = new DbxClientV2(config, accessToken);&lt;BR /&gt; &lt;BR /&gt; FullAccount account = client.users().getCurrentAccount();&lt;BR /&gt; String rootNS = account.getRootInfo().getRootNamespaceId();&lt;BR /&gt; &lt;BR /&gt; // Display Root Folders including TEAM Folders&lt;BR /&gt; ListFolderResult rootFolderResult = client.withPathRoot(PathRoot.root(rootNS)).files().listFolder(path);&lt;BR /&gt; &lt;BR /&gt;// For Uploading File in Team folder&lt;BR /&gt;InputStream in = new FileInputStream(uploadFile);&lt;BR /&gt; &lt;BR /&gt; FileMetadata metadata = dbxClient.files().uploadBuilder(dropboxPath)&lt;BR /&gt; .withMode(WriteMode.OVERWRITE)&lt;BR /&gt; .withClientModified(new Date(uploadFile.lastModified()))&lt;BR /&gt; .uploadAndFinish(in);&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294202#M17916</guid>
      <dc:creator>himanshu_jha</dc:creator>
      <dc:date>2019-05-29T09:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Java API for Team Folder Operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294362#M17927</link>
      <description>&lt;P&gt;It sounds like you have the right idea, and your code looks fine.&lt;/P&gt;
&lt;P&gt;For reference though, you don't need a Dropbox Business API app to perform these operations. You can also list and upload files using just a&amp;nbsp;Dropbox API app (i.e., non-Business). The choice of what kind of app depends on your use case and requirements and is up to you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 14:54:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294362#M17927</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-28T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java API for Team Folder Operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294519#M17932</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Greg K. for quick response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 06:39:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-for-Team-Folder-Operations/m-p/294519#M17932</guid>
      <dc:creator>himanshu_jha</dc:creator>
      <dc:date>2018-08-29T06:39:43Z</dc:date>
    </item>
  </channel>
</rss>

