| INonAuthenticatedSessionExecuteAsync Method |
Namespace: KomfoSharp.Sessions.NonAuthenticated
Task<ITokensResponse> ExecuteAsync( ITokensRequest tokensRequest )
using (var komfoSession = komfoSessions .NonAuthenticated .Create()) { var tokensRequest = komfoSession.Requests.OAuth20.Tokens .ClientId("<your_client_id>") .ClientSecret("<your_client_secret>") .Scopes(TokenScopes.TwitterFollowers | TokenScopes.Advertising) .Create(); var tokensResponse = await komfoSession.ExecuteAsync(tokensRequest); Console.WriteLine("Access Token: {0}, expires in: {1} days.", tokensResponse.Data.AccessToken, tokensResponse.Data.ExpiresIn.TotalDays); }