Esempio n. 1
0
        public override string Update(string status, string in_reply_to_status_id, UserLocation location, OutputFormatType format)
        {
            string url = "http://api.ping.fm/v1/user.post";
            //string data = string.Format("user_app_key={0}&api_key={1}&post_method=microblog&body={2}", this.AccountInfo.UserName,this.AccountInfo.Password,HttpUtility.UrlEncode(status));
            string data = string.Format("user_app_key={0}&api_key={1}&post_method=default&body={2}", this.AccountInfo.UserName, this.AccountInfo.Password, System.Web.HttpUtility.UrlEncode(status));

            if (location != null)
            {
                data += "&location=" + location.ToString();
            }
            return ExecutePostCommand(url, data);
        }