Click or drag to resize
IKomfoProviderRetrieveAccessTokenAsync Method
Retrieves the access token asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Task<Token> RetrieveAccessTokenAsync(
	string clientId,
	string clientSecret,
	string[] scopes
)

Parameters

clientId
Type: SystemString
The Komfo client identifier.
clientSecret
Type: SystemString
The Komfo client secret.
scopes
Type: SystemString
The scopes.

Return Value

Type: TaskToken
The Token.
Examples
var token = await komfoProvider.RetrieveAccessTokenAsync("<your_client_Id>", "<your_client_secret>", new [] { "twitter_followers" });
Console.WriteLine("Access Token: {0}, expires in: {1} days", token.AccessToken, token.ExpiresIn.TotalDays);
See Also