Skip to content

Instantly share code, notes, and snippets.

@farrelley
Created May 17, 2010 15:11
Show Gist options
  • Save farrelley/403870 to your computer and use it in GitHub Desktop.
Save farrelley/403870 to your computer and use it in GitHub Desktop.
$configuration = array(
'callbackUrl' => 'http://stats.local/twitter',
'siteUrl' => 'https://api.twitter.com/oauth',
'requestTokenUrl' => 'https://api.twitter.com/oauth/request_token',
'authorizeUrl' => 'https://api.twitter.com/oauth/authorize',
'accessTokenUrl' => 'https://api.twitter.com/oauth/access_token',
'consumerKey' => '',
'consumerSecret' => ''
);
$consumer = new Zend_Oauth_Consumer($configuration);
$token = $consumer->getRequestToken();
$consumer->redirect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment