C#调用接口

                string url ="";//请求url
                var client = new RestClient(url);
                var request = new RestRequest(Method.GET);
                request.AddHeader("tp_token",token);
                var response = await client.GetAsync>(request);
                if (response == null || !response.ContainsKey("result"))
                {
                    return;
                }
                var model_list = response["result"];

你可能感兴趣的:(c#,后端,开发语言)