Interface DiscussionAttachmentResources


  • public interface DiscussionAttachmentResources
    • Method Detail

      • getAttachments

        PagedResult<Attachment> getAttachments​(long sheetId,
                                               long discussionId,
                                               PaginationParameters parameters)
                                        throws SmartsheetException

        Get discussion attachment.

        It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions/{discussionId}/attachments

        Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operation

        Parameters:
        sheetId - the sheet id
        discussionId - the discussion id
        parameters - the pagination parameters
        Returns:
        the resource (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
        Throws:
        SmartsheetException - the smartsheet exception