twitter4j.api
Interface AccountMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface AccountMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void getRateLimitStatus()
          Gets the remaining number of API requests available to the requesting user before the API limit is reached for the current hour.
 void updateDeliveryDevice(Device device)
          Sets which device Twitter delivers updates to for the authenticating user.
 void updateProfile(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
          Sets values that users are able to set under the "Account" tab of their settings page.
 void updateProfileBackgroundImage(java.io.File image, boolean tile)
          Updates the authenticating user's profile background image.
 void updateProfileColors(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
          Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
 void updateProfileImage(java.io.File image)
          Updates the authenticating user's profile image.
 

Method Detail

getRateLimitStatus

void getRateLimitStatus()
Gets the remaining number of API requests available to the requesting user before the API limit is reached for the current hour. Calls to rate_limit_status do not count against the rate limit. If authentication credentials are provided, the rate limit status for the authenticating user is returned. Otherwise, the rate limit status for the requester's IP address is returned.
This method calls http://api.twitter.com/1/account/rate_limit_status

Since:
Twitter4J 1.1.4
See Also:
Twitter API Wiki / Twitter REST API Method: account rate_limit_status

updateDeliveryDevice

void updateDeliveryDevice(Device device)
Sets which device Twitter delivers updates to for the authenticating user. Sending none as the device parameter will disable IM or SMS updates.
This method calls http://api.twitter.com/1/account/update_delivery_device

Parameters:
device - new Delivery device. Must be one of: IM, SMS, NONE.
Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: account update_delivery_device

updateProfileColors

void updateProfileColors(java.lang.String profileBackgroundColor,
                         java.lang.String profileTextColor,
                         java.lang.String profileLinkColor,
                         java.lang.String profileSidebarFillColor,
                         java.lang.String profileSidebarBorderColor)
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com. These values are also returned in the getUserDetail() method.
This method calls http://api.twitter.com/1/account/update_profile_colors

Parameters:
profileBackgroundColor - optional, can be null
profileTextColor - optional, can be null
profileLinkColor - optional, can be null
profileSidebarFillColor - optional, can be null
profileSidebarBorderColor - optional, can be null
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: account update_profile_colors

updateProfileImage

void updateProfileImage(java.io.File image)
Updates the authenticating user's profile image.
This method calls http://api.twitter.com/1/account/update_profile_image.json

Parameters:
image - Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 500 pixels will be scaled down.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: account update_profile_image

updateProfileBackgroundImage

void updateProfileBackgroundImage(java.io.File image,
                                  boolean tile)
Updates the authenticating user's profile background image.
This method calls http://api.twitter.com/1/account/update_profile_background_image.json

Parameters:
image - Must be a valid GIF, JPG, or PNG image of less than 800 kilobytes in size. Images with width larger than 2048 pixels will be forceably scaled down.
tile - If set to true the background image will be displayed tiled. The image will not be tiled otherwise.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: account update_profile_background_image

updateProfile

void updateProfile(java.lang.String name,
                   java.lang.String email,
                   java.lang.String url,
                   java.lang.String location,
                   java.lang.String description)
Sets values that users are able to set under the "Account" tab of their settings page. Only the parameters specified(non-null) will be updated.

Parameters:
name - Optional. Maximum of 20 characters.
email - Optional. Maximum of 40 characters. Must be a valid email address.
url - Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.
location - Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.
description - Optional. Maximum of 160 characters.
Since:
Twitter4J 2.0.2