Skip to content

0xnaman1/tinytweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinytweet - cli tool to post to X from terminal

Image

How to use

  1. Clone the repository:
git clone git@github.com:0xnaman1/tinytweet.git
  1. Create a .envrc file in the root of the project and add the following variables. I used direnv pkg for the env variables. In case you are using some other env pkg, you might have to modify the main.go file to read the env variables.
export CONSUMER_KEY="YOUR_CONSUMER_KEY"
export CONSUMER_SECRET="YOUR_CONSUMER_SECRET"
export ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
export ACCESS_SECRET="YOUR_ACCESS_SECRET"

I used https://developer.x.com/ to get the consumer key, consumer secret, access token, and access secret. Twitter uses OAuth 1.0a for authentication.

  1. Install the dependencies:
go mod tidy
  1. Build the binary:
go build .
  1. Run the binary:
tinytweet

About

cli tool to post to X from terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages