public interface AccountMethodsAsync
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
This endpoint is deprecated and should no longer be used.
|
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.
|
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.
|
void verifyCredentials()
void getRateLimitStatus()
void updateDeliveryDevice(Device device)
device
- new Delivery device. Must be one of: IM, SMS, NONE.void updateProfileColors(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
profileBackgroundColor
- optional, can be nullprofileTextColor
- optional, can be nullprofileLinkColor
- optional, can be nullprofileSidebarFillColor
- optional, can be nullprofileSidebarBorderColor
- optional, can be nullvoid updateProfileImage(java.io.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 updateProfileBackgroundImage(java.io.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 updateProfile(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
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.