Smartsheet.Api.Internal.AttachmentVersioningResourcesImpl.ListVersions C# (CSharp) Method

ListVersions() public method

Gets a list of all versions of the given Attachment ID, in order from newest to oldest.

This operation supports pagination of results. For more information, see Paging.

To retrieve a download URL for a file attachment, use the Get Attachment operation for the specific version you want to download.

It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments/{attachmentId}/versions

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 ListVersions ( long sheetId, long attachmentId, PaginationParameters paging ) : PaginatedResult
sheetId long the sheet id
attachmentId long the attachment id
paging Smartsheet.Api.Models.PaginationParameters the pagination
return PaginatedResult
        public virtual PaginatedResult<Attachment> ListVersions(long sheetId, long attachmentId, PaginationParameters paging)
        {
            StringBuilder path = new StringBuilder("sheets/" + sheetId + "/attachments/" + attachmentId + "/versions");
            if (paging != null)
            {
                path.Append(paging.ToQueryString());
            }
            return this.ListResourcesWithWrapper<Attachment>(path.ToString());
        }