Permalink
Browse files

formating and text changes

  • Loading branch information...
1 parent 98b4f0d commit 32926ada4605bc5f3b4fea6b70d22e58650348cd @abraham committed Mar 11, 2010
Showing with 8 additions and 8 deletions.
  1. +1 −1 README
  2. +3 −3 config.php
  3. +4 −4 redirect.php
View
2 README
@@ -1,6 +1,6 @@
Abraham Williams | abraham@poseurte.ch | http://abrah.am | @abraham
-PHP library for working with Twitter's OAuth API.
+The first PHP library for working with Twitter's OAuth API.
Documentation: http://wiki.github.com/abraham/twitteroauth/documentation
Source: http://github.com/abraham/twitteroauth
View
6 config.php
@@ -5,6 +5,6 @@
* A single location to store configuration.
*/
-define("CONSUMER_KEY", "");
-define("CONSUMER_SECRET", "");
-define("OAUTH_CALLBACK", "");
+define('CONSUMER_KEY', 'ELi0Wc1kMAuJyHJQ68AEg');
+define('CONSUMER_SECRET', 'Vkf6oqNnckF3Tlf00BVzQkMYmcx8mkkI7MzpXixsjY');
+define('OAUTH_CALLBACK', 'http://local.dev/twitteroauth/callback.php');
View
8 redirect.php
@@ -5,17 +5,17 @@
require_once('twitteroauth/twitteroauth.php');
require_once('config.php');
-/* Create TwitterOAuth object and get request token */
+/* Build TwitterOAuth object with client credentials. */
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
-/* Get request token. */
+/* Get temporary credentials. */
$request_token = $connection->getRequestToken(OAUTH_CALLBACK);
-/* Save request token to session. */
+/* Save temporary credentials to session. */
$_SESSION['oauth_token'] = $token = $request_token['oauth_token'];
$_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret'];
-/* If last connection fails don't display authorization link. */
+/* If last connection failed don't display authorization link. */
switch ($connection->http_code) {
case 200:
/* Build authorize URL and redirect user to Twitter. */

0 comments on commit 32926ad

Please sign in to comment.