Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dborisenko/twitter-actionscript-api
Twitter API library for Flex/AIR/ActionScript 3.0
https://github.com/dborisenko/twitter-actionscript-api
Last synced: about 2 months ago
JSON representation
Twitter API library for Flex/AIR/ActionScript 3.0
- Host: GitHub
- URL: https://github.com/dborisenko/twitter-actionscript-api
- Owner: dborisenko
- Archived: true
- Created: 2011-12-22T00:03:12.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T17:17:56.000Z (over 11 years ago)
- Last Synced: 2024-08-04T05:04:45.642Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 3.26 MB
- Stars: 18
- Watchers: 6
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - twitter-actionscript-api - Twitter API library for Flex/AIR/ActionScript 3.0 (API / Twitter API)
README
#Twitter API library for Flex/AIR/ActionScript 3.0
ActionScript 3.0 library for [Twitter](http://twitter.com/) [API](http://apiwiki.twitter.com/). For use in Adobe Flash, Adobe Flex, Adobe AIR.
oAuth connector is implemented using [ActionScript 3.0 library for oAuth](http://code.google.com/p/oauth-as3/).
Example of using:
var twitterApi:TwitterAPI = new TwitterAPI();
twitterApi.connection.setAccessToken(key, secret);
var op:TwitterOperation = new VerifyCredentials();
var handler:Function = function (event:TwitterEvent):void
{
op.removeEventListener(TwitterEvent.COMPLETE, handler);
if (event.success)
{
trace("Credentials verified. User is: " + TwitterUser(event.data).screenName);
}
else
{
trace("Verification error. Twitter error message: " + event.data);
}
};
op.addEventListener(TwitterEvent.COMPLETE, handler);
twitterApi.post(op, TwitterAPI.POST_TYPE_ASYNC_STATIC, TwitterAPI.PRIORITY_HIGHEST);