public async Task <IResult <Token> > GetToken(string username, string password) { var request = new Request(Method.GET, AuthenticationHelpers.AuthenticationPath); AuthenticationHelpers.ApplyBasicAuthentication(request, new Credentials { Username = username, Password = password }); return(await client.ExecuteTaskAsync <Token>(request)); }