go-twitter
go-twitter copied to clipboard
Add AccountService UpdateProfileImage
- 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
Test please?
Add a test case or test against the API?
Added test case. Also confirming this was tested against the Twitter API and actually works.
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.
@dghubble OK it works now with the latest commit.
Not sure if you’re still testing but this isn’t merged to Main branch.
Thanks, but the project is being deprecated https://github.com/dghubble/go-twitter/pull/207