go-twitter icon indicating copy to clipboard operation
go-twitter copied to clipboard

Add AccountService UpdateProfileImage

Open jyap808 opened this issue 2 years ago • 6 comments

  • POST to account/update_profile_image.json to set specified user profile image
  • https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image

jyap808 avatar Aug 15 '22 00:08 jyap808

Test please?

dghubble avatar Aug 15 '22 14:08 dghubble

Add a test case or test against the API?

jyap808 avatar Aug 15 '22 17:08 jyap808

Added test case. Also confirming this was tested against the Twitter API and actually works.

jyap808 avatar Aug 22 '22 08:08 jyap808

Mm, yeah on further testing with larger images (but within the 700kb documented limit) this doesn't work too well.

Errors:

  • 430 Request Header Fields Too Large
  • stream error: stream ID 1; INTERNAL_ERROR; received from peer

Doesn't look to be documented properly on the Twitter API.

The test case image works fine though.

jyap808 avatar Aug 29 '22 23:08 jyap808

@dghubble OK it works now with the latest commit.

jyap808 avatar Aug 30 '22 03:08 jyap808

Not sure if you’re still testing but this isn’t merged to Main branch.

jyap808 avatar Sep 14 '22 17:09 jyap808

Thanks, but the project is being deprecated https://github.com/dghubble/go-twitter/pull/207

dghubble avatar Nov 04 '22 22:11 dghubble