Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $e = 0;
  2. $cursor = -1;
  3. $full_followers = array();
  4. do {
  5. //SET UP THE URL
  6. $follows = $oTwitter->get("followers/ids.json?screen_name=youruser&cursor=".$cursor);
  7. $foll_array = (array)$follows;
  8.  
  9. foreach ($foll_array['ids'] as $key => $val) {
  10.  
  11. $full_followers[$e] = $val;
  12. $e++;
  13. }
  14. $cursor = $follows->next_cursor;
  15.  
  16. } while ($cursor > 0);
  17. echo "Number of followers:" .$e. "<br /><br />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement