Tweeting images with Golang
Introduction X (the website formerly known as Twitter) has gone through certain “changes” in recent years. At some point they introduced the v2 API but the functionality isn’t complete.
The v1 API needs to be used for uploading media and getting the resulting media ID. We then need to use the v2 API to reference the uploaded media ID to finalize the post.
Media upload For the v1 API media upload I utilize this library: github.
Read more...