Ejemplo n.º 1
0
        public void logout()
        {
            string url = String.Format("http://d.web2.qq.com/channel/logout2?clientid={0}&psessionid={1}&t={2}&vfwebqq={3}", cliendid, psessionid, ClientID.GetTime(DateTime.Now), vfwebqq);

            HttpHelper.GetHtml(url, cc);
        }
Ejemplo n.º 2
0
        public string getchangestatus(string status)
        {
            string result;

            switch (status)
            {
            case "在线":
                status = "online";
                break;

            case "离开":
                status = "away";
                break;

            case "隐身":
                status = "hidden";
                break;
            }
            string url = String.Format("http://d.web2.qq.com/channel/change_status2?newstatus={0}&clientid={1}&psessionid={2}&t={3}", status, cliendid, psessionid, ClientID.GetTime(DateTime.Now));

            result = HttpHelper.GetHtml(url, cc);
            if (result.IndexOf("ok") > 0)
            {
                result = "设置状态" + status + "成功!";
            }
            else
            {
                result = "设置状态" + status + "失败!";
            }
            return(result);
        }
Ejemplo n.º 3
0
        public string getmessage()
        {
            string result;
            string url = String.Format("http://d.web2.qq.com/channel/poll2?clientid={0}&psessionid={1}&t={2}&vfwebqq={3}", cliendid, psessionid, ClientID.GetTime(DateTime.Now), vfwebqq);

            result = HttpHelper.GetHtml(url, cc);
            return(result);
        }
Ejemplo n.º 4
0
        public string getgourpfriendlist(string uin)
        {
            string result;
            string url = String.Format("http://s.web2.qq.com/api/get_group_info_ext2?gcode={0}&vfwebqq={1}&t={2}", uin, vfwebqq, ClientID.GetTime(DateTime.Now));

            result = HttpHelper.GetHtml(url, cc);
            return(result);
        }
Ejemplo n.º 5
0
        public string getfriendinfo(string touin)
        {
            string result;
            string url = String.Format("http://s.web2.qq.com/api/get_friend_info2?tuin={0}&verifysession=&code=&vfwebqq={1}&t={2}", touin, vfwebqq, ClientID.GetTime(DateTime.Now));

            result = HttpHelper.GetHtml(url, cc);
            return(result);
        }