|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccountMethodsAsync
| Method Summary | |
|---|---|
void |
getAccountSettings()
Returns the current trend, geo and sleep time information for the authenticating user. |
void |
getAccountTotals()
Returns the current count of friends, followers, updates (statuses) and favorites of the authenticating user. |
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 |
updateAccountSettings(Integer trendLocationWoeid,
Boolean sleepTimeEnabled,
String startSleepTime,
String endSleepTime,
String timeZone,
String lang)
Updates the current trend, geo, language, timezone and sleep time information for the authenticating user. |
void |
updateProfile(String name,
String url,
String location,
String description)
Sets values that users are able to set under the "Account" tab of their settings page. |
void |
updateProfileBackgroundImage(File image,
boolean tile)
Updates the authenticating user's profile background image. |
void |
updateProfileBackgroundImage(InputStream image,
boolean tile)
Updates the authenticating user's profile background image. |
void |
updateProfileColors(String profileBackgroundColor,
String profileTextColor,
String profileLinkColor,
String profileSidebarFillColor,
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(File image)
Updates the authenticating user's profile image. |
void |
updateProfileImage(InputStream image)
Updates the authenticating user's profile image. |
void |
verifyCredentials()
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. |
| Method Detail |
|---|
void verifyCredentials()
void getRateLimitStatus()
void updateProfileColors(String profileBackgroundColor,
String profileTextColor,
String profileLinkColor,
String profileSidebarFillColor,
String profileSidebarBorderColor)
profileBackgroundColor - optional, can be nullprofileTextColor - optional, can be nullprofileLinkColor - optional, can be nullprofileSidebarFillColor - optional, can be nullprofileSidebarBorderColor - optional, can be nullvoid updateProfileImage(File image)
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.void updateProfileImage(InputStream image)
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.
void updateProfileBackgroundImage(File image,
boolean tile)
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 forcibly scaled down.tile - If set to true the background image will be displayed tiled. The image will not be tiled otherwise.
void updateProfileBackgroundImage(InputStream image,
boolean tile)
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 forcibly scaled down.tile - If set to true the background image will be displayed tiled. The image will not be tiled otherwise.
void updateProfile(String name,
String url,
String location,
String description)
name - Optional. Maximum of 20 characters.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.void getAccountTotals()
void getAccountSettings()
void updateAccountSettings(Integer trendLocationWoeid,
Boolean sleepTimeEnabled,
String startSleepTime,
String endSleepTime,
String timeZone,
String lang)
trendLocationWoeid - Optional. The Yahoo! Where On Earth ID to use as the user's default trend location.sleepTimeEnabled - Optional. Whether sleep time is enabled for the userstartSleepTime - Optional. The hour that sleep time should begin if it is enabled.endSleepTime - Optional. The hour that sleep time should end if it is enabled.timeZone - Optional. The timezone dates and times should be displayed in for the user.lang - Optional. The language which Twitter should render in for this user. (two letter ISO 639-1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||