示例#1
0
        public void Maopao(string content, string device)
        {
            HttpContent         http_content = mBuild.Maopao(content, device);
            HttpResponseMessage rsp          = HttpPost.Post(RequestBuilderCommon.SocialMaopao, http_content);
            JObject             jo           = null;

            if (ResponseParserCommon.AreYouOk(rsp, ref jo))
            {
            }
        }
示例#2
0
        public void SendMessage(string name, string content)
        {
            HttpContent         http_content = mBuild.SendMessage(name, content);
            HttpResponseMessage rsp          = HttpPost.Post(RequestBuilderCommon.SocialMessageSend, http_content);
            JObject             jo           = null;

            if (ResponseParserCommon.AreYouOk(rsp, ref jo))
            {
            }
        }
示例#3
0
        public async void GetFollowers(int pageId, int pageSize)
        {
            HttpContent         http_content = mBuild.GetFollowers(pageId, pageSize);
            HttpResponseMessage rsp          = HttpGet.Get(
                RequestBuilderCommon.SocialFollowers + await http_content.ReadAsStringAsync());
            JObject jo = null;

            if (ResponseParserCommon.AreYouOk(rsp, ref jo))
            {
            }
        }
示例#4
0
        public bool UnFollow(string user)
        {
            HttpContent         http_content = mBuild.UnFollow(user);
            HttpResponseMessage rsp          = HttpPost.Post(RequestBuilderCommon.SocialUnFollow, http_content);
            JObject             jo           = null;

            if (ResponseParserCommon.AreYouOk(rsp, ref jo))
            {
                return(true);
            }
            return(false);
        }
示例#5
0
        public void Login(string email, string password, string j_captcha = null)
        {
            HttpContent         content = mBuild.Login(email, password, j_captcha);
            HttpResponseMessage rsp     = HttpPost.Post(RequestBuilderCommon.AccountLogin, content);
            JObject             jo      = null;

            if (ResponseParserCommon.AreYouOk(rsp, ref jo))
            {
//                 String key = jo["data"]["global_key"].ToString();
//                 String url = RequestBuilderCommon.Host + "/api/user/key/" + key;
//                 HttpGet.Get(url);
            }
        }