RestSharp使用
class Program
    {
        private readonly static string investRankingForAllUrl = "http://192.168.1.98:9000/";
        private readonly static IRestClient _rForAllRestClient;
        static Program()
        {
            _rForAllRestClient = new RestClient(investRankingForAllUrl);
        }
        static void Main(string[] args)
        {
            var request = new RestRequest("api/Ranking/InvestRankingForAll", Method.GET).AddParameter("PageIndex", 1).AddParameter("PageSize", 20);
            var response = _rForAllRestClient.Execute(request);
        }
    }
                    
                
                
            
        
浙公网安备 33010602011771号