https://github.com/sinemetu1/twitc
A mini C library for interacting with the Twitter OAuth api.
https://github.com/sinemetu1/twitc
Last synced: 29 days ago
JSON representation
A mini C library for interacting with the Twitter OAuth api.
- Host: GitHub
- URL: https://github.com/sinemetu1/twitc
- Owner: sinemetu1
- License: mit
- Created: 2014-12-25T22:33:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T10:52:29.000Z (over 5 years ago)
- Last Synced: 2024-06-21T18:44:25.297Z (over 1 year ago)
- Language: C
- Size: 660 KB
- Stars: 24
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
- awesome-c - twitc - Mini library for interacting with the Twitter OAuth API. [MIT](https://spdx.org/licenses/MIT.html) (Networking and Internet / Advanced books)
- awesome-c-zh - twitc - 用于与Twitter OAuth API交互的迷你库。[](https://spdx.org/licenses/MIT.html) (网络和互联网 / 高级书籍)
- awesome-c - twitc - Mini library for interacting with the Twitter OAuth API. [MIT](https://spdx.org/licenses/MIT.html) (Networking and Internet / Advanced books)
README
twitc
===========
[](https://travis-ci.org/sinemetu1/twitc)
[](https://coveralls.io/r/sinemetu1/twitc)
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](https://github.com/sinemetu1/twitc/blob/master/src/twitc.h)
and the [usage section](https://github.com/sinemetu1/twitc/tree/test-separation#usage) below.
#### Dependencies:
[liboauth](http://liboauth.sourceforge.net/)
[json-c](https://github.com/json-c/json-c)
### Usage:
See [main.c](https://github.com/sinemetu1/twitc/blob/master/src/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/](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](https://github.com/sinemetu1/twitc/blob/master/LICENSE)