draftbit / twitter-lite

A tiny, full-featured, flexible client / server library for the Twitter API
https://npm.im/twitter-lite
MIT License
794 stars 96 forks source link

Added support for media/upload & tweets #187

Open charlesr1971 opened 2 years ago

charlesr1971 commented 2 years ago

Added support for the following endpoints:

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

media/upload requires that the oAuth data including:

And the Base64 encoded binary image data:

To be placed in the body

The only headers required are:

postman-twitter-media-upload-auth

postman-twitter-media-upload-headers

postman-twitter-media-upload-body

jose-azevedo commented 2 years ago

I hope it gets merged soon! Thanks @charlesr1971

charlesr1971 commented 2 years ago

@jose-azevedo Yes. So do I.

POST media/upload [v1.1]

This is Twitter endpoint that is much in demand! 🙏

charlesr1971 commented 2 years ago

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

stevenaldinger commented 1 year ago

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

charlesr1971 commented 1 year ago

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 commented 1 year ago

@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