Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.01 KB

README.md

File metadata and controls

48 lines (39 loc) · 1.01 KB

twish

Requirements:

Use the script as a command

alias tw=<...path choice/tw>

Authentication

In the developer account, you need to obtain the values for BEARER TOKEN, CLIENT_ID, and CLIENT_SECRET.
These values will first be used in the script, then authenticate yourself.

tw -auth

Post a tweet

tw "New post!"

...With media

tw "New post!" image.jpg
tw "New post!" https://anyurl-image.up/image.jpg

Reply to tweets

You need to obtain the ID

tw -rep <tweet_id> "reply"

Delete tweets

You need to obtain the ID

tw -del <tweet_id>