Esempio n. 1
0
        public static string GetVideo(int categoryId)
        {
            string     url  = "http://expand.video.iqiyi.com/api/category/list.json?apiKey=" + appkey + "&categoryId" + categoryId;
            I_HttpPost post = new AqyVideoApi.I_HttpPost();
            string     data = post.I_Post(url, null);

            //List<VideoEntity> listVideo = JsonToList<VideoEntity>(data);


            return(data);
        }
Esempio n. 2
0
        public static string TestGetVideo()
        {
            //string url = "https://www.ixxplayer.com/video.php?url=http://bobo.okokbo.com/20180301/WEwKQ997/index.m3u8";
            string     url  = "http://zabaye.com/search.php?searchword=%E8%BF%AA%E4%B8%BD%E7%83%AD%E5%B7%B4";
            I_HttpPost post = new AqyVideoApi.I_HttpPost();
            //string postdata = @"{""name"":""烈火如歌""}";
            //string postdata = @"{""video"":[{""name"":""烈火如歌"",""link"":""http://www.zabaye.com/detail/?6231.html"",""pic"":""""}]}";
            string postdata = @"{""searchword"":""%E8%BF%AA%E4%B8%BD%E7%83%AD%E5%B7%B4""}";
            //byte[] bytedate = Encoding.UTF8.GetBytes(postdata);
            //byte[] bytedate = Convert.FromBase64String(postdata);
            //MemoryStream ms = new MemoryStream(bytedate);
            //Dictionary<object, string> diction = new Dictionary<object, string>();
            //diction.Add("Accept-Encoding", "gzip, deflate");
            //diction.Add("Content-Type", "application/x-www-form-urlencoded");
            string data = post.I_Post(url, "");

            return(data);
        }