Skip to content

Instantly share code, notes, and snippets.

@DeeJayTC DeeJayTC/loginflow.cs
Last active Feb 15, 2019

Embed
What would you like to do?
using Teamwork;
using Teamwork.Shared;
using Teamwork.Shared.Common;
private async Task<Teamwork.Client> HandleOauthAuthentication(string code, string state)
{
var response = await LoginFlow.TeamworkLoginFlow.GetLoginDataAsync(code);
// Use response to initialize a new instance of the Teamwork APi Client
return Client.GetTeamworkClient(
pDomain: response.AccountData.Account.URL,
pApiKey: response.TokenData.AccessToken,
pUseOauth: true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.