updateProfileBanner abstract method

Future<TwitterResponse<EmptyData, void>> updateProfileBanner({
  1. required File file,
  2. int? width,
  3. int? height,
  4. int? offsetLeft,
  5. int? offsetTop,
})

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 with height, 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 with width, offsetLeft, and offsetTop 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 with height, width, and offsetTop 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 with height, width, and offsetLeft 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,
});