ListFavorites() public method

Gets a list of all of the user’s Favorite items.

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

This operation supports pagination of results. For more information, see Paging.
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 ListFavorites ( PaginationParameters paging ) : PaginatedResult
paging Smartsheet.Api.Models.PaginationParameters the pagination
return PaginatedResult
Example #1
0
        public virtual void TestListFavorites()
        {
            server.setResponseBody("../../../TestSDK/resources/listFavorites.json");

            PaginatedResult <Favorite> result = favoriteResource.ListFavorites(null);

            Assert.IsTrue(result.Data[0].Type == ObjectType.SHEET);
            Assert.IsTrue(result.Data[0].ObjectId == 5897312590423940);
            Assert.IsTrue(result.Data[1].Type == ObjectType.FOLDER);
            Assert.IsTrue(result.Data[1].ObjectId == 1493728255862660);
        }