• Stars
    star
    24
  • Rank 953,856 (Top 20 %)
  • Language
    C
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A mini C library for interacting with the Twitter OAuth api.

twitc

Build Status Coverage Status

A mini C library for interacting with the Twitter OAuth api.

Installation:

# if deps need to be installed:
./install_deps.sh /usr/local

# building twitc
./autogen.sh
./configure
make
make install

NOTE: There are environment variables that can be set for consumer token, consumer secret, app token, and app secret. See twitc.h and the usage section below.

Dependencies:

liboauth

json-c

Usage:

See main.c for an example.

Environment variables include:

export TWITC_KEY="Consumer Key (API Key)"
export TWITC_SECRET="Consumer Secret (API Secret)"
export TWITC_ACCESS_TOKEN="Access Token"
export TWITC_ACCESS_SECRET="Access Token Secret"

To generate these values go to https://apps.twitter.com/.

Tests:

Local tests can be run with make check.

If you have the environment variables above setup correctly then you can run make integration to test actual integration with Twitter's API.

Bugs:

Please file bugs in Github issues.

License:

MIT