Smartsheet.Api.Internal.SheetResourcesImpl.ListOrganizationSheets C# (CSharp) Method

ListOrganizationSheets() public method

List all Sheets in the organization.

It mirrors To the following Smartsheet REST API method: GET /users/sheets

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 ListOrganizationSheets ( PaginationParameters paging ) : PaginatedResult
paging Smartsheet.Api.Models.PaginationParameters
return PaginatedResult
        public virtual PaginatedResult<Sheet> ListOrganizationSheets(PaginationParameters paging)
        {
            StringBuilder path = new StringBuilder("users/sheets");
            if (paging != null)
            {
                path.Append(paging.ToQueryString());
            }
            return this.ListResourcesWithWrapper<Sheet>(path.ToString());
        }

Usage Example

Example #1
0
        public virtual void TestListOrganizationSheets()
        {
            server.setResponseBody("../../../TestSDK/resources/listSheets.json");
            IList <Sheet> sheets = sheetResource.ListOrganizationSheets();

            Assert.AreEqual(2, sheets.Count);
        }