Hi

I am happily able to connect to the twitter REST api and get my
friends timeline loaded with no problem so I know that I am getting
the relevant authorization sent with no problems. I have tried other
API calls and all with no problem except when I try to update my
status.

Here is a sample of the code operating on <mx:HTTPService
id="tweetiepie" />

private function sendTweet(e:MouseEvent): void {
                                var encoder : Base64Encoder = new 
Base64Encoder();
                                var theMessage : Text = new Text();

                                theMessage.text = escape("Spring has definitely 
sprung");
                                encoder.encode("xxxxxx:xxxxxx");  // this is 
the uid and
password hardcoded for the sake of my tests
                                tweetiepie.headers["Authorization"] = "Basic " 
+ encoder.toString
();
                                tweetiepie.method="POST";

                                
tweetiepie.url="http://twitter.com/statuses/update.xml?status="; +
theMessage.text;

                                tweetiepie.send();
                        }

This fails with a message of
[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL: 
http://twitter.com/statuses/update.xml?status=Spring%20has%20definitely%20sprung";
errorID=2032]. URL: 
http://twitter.com/statuses/update.xml?status=Spring%20has%20definitely%20sprung";]

Reply via email to