You need to update your libraries, notably
OAuth and any Twitter API library.
Prior to 1.1, they all called .xml now they call json
for example:
private static const URL_PUBLIC_TIMELINE:String = ā/statuses/public_timeline.jsonā;
private static const URL_HOME_TIMELINE:String = ā/statuses/home_timeline.jsonā;
private static const URL_FRIENDS_TIMELINE:String = ā/statuses/friends_timeline.jsonā;
private static const URL_USER_TIMELINE:String = ā/statuses/user_timelineā;
private static const URL_RETWEETS_BY_ME:String = ā/statuses/retweeted_by_me.jsonā;
private static const URL_RETWEETS_TO_ME:String = ā/statuses/retweeted_to_me.jsonā;
private static const URL_RETWEETS_OF_ME:String = ā/statuses/retweets_of_me.jsonā;
In version 1., all those ājsonā were āxmlā
In OAuth ( if you are using some third party library)
OAUTH_DOMAIN:String = "https://api.twitter.com <- Note. It is NOT 1.1, nor even 1.
In my library, I also have this
urlRequest.url = _serviceHost+request;
var signedData:String = _oAuth.getSignedRequest(urlRequest.method, "https://api.twitter.com/1.1"+request, urlRequest.data as URLVariables);
urlRequest.data = new URLVariables(signedData);
return urlRequest;
//Note: https://api.twitter.com/1.1"+request, urlRequest.data as URLVariables);
// in the call to oauth
and another example where this is used.
private var _serviceHost:String = "https://api.twitter.com/1.1";
/**
* Service Host URL you want to use.
* This has to be changed if you are going to use tweetr
* from a web app. Since the crossdomain policy of twitter.com
* is very restrictive. use Tweetr's own PHPProxy Class for this.
This is all AS3 code by the way, but you should get the picture I hope.