コード例 #1
0
        // _perform_auth_request
        private static async Task <Dictionary <string, string> > performAuthRequestAsync(Dictionary <string, string> data)
        {
            var content = new FormUrlEncodedContent(data);

            var response = await httpClient.PostAsync(authUrl, content);

            response.EnsureSuccessStatusCode();

            var result = await response.Content.ReadAsStringAsync();

            return(GoogleKeyUtils.ParseAuthResponse(result));
        }