Beispiel #1
0
        public HttpStatusCode UpdateStatus(string status, long replyToId, ref string content)
        {
            var param = new Dictionary <string, string>
            {
                { "status", status },
                { "include_entities", string.Format("{0}", true) }
            };

            if (replyToId > 0)
            {
                param.Add("in_reply_to_status_id", string.Format("{0}", replyToId));
            }

            return(_httpCon.GetContent(PostMethod, CreateTwitterUri("statuses", "update"), param, ref content, null, null));
        }
Beispiel #2
0
        public HttpStatusCode UpdateStatus(string status, long replyToId, ref string content)
        {
            Dictionary <string, string> param = new Dictionary <string, string>();

            param.Add("status", status);
            if (replyToId > 0)
            {
                param.Add("in_reply_to_status_id", replyToId.ToString());
            }
            param.Add("include_entities", "true");

            return(httpCon.GetContent(PostMethod,
                                      CreateTwitterUri("/1.1/statuses/update.json"),
                                      param,
                                      ref content,
                                      null,
                                      null));
        }
Beispiel #3
0
        public HttpStatusCode UpdateStatus(string status, long?replyToId, List <long> mediaIds, ref string content)
        {
            Dictionary <string, string> param = new Dictionary <string, string>();

            param.Add("status", status);
            if (replyToId != null)
            {
                param.Add("in_reply_to_status_id", replyToId.ToString());
            }
            param.Add("include_entities", "true");
            //if (AppendSettingDialog.Instance.ShortenTco && AppendSettingDialog.Instance.UrlConvertAuto) param.Add("wrap_links", "true")

            if (mediaIds != null && mediaIds.Count > 0)
            {
                param.Add("media_ids", string.Join(",", mediaIds));
            }

            return(httpCon.GetContent(PostMethod,
                                      this.CreateTwitterUri("/1.1/statuses/update.json"),
                                      param,
                                      ref content,
                                      null,
                                      null));
        }
Beispiel #4
0
        public HttpStatusCode UpdateStatus(string status, long replyToId, ref string content)
        {
            Dictionary <string, string> param = new Dictionary <string, string>();

            param.Add("status", status);
            if (replyToId > 0)
            {
                param.Add("in_reply_to_status_id", replyToId.ToString());
            }
            param.Add("include_entities", "true");
            //if (AppendSettingDialog.Instance.ShortenTco && AppendSettingDialog.Instance.UrlConvertAuto) param.Add("wrap_links", "true")

            return(httpCon.GetContent(PostMethod,
                                      CreateTwitterUri("/1/statuses/update.json"),
                                      param,
                                      ref content,
                                      null,
                                      null));
        }
Beispiel #5
0
        public HttpStatusCode UpdateStatus(string status, long replyToId, ref string content)
        {
            Dictionary <string, string> param = new Dictionary <string, string>();

            param.Add("status", status);
            if (connectionType == AuthMethod.Basic)
            {
                param.Add("source", "Tween");
            }
            if (replyToId > 0)
            {
                param.Add("in_reply_to_status_id", replyToId.ToString());
            }

            return(httpCon.GetContent(PostMethod, CreateTwitterUri("/1/statuses/update.xml"), param, ref content, null));
        }