Skip to content

MunGell/Codeigniter-TwitterOAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Codeigniter-TwitterOauth library integration

Please note that this library is not maintained any more.

Description

This is TwitterOAuth PHP library 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.

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.

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.

Any other questions are welcome here.

About

Codeigniter and TwitterOauth library integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages