调用主体

Get请求

var httpClient = new HttpClient();            
            var getTokenUrl = new Uri("接口网络地址");
            var response = httpClient.GetAsync(getTokenUrl).Result;
            var data = response.Content.ReadAsStringAsync().Result;//接口调用成功获取的数据
            JObject jsonInfo = (JObject)JsonConvert.DeserializeObject(data);
            string code = Convert.ToString(jsonInfo["errcode"]);
View Code

相关文章:

  • 2022-01-07
  • 2022-01-29
  • 2021-10-29
  • 2021-06-04
  • 2022-12-23
  • 2021-08-21
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案