# Io Reference

Networking / Twitter / TwitterAccount

|  | Object representing a twitter account.
|  | accessTokenSecret Returns the OAuth token secret. account Returns account associated with this profile. backgroundColor Returns the backgroundColor set in the twitter profile. backgroundImageFile Returns the backgroundImageFile set in the twitter profile. consumerKey Returns the OAuth consumerKey. consumerSecret Returns the OAuth consumerSecret. deleteStatus(tweetId) Deletes the specified tweet and returns the results of the request. description Returns the description set in the twitter profile. follow(aScreenName) Follow the user with the specified screen name. Returns results of the request. followId(userId) Follow the user with the specified id. Returns results of the request. followersCursor Returns a new TwitterFollowersCursor instance for this account. friendsCursor Returns a new TwitterFriendsCursor instance for this account. hasFollower(aScreenName) Returns true if the account has the specified follower, false otherwise. hasFriend(aScreenName) Returns true if the account has the specified friend, false otherwise. hasProtectedUpdates Returns true if the account has protected updates, false otherwise. homeTimeline Returns the home timeline tweets for this account imageFile Returns the imageFile set in the twitter profile. isLimited Returns true if the account's rate limit is exceeded, false otherwise. isSuspended(aScreenName) Returns true if the specified screenName is a suspended account, false otherwise. linkColor Returns the linkColor set in the twitter profile. location Returns the geographical location set in the twitter profile. mentions Returns mentions for this account. name Returns the name associated with the profile. password Returns the account password. profile Returns the account Profile object. publicTimeline Returns the public timeline tweets for this account rateLimitExpiration Returns the account rateLimitExpiration. rateLimitRemaining Returns the account rateLimitRemaining. request Returns a new TwitterRequest object for this account. requestOAuthAccess Sets the token and tokenSecret using CURL + Oauth oob. consumerKey, consumerSecret, username and password must be set. Returns self resultsFor(aRequest) Returns results for the request. retweet(tweetId) Retweets the tweet with tweetId screenName Returns the account screenName. setAccessTokenSecret(aTokenSecret) Sets the OAuth token secret. Returns self. setAccount(anAccount) Sets the account associated with this profile. Returns self. setConsumerKey(aKey) Sets the OAuth consumerKey. Returns self. setConsumerSecret(aKey) Sets the OAuth consumerSecret. Returns self. setName(aSeq) Sets the name associated with the profile. Returns self. setPassword(aSeq) Sets the account password. Returns self. setProfile(aProfile) Sets the account profile. Returns self. setRateLimitExpiration(aNumber) Sets the account rateLimitExpiration. Returns self. setRateLimitRemaining(aNumber) Sets the account rateLimitRemaining. Returns self. setScreenName(aSeq) Sets the account screenName. Returns self. setToken(aToken) Sets the OAuth token. Returns self. show Returns a Map containing attributes related to the Twitter user associated with this account showUser(aScreenName) Returns a Map containing attributes related to the Twitter user associated with aScreenName showUserWithId(anId) Returns a Map containing attributes related to the Twitter user associated with anId sidebarBorderColor Returns the sidebarBorderColor set in the twitter profile. sidebarFillColor Returns the sidebarFillColor set in the twitter profile. textColor Returns the textColor set in the twitter profile. tilesBackgroundImage Returns the tilesBackgroundImage set in the twitter profile. token Returns the OAuth token. twitterIdForScreenName(aScreenName) Returns twitter id for the specified screenName. unfollow(aScreenName) Unfollow the user with the specified screen name. Returns self. unfollowId(userId) Unfollow the user with the specified screen id. Returns self. update Fetch the latest basic profile settings from twitter. updateBackgroundImage Fetch the latest background image settings from twitter. updateColors Fetch the latest profile color settings from twitter. updateImage Fetch the latest image settings from twitter. updateRateLimits Updates the rate limits. Returns self. updateStatus(messageText, tweetId) Updates the status message and returns the results of the request. url Returns the url to the twitter profile. userExists(aScreenName) Returns true if the specified user exists, false otherwise. userTimeline Returns the user timeline tweets for this account