Account
See also
Parameters
Current ApiClient instance.
Constructors
Properties
Extensions
Shorthand property to Account.removeProfileBanner.
Removes the uploaded profile banner for the authenticating user. Returns HTTP 200 upon success.
Shorthand extension property to Account.settings.
Returns settings (including current trend, geo and sleep time information) for the authenticating user.
Shorthand extension property to Account.updateProfile.
Sets some values that users are able to set under the "Account" tab of their settings page. Only the parameters specified will be updated.
Update profile background image.
Updates the authenticating user's profile background image. This method can also be used to enable or disable the profile background image. Although each parameter is marked as optional, at least one of image or media_id must be provided when making this request. Learn more about the deprecation of this endpoint via our forum post.
Uploads a profile banner on behalf of the authenticating user. More information about sizing variations can be found in User Profile Images and Banners and GET users/profile_banner.
Updates the authenticating user's profile image. Note that this method expects raw multipart data, not a URL to an image.
Shorthand extension property to Account.updateSettings.
Updates the authenticating user's settings.
Shorthand property to Account.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. Use this method to test if supplied user credentials are valid.