ListFolders() public method

List Folders under home.

It mirrors To the following Smartsheet REST API method:
GET /home/Folders

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ListFolders ( PaginationParameters paging ) : PaginatedResult
paging PaginationParameters
return PaginatedResult
        public virtual void TestListFolders()
        {
            server.setResponseBody("../../../TestSDK/resources/listFoldersInHome.json");

            PaginatedResult <Folder> result = homeFolderResources.ListFolders(new PaginationParameters(false, null, null));

            Assert.True(result.Data.Count == 2);
            Assert.AreEqual("Folder 1", result.Data[0].Name);
            Assert.AreEqual("Folder 2", result.Data[1].Name);
            Assert.True(7116448184199044L == result.Data[0].Id);
        }
Example #2
0
        public virtual void TestListFolders()
        {
            server.setResponseBody("../../../TestSDK/resources/listFolders.json");

            IList <Folder> folders = homeFolderResources.ListFolders();

            Assert.True(folders.Count == 2);
            Assert.AreEqual("Personal", folders[0].Name);
            Assert.AreEqual("Expenses", folders[1].Name);
            Assert.True(1138268709382020L == folders[0].ID);
        }