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
Afficher le fichier Open project: smartsheet-platform/smartsheet-csharp-sdk

Méthodes publiques

Méthode 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 méthode

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
Résultat void

RefreshAccessToken() public méthode

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
Résultat void

RevokeAccessToken() public méthode

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
Résultat void

TokenResourcesImpl() public méthode

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