<?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 I want to get a list of files in a shared folder using Objective-C SDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/456780#M23546</link>
    <description>&lt;P&gt;I'm using Objective-c SDK v2.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I used the initWithAccessToken method of the DBTeamClient class to get an instance of the DBUserClient class.&lt;/P&gt;
&lt;P&gt;I used the listFolders method of sharingRoutes of DBUserClient to get the shared folders that exist in the root.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, I don't know how to get the list of files that exist in the obtained shade folder.&lt;/P&gt;
&lt;P&gt;It seems that the shade folder cannot be accessed by filesRoutes of DBUserClient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What steps do I need to take to get a list of the files that exist in the shared folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:32:40 GMT</pubDate>
    <dc:creator>sin5</dc:creator>
    <dc:date>2020-09-28T11:32:40Z</dc:date>
    <item>
      <title>I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/456780#M23546</link>
      <description>&lt;P&gt;I'm using Objective-c SDK v2.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I used the initWithAccessToken method of the DBTeamClient class to get an instance of the DBUserClient class.&lt;/P&gt;
&lt;P&gt;I used the listFolders method of sharingRoutes of DBUserClient to get the shared folders that exist in the root.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, I don't know how to get the list of files that exist in the obtained shade folder.&lt;/P&gt;
&lt;P&gt;It seems that the shade folder cannot be accessed by filesRoutes of DBUserClient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What steps do I need to take to get a list of the files that exist in the shared folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:32:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/456780#M23546</guid>
      <dc:creator>sin5</dc:creator>
      <dc:date>2020-09-28T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/456987#M23556</link>
      <description>&lt;P&gt;You should use&amp;nbsp;DBFILESUserAuthRoutes.&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:" target="_self"&gt;listFolder&lt;/A&gt;/DBFILESUserAuthRoutes.&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt; to list the contents of any particular folder (shared or not), by specifying the relevant path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, when using&amp;nbsp;DBSHARINGUserAuthRoutes.&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBSHARINGUserAuthRoutes.html#/c:objc(cs)DBSHARINGUserAuthRoutes(im)listFolders" target="_self"&gt;listFolders&lt;/A&gt;/DBSHARINGUserAuthRoutes.&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBSHARINGUserAuthRoutes.html#/c:objc(cs)DBSHARINGUserAuthRoutes(im)listFoldersContinue:" target="_self"&gt;listFoldersContinue&lt;/A&gt;, you can get the path from the relevant &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBSHARINGSharedFolderMetadataBase.html#/c:objc(cs)DBSHARINGSharedFolderMetadataBase(py)pathLower" target="_self"&gt;DBSHARINGSharedFolderMetadataBase.pathLower&lt;/A&gt; returned in&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBSHARINGListFoldersResult.html#/c:objc(cs)DBSHARINGListFoldersResult(py)entries" target="_self"&gt;DBSHARINGListFoldersResult.entries&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:53:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/456987#M23556</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-09-28T17:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457091#M23559</link>
      <description>&lt;P&gt;Thank you Greg-DB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the following source to get DBSHARINGSharedFolderMetadataBase.&lt;/P&gt;&lt;P&gt;The folder shared in the personal folder was able to get the pathLower.&lt;/P&gt;&lt;P&gt;But, the DropBox Business team folder had a pathLower of nil.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the procedure different for the DropBox Business team folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DBUserClient *userClient = [teamClient userClientWithMemberId:_MY_MEMBER_ID_];
&lt;BR /&gt;[[userClient.sharingRoutes listFolders]
   setResponseBlock:^(DBSHARINGListFoldersResult * _Nullable result, DBNilObject * _Nullable routeError, DBRequestError * _Nullable networkError) {
    for (DBSHARINGSharedFolderMetadata *entry in result.entries) {
        if(entry.pathLower==nil){
            NSLog(@"pathLower is nil");
        }else{
            NSLog(entry.pathLower);
        }
    }
}];&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 00:13:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457091#M23559</guid>
      <dc:creator>sin5</dc:creator>
      <dc:date>2020-09-29T00:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457302#M23564</link>
      <description>&lt;P&gt;If pathLower is nil, that means that the folder is not "mounted", so it doesn't have a path in that account. I&amp;nbsp;recommend reading &lt;A href="https://www.dropbox.com/lp/developers/reference/dbx-file-access-guide" target="_self"&gt;the File Access Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/lp/developers/reference/dbx-team-files-guide" target="_self"&gt;the Team Files Guide&lt;/A&gt; for more information on how these mechanisms work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, if you need to set the "Dropbox-API-Path-Root" header mentioned there, that's accessible via&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;withPathRoot&lt;/A&gt; in the Objective-C SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:36:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457302#M23564</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-09-29T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457623#M23580</link>
      <description>&lt;P&gt;Thank you Greg-DB.&lt;/P&gt;&lt;P&gt;I was able to access the files in the Dropbox Business team folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a new user client by passing the folder ID of the shared folder to the withPathRoot method of the DBUserClient class.&lt;BR /&gt;I am using this new user client to access files in shared folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code looks like this.&lt;/P&gt;&lt;PRE&gt;DBUserClient *userClient = [teamClient userClientWithMemberId:_MY_MEMBER_ID_];
[[userClient.sharingRoutes listFolders]
 setResponseBlock:^(DBSHARINGListFoldersResult * _Nullable result, DBNilObject * _Nullable routeError, DBRequestError * _Nullable networkError) {
    DBSHARINGSharedFolderMetadata *entry = result.entries[0];
    DBCOMMONPathRoot *pathRoot =[[DBCOMMONPathRoot alloc] initWithNamespaceId:entry.sharedFolderId];
    workUserClient =  [userClient withPathRoot:pathRoot];
    [[workUserClient.filesRoutes listFolder:path]
     setResponseBlock:^(DBFILESListFolderResult *result, DBFILESListFolderError *routeError, DBRequestError *error) {
        if (result)
        {
             ...
        }
    }];
}];&lt;/PRE&gt;&lt;P&gt;Please point out any mistakes.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 09:25:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457623#M23580</guid>
      <dc:creator>sin5</dc:creator>
      <dc:date>2020-09-30T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457787#M23585</link>
      <description>&lt;P&gt;Note that you should always implement&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt; in addition to&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:" target="_self"&gt;listFolder&lt;/A&gt; to be sure you get the full listing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:09:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457787#M23585</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-09-30T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get a list of files in a shared folder using Objective-C SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457985#M23590</link>
      <description>&lt;P&gt;I recognized it.&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:18:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-get-a-list-of-files-in-a-shared-folder-using-Objective/m-p/457985#M23590</guid>
      <dc:creator>sin5</dc:creator>
      <dc:date>2020-10-01T08:18:30Z</dc:date>
    </item>
  </channel>
</rss>

