コード例 #1
0
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
        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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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
ファイル: Program.cs プロジェクト: jevonsflash/MyToolKit
 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;
 }