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

Added support for media/upload & tweets

Open charlesr1971 opened this issue 3 years ago • 6 comments

Added support for the following endpoints:

POST media/upload [v1.1]
POST tweets [v2]

media/upload requires that the oAuth data including:

  • oauth_consumer_key
  • oauth_nonce [requires get-random-values library]
  • oauth_signature [requires oauth-signature library]
  • oauth_signature_method
  • oauth_timestamp
  • oauth_token
  • oauth_version

And the Base64 encoded binary image data:

  • media_data

To be placed in the body

The only headers required are:

  • Content-Transfer-Encoding = base64
  • Content-Type = application/x-www-form-urlencoded

postman-twitter-media-upload-auth

postman-twitter-media-upload-headers

postman-twitter-media-upload-body

charlesr1971 avatar Dec 09 '21 21:12 charlesr1971

I hope it gets merged soon! Thanks @charlesr1971

jose-azevedo avatar Dec 23 '21 01:12 jose-azevedo

@jose-azevedo Yes. So do I.

POST media/upload [v1.1]

This is Twitter endpoint that is much in demand! 🙏

charlesr1971 avatar Dec 23 '21 08:12 charlesr1971

For some reason, this thread closed itself? I have now reopened it…🙏

charlesr1971 avatar Dec 23 '21 08:12 charlesr1971

is this going to be merged in? is this repo maintained?

stevenaldinger avatar Dec 12 '22 00:12 stevenaldinger

I don’t think this repository is being maintained? I made this PR, a year ago? I have sent messages to the owners? But I get no response 🙄

charlesr1971 avatar Dec 12 '22 07:12 charlesr1971

@jose-azevedo @stevenaldinger

Please clone the following branch, if you wish to use the changes in this PR. Obviously it won’t contain any of the other outstanding PRs, but I have used my branch successfully, to upload media etc

https://github.com/charlesr1971/twitter-lite/tree/%40charlesr1971

charlesr1971 avatar May 01 '23 23:05 charlesr1971