Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Twitter API
#1
Twitter API Wiki

i need a qm twitter client.

title and text fields should be richtext.
pi
#2
http://apiwiki.twitter.com/Open-source
pi
#3
Twitter: send message from a PHP page using Twitter API
pi
#4
REAL Software Forums • View topic - HTTP POST, Twitter.com, Total Confusion...HELP!
pi
#5
best link so far:

Twitter API - Submit a post in C#

Macro
Code:
Copy      Help
[OperationContract]
public void SubmitUserStatus(string username, string tweet)
{
,// encode the username/password
,string user = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password));
,// determine what we want to upload as a status
,byte[] bytes = System.Text.Encoding.ASCII.GetBytes("status=" + tweet);
,// connect with the update page
,HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://twitter.com/statuses/update.xml");
,// set the method to POST
,request.Method = "POST";
,// thanks to argodev for this recent change!
,request.ServicePoint.Expect100Continue = false;
,// set the authorisation levels
,request.Headers.Add("Authorization", "Basic " + user);
,request.ContentType = "application/x-www-form-urlencoded";
,// set the length of the content
,request.ContentLength = bytes.Length;
,// set up the stream
,Stream reqStream = request.GetRequestStream();
,// write to the stream
,reqStream.Write(bytes, 0, bytes.Length);
,// close the stream
,reqStream.Close();
}
pi
#6
Like Http.Post.

Function TweetSubmitUserStatus
Code:
Copy      Help
;/
function $username $tweet $password

str user.encrypt(4 _s.from(username ":" password) "" 3)
str status.from("status=" tweet)
Http h.Connect("twitter.com")
h.Post("statuses/update.xml" status 0 _s.from("Authorization: Basic " user))

not tested


Forum Jump:


Users browsing this thread: 4 Guest(s)