Created
February 22, 2011 05:17
-
-
Save nobuf/838262 to your computer and use it in GitHub Desktop.
Accessing Twitter API with Zend_Service_Twitter + Zend_Oauth_Token_Access
This file contains 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
<?php | |
require_once 'Zend/Service/Twitter.php'; | |
$me = 'zuzara'; | |
$accessToken = new Zend_Oauth_Token_Access; | |
$accessToken->setToken('***') | |
->setTokenSecret('***'); // grab them at https://dev.twitter.com/apps/***/my_token | |
$twitter = new Zend_Service_Twitter(array( | |
'username' => $me, | |
'accessToken' => $accessToken, | |
)); | |
$response = $twitter->user->friends(); | |
var_dump($response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment