updateProfileBanner abstract method
Uploads a profile banner on behalf of the authenticating user.
More information about sizing variations can be found in User Profile Images and Banners.
Parameters
-
file
: The file of user's new profile banner. -
width
: The width of the preferred section of the image being uploaded in pixels. Use withheight
,offsetLeft
, and offset_top to select the desired region of the image to use. -
height
: The height of the preferred section of the image being uploaded in pixels. Use withwidth
,offsetLeft
, andoffsetTop
to select the desired region of the image to use. -
offsetLeft
: The number of pixels by which to offset the uploaded image from the left. Use withheight
,width
, andoffsetTop
to select the desired region of the image to use. -
offsetTop
: The number of pixels by which to offset the uploaded image from the top. Use withheight
,width
, andoffsetLeft
to select the desired region of the image to use.
Endpoint Url
Authentication Methods
- OAuth 1.0a
Reference
Implementation
Future<TwitterResponse<EmptyData, void>> updateProfileBanner({
required File file,
int? width,
int? height,
int? offsetLeft,
int? offsetTop,
});