Created
November 30, 2010 07:06
-
-
Save tjlytle/721280 to your computer and use it in GitHub Desktop.
Example setup of Zend_Service_Twitter using stored credentials.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$token = new Zend_Oauth_Token_Access(); | |
$token->setToken(TWITTER_USER) | |
->setTokenSecret(TWITTER_PASS); | |
$twitter = new Zend_Service_Twitter(array( | |
'accessToken' => $token, | |
'consumerKey' => TWITTER_CONSUMER_KEY, | |
'consumerSecret' => TWITTER_CONSUMER_SECRET)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because all of Zend's example code assumes you've just stored a serialized Zend_Oauth_Token_Access - and let's face it, maybe you didn't.