public async Task <IResponseResult <Application> > WhoAmIAsync(BasicToken basicToken) { var url = $"{this.AuthApiBaseUrl}/whoami"; var headers = HeaderCollection.Add("Authorization", basicToken.ToString()); return(await this.ExecuteRequestAsync <Application>(HttpMethod.Get, url, null, headers)); }
public IResponseResult <Application> WhoAmI(BasicToken basicToken) { var url = $"{this.BaseUrl}/whoami"; var headers = HeaderCollection.Add("Authorization", basicToken.ToString()); return(this.ExecuteRequest <Application>(HttpMethod.Get, url, null, headers)); }