Click or drag to resize

SmartsheetBuilder Class

A convenience class to help create a instance with the appropriate fields.

Thread Safety: This class is not thread safe since it's mutable, one builder instance is NOT expected to be used in multiple threads.

Inheritance Hierarchy
SystemObject
  Smartsheet.ApiSmartsheetBuilder

Namespace:  Smartsheet.Api
Assemblies:   smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
  smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntax
public class SmartsheetBuilder

The SmartsheetBuilder type exposes the following members.

Constructors
  NameDescription
Public methodSmartsheetBuilder
Constructor.
Top
Properties
  NameDescription
Public propertyAccessToken

Gets the access token.

Public propertyAssumedUser

Gets the assumed user.

Public propertyBaseURI

Gets the base uri.

Public propertyStatic memberDefaultBaseUri

Gets the default base uri.

Public propertyHttpClient

Gets the http client.

Public propertyJsonSerializer

Gets the Json serializer.

Top
Methods
  NameDescription
Public methodBuild

Build the SmartsheetClient instance.

Public methodSetAccessToken

Set the access token.

Public methodSetAssumedUser

Set the assumed user.

Public methodSetBaseURI

Set the base URI.

Public methodSetChangeAgent

Set the Smartsheet change agent.

Public methodSetDateTimeFixOptOut
Set optional flag to re-enable JSON deserializers conversion from string to C# DateTime
Public methodSetHttpClient

Set the HttpClient.

Public methodSetJsonSerializer

Set the JsonSerializer.

Public methodSetMaxRetryTimeout
Create a DefaultCalcBackoff with a max elapsed timeout specified by the user. This interface is only valid when the DefaultHttpClient is used.
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_BASE_URI

Represents the default base URI of the Smartsheet REST API.

It is a constant with Value "https://api.smartsheet.com/2.0".

Public fieldStatic memberGOV_BASE_URI

Represents the base URI of the Smartsheetgov REST API.

It is a constant with Value "https://api.smartsheetgov.com/2.0".

Top
See Also