资 源 简 介
This is a simple Twitetr API
>
---
> To use your account
```
var t : Twitter = new Twitter();
// Log in with your account
t.logIn( "username" , "pmypassword" );
// To know when the login is complete
t.addEventListener( TwitterResponseEvent.LOGIN_SUCCESS, success );
function success( e:TwitterResponseEvent ):void {
// To twitt
t.twitt( "My new statut" );
// To delete last twitt
t.untwitt();
// To follow a friend
t.follow( "blanchonvincent" );
// To unfollow a friend
t.unfollow( "blanchonvincent" );
}
```
> You can add eventListener on twitt(), follow(), etc ... :
```
function success( e:TwitterResponseEvent ):void {
// To twitt
t.twitt( "My new statut" );
t.addEventListener( TwitterResponseEvent.TWITT_SUCCESS, twittSuccess );
t.addEventListener( TwitterResponseEvent.TWITT_ERROR, twittError );
// To follow a friend (use ID)
t.foll