Skip to content

Commit

Permalink
Corrected some typos in read.md and some minor error in twitter.php c…
Browse files Browse the repository at this point in the history
…onfig file
  • Loading branch information
epoberezkin committed Nov 11, 2012
1 parent 2c901e4 commit ff4d021
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ CodeIgniter Twitter OAuth library
This library encapsulates TwitterOAuth library by Abraham Williams, which is probably the best and easiest to use Twitter OAuth library
It is available here: https://github.com/abraham/twitteroauth

I could not find a readily available library for CodeIgniter so I hed to do it...
I could not find a readily available twitter library for CodeIgniter so I did it...

It is for lazy people like me for whom examples provided by Abraham Williams seem to complicated
It is for lazy people like me for whom examples provided by Abraham Williams seem too complicated

TwitterOAuth library (only twitteroauth folder from github) should be located in /application/libraries/twitteroauth/ folder

Expand All @@ -19,11 +19,13 @@ This library simplifies Twitter login and access by wrapping TwitterOAuth method

This library is a bit of a hack - it stores data in the session and you have to load it three times to pass through authentication process.

You will see in example how it works - for me it seems much easier to use than original TwitterOAuth library.
But it does the work and for me it seems much easier to use than original TwitterOAuth library.


The directory structure is the same as in CodeIgniter framework.

application/conrollers/twtest.php - the controller of the test application. It does not use any views.
application/config/twitter.php - Twitter app config.

application/config/twitter.php - your Twitter app config.

application/libraries/twconnect.php - CodeIgniter Twitter OAuth library.
2 changes: 1 addition & 1 deletion application/config/twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$config = array(
'consumer_key' => 'YOUR APP CONSUMER KEY',
'consumer_secret' => 'YOUR APP CONSUMER SECRET',
'oauth_callback' => '/test/callback', // Default callback application path
'oauth_callback' => '/twtest/callback' // Default callback application path
);

?>

0 comments on commit ff4d021

Please sign in to comment.