Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sinemetu1/twitc
A mini C library for interacting with the Twitter OAuth api.
https://github.com/sinemetu1/twitc
Last synced: about 2 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T10:52:29.000Z (over 3 years ago)
- Last Synced: 2024-02-01T08:47:31.330Z (5 months ago)
- Language: C
- Size: 660 KB
- Stars: 24
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Lists
- awesome-c - twitc - Mini C library for interacting with the Twitter OAuth API. [`Expat`](https://directory.fsf.org/wiki/License:Expat) (Networking and Internet ## / Physical ###)
- awesome-c-zh - twitc - 用于与Twitter OAuth API交互的迷你库。[](https://spdx.org/licenses/MIT.html) (网络和互联网 / 高级书籍)
README
twitc
===========[![Build Status](https://travis-ci.org/sinemetu1/twitc.svg)](https://travis-ci.org/sinemetu1/twitc)
[![Coverage Status](https://coveralls.io/repos/sinemetu1/twitc/badge.png)](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 installNOTE: 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)