| Package | twitter.api |
| Class | public class Twitter |
| Inheritance | Twitter flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
Twitter()
| |||
|
endSession():void
| |||
|
follow(userId:String):void
Follows a user.
| |||
|
loadDirectMessages():void
| |||
|
loadFeatured():void
| |||
|
loadFollowers(lite:Boolean = true):void
| |||
|
loadFollowersIds(user:String):void
| |||
|
loadFriends(userId:String, lite:Boolean = true, page:int = 0):void
Loads a list of Twitter friends and (optionally) their statuses.
| |||
|
loadFriendsIds(user:String):void
| |||
|
loadFriendsTimeline(userId:String):void
Loads the timeline of all friends on Twitter.
| |||
|
loadInfo(user:String):void
| |||
|
loadPublicTimeline():void
Loads the timeline of all public users on Twitter.
| |||
|
loadRateLimitStatus():void
| |||
|
loadReplies():void
Loads the most recent replies for the current authenticated user
| |||
|
loadSentDirectMessage():void
| |||
|
loadUserTimeline(userId:String, count:int = 20, page:int = 1):void
Loads the timeline of a specific user on Twitter.
| |||
|
search(query:TwitterSearch):void
| |||
|
sendDirectMessage(recipientScreenName:String, message:String):void
| |||
|
setAuthenticationCredentials(username:String, password:String):void
Sets the username and password for this instance, setting the
flag to use https to true.
| |||
|
setStatus(statusString:String):void
Sets user's Twitter status.
| |||
|
showStatus(id:String):void
Returns a single status, specified by the id parameter below.
| |||
|
updateLocation(location:String):void
| |||
|
verify():void
| |||
| Constant | Defined by | ||
|---|---|---|---|
| ATOM_NS : Namespace [static]
| |||
| () | constructor |
public function Twitter()
| endSession | () | method |
public function endSession():void
| follow | () | method |
public function follow(userId:String):voidFollows a user. Right now this uses the /friendships/create/user.format
ParametersuserId:String |
| loadDirectMessages | () | method |
public function loadDirectMessages():void
| loadFeatured | () | method |
public function loadFeatured():void
| loadFollowers | () | method |
public function loadFollowers(lite:Boolean = true):voidParameters
lite:Boolean (default = true) |
| loadFollowersIds | () | method |
public function loadFollowersIds(user:String):voidParameters
user:String |
| loadFriends | () | method |
public function loadFriends(userId:String, lite:Boolean = true, page:int = 0):voidLoads a list of Twitter friends and (optionally) their statuses. Authentication required for private users.
ParametersuserId:String |
|
lite:Boolean (default = true) |
|
page:int (default = 0) |
| loadFriendsIds | () | method |
public function loadFriendsIds(user:String):voidParameters
user:String |
| loadFriendsTimeline | () | method |
public function loadFriendsTimeline(userId:String):voidLoads the timeline of all friends on Twitter. Authentication required for private users.
ParametersuserId:String |
| loadInfo | () | method |
public function loadInfo(user:String):voidParameters
user:String |
| loadPublicTimeline | () | method |
public function loadPublicTimeline():voidLoads the timeline of all public users on Twitter.
| loadRateLimitStatus | () | method |
public function loadRateLimitStatus():void
| loadReplies | () | method |
public function loadReplies():voidLoads the most recent replies for the current authenticated user
| loadSentDirectMessage | () | method |
public function loadSentDirectMessage():void
| loadUserTimeline | () | method |
public function loadUserTimeline(userId:String, count:int = 20, page:int = 1):voidLoads the timeline of a specific user on Twitter. Authentication required for private users.
ParametersuserId:String |
|
count:int (default = 20) |
|
page:int (default = 1) |
| search | () | method |
| sendDirectMessage | () | method |
public function sendDirectMessage(recipientScreenName:String, message:String):voidParameters
recipientScreenName:String |
|
message:String |
| setAuthenticationCredentials | () | method |
public function setAuthenticationCredentials(username:String, password:String):void
Sets the username and password for this instance, setting the
flag to use https to true. Note that this will not
work at all in Flash player 9.0.115, and will only work in later
versions if the remote server has the
allow-http-request-headers-from tag set permissively
in its crossdomain policy file. For more information see:
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403184.
Unfortunately Twitter has it set to (as of Sept 2008):
username:String |
|
password:String |
| setStatus | () | method |
public function setStatus(statusString:String):voidSets user's Twitter status. Authentication required.
ParametersstatusString:String |
| showStatus | () | method |
public function showStatus(id:String):voidReturns a single status, specified by the id parameter below. The status's author will be returned inline.
Parametersid:String |
| updateLocation | () | method |
public function updateLocation(location:String):voidParameters
location:String |
| verify | () | method |
public function verify():void
| ATOM_NS | constant |
public static const ATOM_NS:Namespace