Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MunGell/Codeigniter-TwitterOAuth
Codeigniter and TwitterOauth library integration
https://github.com/MunGell/Codeigniter-TwitterOAuth
Last synced: 12 days ago
JSON representation
Codeigniter and TwitterOauth library integration
- Host: GitHub
- URL: https://github.com/MunGell/Codeigniter-TwitterOAuth
- Owner: MunGell
- Created: 2012-01-19T22:45:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T08:54:47.000Z (over 7 years ago)
- Last Synced: 2024-08-01T13:18:11.224Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 76
- Watchers: 17
- Forks: 62
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Codeigniter-TwitterOauth library integration
============================================**Please note that this library is not maintained any more.**
Description
-----------This is [TwitterOAuth PHP library](https://github.com/abraham/twitteroauth) by Abraham Williams slightly changed for Codeigniter integration as library.
Please note that this project is not actively maintained any more.
More information about Codeigniter libraries available on [Codeigniter Documentation](http://codeigniter.com/user_guide).
Usage
-----There are two ways to load library to Codeigniter. Automatically within **./config/autoload.php** or directly in your controller by adding this line:
$this->load->library('twitteroauth');
Create an instance:
$connection = $this->twitteroauth->create($consumer, $consumer_secret, $access_token, $access_token_secret);
Verify your authentication details:
$content = $connection->get('account/verify_credentials');
Send a message:
$data = array(
'status' => $message,
'in_reply_to_status_id' => $in_reply_to
);
$result = $connection->post('statuses/update', $data);More information about Twitter API methods available on [Twitter Developer Page](http://dev.twitter.com).
In addition there is sample authentication controller in the repository. Please refer to controller directory.
Feedback
--------Library related issues should be sent to [official issue tracker](https://github.com/abraham/twitteroauth/issues).
Any other questions are welcome [here](https://github.com/MunGell/Codeigniter-TwitterOAuth/issues).