pub struct SmartsheetApi<'a> { /* private fields */ }
Expand description

Client implementation for making requests to the Smartsheet API v2

Implementations

Initialize a new SmartsheetApi object from an API access token.

Initialize a new SmartsheetApi object from an API access token, assuming this is currently set in the environment.

Initialize a new SmartsheetApi object from a (custom) base API endpoint, and an access token.

List Sheets - Gets a list of all sheets that the user has access to in alphabetical order by name. The list contains an abbreviated Sheet object for each sheet.

Docs
  • https://smartsheet-platform.github.io/api-docs/#list-sheets

List Sheets - Gets a list of all sheets that the user has access to in alphabetical order by name, with included query parameters. The list contains an abbreviated Sheet object for each sheet.

Arguments
  • include - A comma-separated list of elements to include in the response.
  • include_all - If true, include all results (i.e. do not paginate).
  • modified_since - Return sheets modified since a provided datetime. Date should be in ISO-8601 format, for example, 2020-01-30T13:25:32-07:00.
Docs
  • https://smartsheet-platform.github.io/api-docs/#list-sheets

Get Sheet - Retrieves the specified sheet. Returns the sheet, including rows, and optionally populated with discussion and attachment objects.

Arguments
  • sheet_id - The Smartsheet to retrieve the rows and data for.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-sheet
  • https://smartsheet-platform.github.io/api-docs/#row-include-flags

Get Sheet - Retrieves the specified sheet, with included query parameters. Returns the sheet, including rows, and optionally populated with discussion and attachment objects.

Arguments
  • sheet_id - The Smartsheet to retrieve the rows and data for.
  • include - A comma-separated list of elements to include in the response.
  • exclude - A comma-separated list of elements to not include in the response.
  • row_ids - A comma-separated list of Row IDs on which to filter the rows included in the result.
  • row_numbers - A comma-separated list of Row numbers on which to filter the rows included in the result. Non-existent row numbers are ignored.
  • column_ids - A comma-separated comma-separated list of Column IDs. The response will contain only the specified columns in the ‘columns’ array, and individual rows’ ‘cells’ array will only contain cells in the specified columns.
  • rows_modified_since - Return rows modified since a provided datetime. Date should be in ISO-8601 format, for example, 2020-01-30T13:25:32-07:00.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-sheet
  • https://smartsheet-platform.github.io/api-docs/#row-include-flags

Get Row - Retrieves the specified row from a sheet.

Arguments
  • sheet_id - The Smartsheet to retrieve the rows from.
  • row_id - The specified row to retrieve.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-row

Get Row - Retrieves the specified row from a sheet, with included column data.

Arguments
  • sheet_id - The Smartsheet to retrieve the rows from.
  • row_id - The specified row to retrieve.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-row

Get Row - Retrieves the specified row from a sheet, with included query parameters.

Arguments
  • sheet_id - The Smartsheet to retrieve the rows from.
  • row_id - The specified row to retrieve.
  • include - A comma-separated list of elements to include in the response.
  • exclude - A comma-separated list of elements to not include in the response.
  • level - Specifies whether multi-contact data is returned in a backwards-compatible, text format, or as multi-contact data.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-row
  • https://smartsheet-platform.github.io/api-docs/#row-include-flags

List Columns - Gets a list of all columns belonging to the specified sheet.

Docs
  • https://smartsheet-platform.github.io/api-docs/#list-columns

List Columns - Gets a list of all columns belonging to the specified sheet, with included query parameters.

Arguments
  • sheet_id - The Smartsheet to retrieve the columns from.
  • level - Specifies whether multi-contact data is returned in a backwards-compatible, text format, or as multi-contact data.
  • include - A comma-separated list of elements to include in the response.
  • include_all - If true, include all results (i.e. do not paginate).
Docs
  • https://smartsheet-platform.github.io/api-docs/#list-columns

Get Column - Retrieves a column by id from the specified sheet.

Arguments
  • sheet_id - The Smartsheet to retrieve the column for.
  • column_id - The Column Id to retrieve the data for.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-column

Get Column - Retrieves a column by id from the specified sheet, with included query parameters.

Arguments
  • sheet_id - The Smartsheet to retrieve the column for.
  • column_id - The Column Id to retrieve the data for.
  • level - Specifies whether multi-contact data is returned in a backwards-compatible, text format, or as multi-contact data.
  • include - A comma-separated list of elements to include in the response.
Docs
  • https://smartsheet-platform.github.io/api-docs/#get-column
👎 Deprecated since 0.2.0:

please cache the sheet id and use get_sheet instead

Get Sheet By Name - Convenience function to retrieve a specified sheet by name. Used for those times when you don’t know the Sheet Id.

This will internally call list_sheets and then filter the response data by the sheet name. It returns the first matching name.

Returns the sheet, including rows, and optionally populated with discussion and attachment objects.

Arguments
  • sheet_name - The name of the Smartsheet to filter results by.
👎 Deprecated since 0.2.0:

please cache the column id and use get_column instead

Get Column By Title - Convenience function to retrieve a specified column by title (name). Used for those times when you don’t know the Column Id.

This will internally call list_columns and then filter the response data by the column title. It returns the first matching name.

Arguments
  • sheet_id - The Smartsheet to retrieve the column from.
  • column_title - The name of the column to filter results by.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more