haxpor / tt

Twitter client in C implementation. Aim to be minimalist and get me to tweet asap. Inspired by t.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

donate

tt

Simple and minimalistic Twitter client implemented in C.

Dependencies

You will need

Make sure you install these in your system.

Build and Installation

Use CMake to build the project.

  • Go to this project directory
  • mkdir build
  • cmake .. or for RELEASE build cmake -DCMAKE_BUILD_TYPE=RELEASE ..
  • make -j4
  • sudo make install

Done

Install via published packages

Debian/Ubuntu

  • sudo add-apt-repository ppa:haxpor/combined
  • sudo apt install tt

Setup

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 key
  • TT_CONSUMER_SECRET - consumer secret
  • TT_ACCESS_TOKEN - access token
  • TT_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.

Commands Support

  • tt update <tweet text> - update tweet
  • tt update <tweet text> -f /your/image/path - update tweet along with a single image file
  • tt 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

License

MIT, Wasin Thonkaew.

About

Twitter client in C implementation. Aim to be minimalist and get me to tweet asap. Inspired by t.


Languages

Language:C 98.1%Language:CMake 1.9%