/ Published in: PHP
To follow all of members in a list, you may want to use http://tweepml.org/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $baseUrl = 'http://api.twitter.com/1/zuzara/in-japanese/members.json'; // you will find tokens on My Access Token via http://dev.twitter.com/ $accessToken = ''; $accessTokenSecret = ''; $oauth = new OAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI); $oauth->setToken($accessToken, $accessTokenSecret); $url = $baseUrl; do { $oauth->fetch($url); $buf = $oauth->getLastResponse(); foreach ($data['users'] as $user) { echo $user['screen_name'], PHP_EOL; } $url = $baseUrl . '?cursor=' . $data['next_cursor'];