<?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: adding team functionality to an  existing dropbox app in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382755#M906</link>
    <description>&lt;P&gt;Yes, that's right. That would use the user's folder, if they're not on a team with a team space, or the team space folder, if they are on a team with&amp;nbsp;the team space. Also, note you can use&amp;nbsp;initWithRoot if you do intend to access the root and want verification mentioned under the "Root" part of the "Dropbox-API-Path-Root Header Modes" section of the Namespace Guide (whereas initWithNamespaceId can be used for any particular namespace the user has access to).&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 19:09:15 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-12-06T19:09:15Z</dc:date>
    <item>
      <title>adding team functionality to an  existing dropbox app</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382709#M900</link>
      <description>&lt;P&gt;Hello, &amp;nbsp;I have an app in the app store, &amp;nbsp;backpack studio, &amp;nbsp; that allows access to reading and writing audio &amp;nbsp;files through dropbox.... &amp;nbsp; I have a user that would like me &amp;nbsp;to support dropbox "teams" so that they can have the same functionality they have on dropbox.com - &amp;nbsp;manage their teams individiual (purple) folders and team files &amp;nbsp;inside the app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the objective-c API and &amp;nbsp;am able to get this far:&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;[DBClientsManager authorizedTeamClient];

&amp;nbsp;DBTEAMTeamAuthRoutes *routes = teamclient.teamRoutes;

[[routes teamFolderList] setResponseBlock...&lt;/PRE&gt;
&lt;P&gt;I get back: This API function requires a Dropbox Business API app key, but the OAuth 2 access token you provided was created with a Dropbox API app key.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;To create a a Dropbox Business API app key, see...&lt;/P&gt;
&lt;P&gt;Does that mean that i'm unable to add this functionality &amp;nbsp;without a creating a separate app designed specifically for business teams? &amp;nbsp; Or am i simply making the wrong api call to get the folder data?&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DBTEAMTeamAuthRoutes&lt;/SPAN&gt; *routes = teamclient.&lt;SPAN&gt;teamRoutes&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DBTransportDefaultClient&lt;/SPAN&gt; *transportclient = routes.&lt;SPAN&gt;client&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;[[routes &lt;SPAN&gt;teamFolderList&lt;/SPAN&gt;] &lt;SPAN&gt;setResponseBlock&lt;/SPAN&gt;:^(&lt;SPAN&gt;DBTEAMTeamFolderListResult&lt;/SPAN&gt; * &lt;SPAN&gt;&lt;STRONG&gt;_Nullable&lt;/STRONG&gt;&lt;/SPAN&gt; result, &lt;SPAN&gt;DBTEAMTeamFolderListError&lt;/SPAN&gt; * &lt;SPAN&gt;&lt;STRONG&gt;_Nullable&lt;/STRONG&gt;&lt;/SPAN&gt; routeError, &lt;SPAN&gt;DBRequestError&lt;/SPAN&gt; * &lt;SPAN&gt;&lt;STRONG&gt;_Nullable&lt;/STRONG&gt;&lt;/SPAN&gt; networkError) {&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 18:28:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382709#M900</guid>
      <dc:creator>Ed F.14</dc:creator>
      <dc:date>2019-12-06T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: adding team functionality to an  existing dropbox app</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382721#M901</link>
      <description>&lt;P&gt;If you just want to be able to access files and folders in their "team space", you don't need to register a "Dropbox Business API" app or use the "teamRoutes". (That's for accessing functionality specific to managing Dropbox Business teams, e.g., adding or removing members.)&lt;/P&gt;
&lt;P&gt;You can use your existing "Dropbox API" app with the "full Dropbox" permission to access files in their "team space" (that is, outside their individual purple member folder). API calls default to the member folder though, so you'll need to update your code to specify the team space if/when desired to access it. You can find more information on how this works in &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_self"&gt;the Namespace Guide&lt;/A&gt;. That covers how to use the 'Dropbox-API-Path-Root' header to specify the team space.&lt;/P&gt;
&lt;P&gt;In the official&amp;nbsp;Dropbox API v2 Objective-C SDK in particular, you can set the 'Dropbox-API-Path-Root' header using the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBUserClient.html#/c:objc(cs)DBUserClient(im)withPathRoot:" target="_self"&gt;DBUserClient.withPathRoot&lt;/A&gt; method.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:57:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382721#M901</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-06T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: adding team functionality to an  existing dropbox app</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382737#M904</link>
      <description>&lt;P&gt;Thank you - &amp;nbsp;so just to clarify from reading &amp;nbsp;the namespace guide - &amp;nbsp;would an objective c implementation that simultaniously supports users on teams and regular users &amp;nbsp;not on teams work like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; [[client.usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount * _Nullable result, DBNilObject * _Nullable routeError, DBRequestError * _Nullable networkError) {
       //get the root namespace id ... will be the home folder if not on a team 
        NSString *namespaceId = result.rootInfo.rootNamespaceId;
       //create a dbcommonpathroot  with the namespace id 
        DBCOMMONPathRoot *cpr = [[DBCOMMONPathRoot alloc] initWithNamespaceId:namespaceId];
       // make a new client by calling client with the root object 
        client = [client withPathRoot:cpr];
       //
       // call to get folders etc...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there &amp;nbsp;a simpler way i am overlooking?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 18:04:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382737#M904</guid>
      <dc:creator>Ed F.14</dc:creator>
      <dc:date>2019-12-06T18:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: adding team functionality to an  existing dropbox app</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382755#M906</link>
      <description>&lt;P&gt;Yes, that's right. That would use the user's folder, if they're not on a team with a team space, or the team space folder, if they are on a team with&amp;nbsp;the team space. Also, note you can use&amp;nbsp;initWithRoot if you do intend to access the root and want verification mentioned under the "Root" part of the "Dropbox-API-Path-Root Header Modes" section of the Namespace Guide (whereas initWithNamespaceId can be used for any particular namespace the user has access to).&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 19:09:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/adding-team-functionality-to-an-existing-dropbox-app/m-p/382755#M906</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-06T19:09:15Z</dc:date>
    </item>
  </channel>
</rss>

