Пример #1
0
        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));
        }
Пример #2
0
        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));
        }