ToQueryString() public method

Returns a formatted string of query string parameters.
public ToQueryString ( ) : string
return string
 /// <summary>
 /// <para>Gets a list of all Attachments that are in the Discussion</para>
 /// <para>It mirrors To the following Smartsheet REST API method: <br />
 /// GET /sheets/{sheetId}/discussions/{discussionId}/attachments</para>
 /// </summary>
 /// <param name="sheetId"> the sheetId </param>
 /// <param name="discussionId"> the discussion Id </param>
 /// <param name="paging"> the paging </param>
 /// <returns> list of all Attachments that are in the Discussion. </returns>
 /// <exception cref="System.InvalidOperationException"> if any argument is null or empty string </exception>
 /// <exception cref="InvalidRequestException"> if there is any problem with the REST API request </exception>
 /// <exception cref="AuthorizationException"> if there is any problem with  the REST API authorization (access token) </exception>
 /// <exception cref="ResourceNotFoundException"> if the resource cannot be found </exception>
 /// <exception cref="ServiceUnavailableException"> if the REST API service is not available (possibly due To rate limiting) </exception>
 /// <exception cref="SmartsheetException"> if there is any other error during the operation </exception>
 public virtual PaginatedResult<Attachment> ListAttachments(long sheetId, long discussionId, PaginationParameters paging)
 {
     StringBuilder path = new StringBuilder("sheets/" + sheetId + "/discussions/" + discussionId + "/attachments");
     if (paging != null)
     {
         path.Append(paging.ToQueryString());
     }
     return this.ListResourcesWithWrapper<Attachment>(path.ToString());
 }
 /// <summary>
 /// <para>Gets a list of the user’s Smartsheet Contacts.</para>
 /// <para>It mirrors To the following Smartsheet REST API method:
 /// POST GET /contacts</para>
 /// </summary>
 /// <param name="paging"> the pagination info </param>
 /// <returns> The list of Contact objects </returns>
 /// <exception cref="System.InvalidOperationException"> if any argument is null or empty string </exception>
 /// <exception cref="InvalidRequestException"> if there is any problem with the REST API request </exception>
 /// <exception cref="AuthorizationException"> if there is any problem with  the REST API authorization (access token) </exception>
 /// <exception cref="ResourceNotFoundException"> if the resource cannot be found </exception>
 /// <exception cref="ServiceUnavailableException"> if the REST API service is not available (possibly due To rate limiting) </exception>
 /// <exception cref="SmartsheetException"> if there is any other error during the operation </exception>
 public virtual PaginatedResult<Contact> ListContacts(PaginationParameters paging)
 {
     StringBuilder path = new StringBuilder("contacts");
     if (paging != null)
     {
         path.Append(paging.ToQueryString());
     }
     return ListResourcesWithWrapper<Contact>(path.ToString());
 }
コード例 #3
0
 /// <summary>
 /// <para>List all Sheets in the organization.</para>
 /// <para>It mirrors To the following Smartsheet REST API method: GET /users/sheets</para>
 /// </summary>
 /// <returns> the list of all Sheets (note that an empty list will be returned if there are none) </returns>
 /// <exception cref="System.InvalidOperationException"> if any argument is null or empty string </exception>
 /// <exception cref="InvalidRequestException"> if there is any problem with the REST API request </exception>
 /// <exception cref="AuthorizationException"> if there is any problem with  the REST API authorization (access token) </exception>
 /// <exception cref="ResourceNotFoundException"> if the resource cannot be found </exception>
 /// <exception cref="ServiceUnavailableException"> if the REST API service is not available (possibly due To rate limiting) </exception>
 /// <exception cref="SmartsheetException"> if there is any other error during the operation </exception>
 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());
 }
 /// <summary>
 /// <para>Gets a list of all of the user’s Favorite items.</para>
 /// <para>It mirrors To the following Smartsheet REST API method: GET /favorites</para>
 /// <remarks>This operation supports pagination of results. For more information, see Paging.</remarks>
 /// </summary>
 /// <param name="paging">the pagination</param>
 /// <returns> A list of all Favorites (note that an empty list will be returned if there are none). </returns>
 /// <exception cref="System.InvalidOperationException"> if any argument is null or empty string </exception>
 /// <exception cref="InvalidRequestException"> if there is any problem with the REST API request </exception>
 /// <exception cref="AuthorizationException"> if there is any problem with  the REST API authorization (access token) </exception>
 /// <exception cref="ResourceNotFoundException"> if the resource cannot be found </exception>
 /// <exception cref="ServiceUnavailableException"> if the REST API service is not available (possibly due To rate limiting) </exception>
 /// <exception cref="SmartsheetException"> if there is any other error during the operation </exception>
 public virtual PaginatedResult<Favorite> ListFavorites(PaginationParameters paging)
 {
     StringBuilder path = new StringBuilder("favorites");
     if (paging != null)
     {
         path.Append(paging.ToQueryString());
     }
     return this.ListResourcesWithWrapper<Favorite>(path.ToString());
 }