Simple and minimalistic Twitter client implemented in C.
You will need
Make sure you install these in your system.
Use CMake
to build the project.
- Go to this project directory
mkdir build
cmake ..
or for RELEASE buildcmake -DCMAKE_BUILD_TYPE=RELEASE ..
make -j4
sudo make install
Done
sudo add-apt-repository ppa:haxpor/combined
sudo apt install tt
If you install via PPA, it bundled with its own manpage. Just
man tt
to see the instruction on how to set up your environment.
Create a new Twitter app on https://developer.twitter.com/en/apps.
Make sure permissions are set to Read and write. If you change permissions, you have to regenerate Keys and tokens.
Set the following environment variables i.e. ~/.bash_profile
for your Keys and tokens via syntax export NAME=VALUE
TT_CONSUMER_KEY
- consumer keyTT_CONSUMER_SECRET
- consumer secretTT_ACCESS_TOKEN
- access tokenTT_ACCESS_TOKEN_SECRET
- access token secret
Then on terminal window you're going to execute the program, remember to source the file via source ~/.bash_profile
.
tt update <tweet text>
- update tweettt update <tweet text> -f /your/image/path
- update tweet along with a single image filett update <tweet text> -f /your/image/path1 /your/image/path2 /your/image/pathN
- update tweet along with multiple images up to 4 as supported by Twitter
MIT, Wasin Thonkaew.