Example #1
0
        public void Simple_get()
        {
            var url = "http://testpay.778899.cn/ylpay/GetPayPackage?imsi=012345678901234&smsc=1362193&bver=0";
            var client = new RESTfulClient();
            var ret = client.Get(url);

            Assert.NotNull(ret);
        }
Example #2
0
        public void Execute(IJobExecutionContext context)
        {
            RESTfulClient client = new RESTfulClient();
            string result = client.Get("IndexUrl".ConfigValue());
            LogManager.GetLogger("InfoLogger").Info(result);

            TYDStatisticsService tydStatisticsService = new TYDStatisticsService(new RedisService());

            tydStatisticsService.UpdateTYDApps("TYDMaintainTagId".ConfigValue());
        }
Example #3
0
        public void Simple_post()
        {
            var url = "http://itest.kk570.com/appstores/search";

            var paras = new Dictionary<string,string>();
            paras.Add("keyword", "QQ");
            paras.Add("imsi", "3434343434343");
            paras.Add("format","json");

            var client = new RESTfulClient();
            var ret = client.Post(url, paras);
            Assert.Contains("result=0",ret);
        }