C# Class HealthGraphNet.RestSharp.OAuth2RequestHeaderAuthenticator

Used as a replacement for OAuth2AuthorizationRequestHeaderAuthenticator (https://github.com/restsharp/RestSharp/blob/master/RestSharp/Authenticators/OAuth2Authenticator.cs). Because HealthGraph uses the tokenType instead of the literal "OAuth" as the first part of the _authorizationValue.
Inheritance: OAuth2Authenticator
Mostra file Open project: Tron5000/HealthGraphNet Class Usage Examples

Public Methods

Method Description
Authenticate ( IRestClient client, IRestRequest request ) : void
OAuth2RequestHeaderAuthenticator ( string tokenType, string accessToken ) : System

Method Details

Authenticate() public method

public Authenticate ( IRestClient client, IRestRequest request ) : void
client IRestClient
request IRestRequest
return void

OAuth2RequestHeaderAuthenticator() public method

public OAuth2RequestHeaderAuthenticator ( string tokenType, string accessToken ) : System
tokenType string
accessToken string
return System