예제 #1
0
        public async Task <RestResponse <OAuthData> > LoginAsync(OAuthRequest request)
        {
            request.Header("Accept-Language", CultureInfo.CurrentCulture.TwoLetterISOLanguageName);
            var response = await request.ToResponseAsync();

            if (response.IsSuccessStatusCode)
            {
                Login(response.DeserializedResponse.Username, response.DeserializedResponse.AccessToken);
            }
            return(response);
        }