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); }