Skip to content

Conversation

@charlesr1971
Copy link

@charlesr1971 charlesr1971 commented Dec 9, 2021

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

@jose-azevedo
Copy link

I hope it gets merged soon! Thanks @charlesr1971

@charlesr1971
Copy link
Author

charlesr1971 commented Dec 23, 2021

@jose-azevedo
Yes. So do I.

POST media/upload [v1.1]

This is Twitter endpoint that is much in demand! 🙏

@charlesr1971
Copy link
Author

charlesr1971 commented Dec 23, 2021

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

@stevenaldinger
Copy link

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

@charlesr1971
Copy link
Author

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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants