예제 #1
0
 private static void go10(int i)
 {
     HttpHelper ht = new HttpHelper();
     string keyWord = i.ToString();
     string url = "http://www.tngou.net/api/food/list";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("page", keyWord);
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent12;
 }
예제 #2
0
        static void Main(string[] args)
        {
            string url = "http://apis.baidu.com/qlyyteam/trainchangeroute/trainchangeroute";
            string param = "from=%E5%90%88%E5%B7%9D&to=%E5%8C%97%E4%BA%AC";
            HttpHelper ht = new HttpHelper();

            string strURL = url + '?' + param;

            Dictionary<string, string> dic = new Dictionary<string, string>();
            ht.CreatePostHttpResponse(strURL, dic);
            ht.FileWatchEvent += Ht_FileWatchEvent;
            Console.ReadLine();
        }
예제 #3
0
 static void Main(string[] args)
 {
     HttpHelper ht = new HttpHelper();
     string keyWord = "感冒";
     string url = "http://www.tngou.net/api/disease/name";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("name", keyWord);
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += ht_FileWatchEvent;
     timer2.Interval = 0.01;
     timer2.Elapsed += timer2_Elapsed;
     timer2.Start();
     Console.ReadKey();
 }
예제 #4
0
 private static void go11(int page)
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://www.tngou.net/api/info/list";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("page", page.ToString());
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent11;
 }
예제 #5
0
 private static void go5(string name, string keyword)
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://www.tngou.net/api/search";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("keyword", keyword);
     dic.Add("name", name);
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent6;
 }
예제 #6
0
 private static void go4()
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://www.tngou.net/api/department/all";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent5; ;
 }
예제 #7
0
 private static void go3(int id)
 {
     HttpHelper ht = new HttpHelper();
     string keyWord = id.ToString();
     Dictionary<string, string> dic = new Dictionary<string, string>();
     string url = "http://www.tngou.net/api/symptom/place";
     dic.Add("id", keyWord);
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent4; ;
 }
예제 #8
0
 private static void go18(string area)
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://www.tngou.net/api/area/" + area;
     Dictionary<string, string> dic = new Dictionary<string, string>();
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent18;
 }
예제 #9
0
 private static void go17()
 {
     HttpHelper ht = new HttpHelper();
     string url = "http://www.tngou.net/api/food/classify";
     Dictionary<string, string> dic = new Dictionary<string, string>();
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent3;
 }