C# Class Smartsheet.Api.Internal.TokenResourcesImpl

This is the implementation of TokenResources. Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
Inheritance: AbstractResources, TokenResources
Show file Open project: smartsheet-platform/smartsheet-csharp-sdk

Public Methods

Method Description
GetAccessToken ( ) : void

Please use OAuthFlowBuilder class to build an instance of an OAuthFlow class.

Will throw exception.

It mirrors To the following Smartsheet REST API method: POST /token

RefreshAccessToken ( ) : void

Please use OAuthFlowBuilder class to build an instance of an OAuthFlow class.

Will throw exception.

It mirrors To the following Smartsheet REST API method: POST /token

RevokeAccessToken ( ) : void

Revokes the access token used to make this request. The access token will no longer be valid, and subsequent API calls made using the token will fail.

It mirrors To the following Smartsheet REST API method:
DELETE /token

TokenResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic

Constructor.

Method Details

GetAccessToken() public method

Please use OAuthFlowBuilder class to build an instance of an OAuthFlow class.

Will throw exception.

It mirrors To the following Smartsheet REST API method: POST /token

This exception is always thrown since this operation is not supported by the Token Resources. /// Instead, see OAuthFlow.
public GetAccessToken ( ) : void
return void

RefreshAccessToken() public method

Please use OAuthFlowBuilder class to build an instance of an OAuthFlow class.

Will throw exception.

It mirrors To the following Smartsheet REST API method: POST /token

This exception is always thrown since this operation is not supported by the Token Resources. /// Instead, see OAuthFlow.
public RefreshAccessToken ( ) : void
return void

RevokeAccessToken() public method

Revokes the access token used to make this request. The access token will no longer be valid, and subsequent API calls made using the token will fail.

It mirrors To the following Smartsheet REST API method:
DELETE /token

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 RevokeAccessToken ( ) : void
return void

TokenResourcesImpl() public method

Constructor.
if any argument is null
public TokenResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic
smartsheet SmartsheetImpl the SmartsheetImpl
return System.Collections.Generic