Twitter API: Get Followers +99

前端 未结 7 718
悲&欢浪女
悲&欢浪女 2021-02-06 08:05

Using the twitter API (and OAuth) if i was to call for the user followers, (statuses/followers) i would be returned only 99 results.

Is there a way i can return 99, then

相关标签:
7条回答
  • 2021-02-06 08:52
    <?php
    $trends_url = "http://api.twitter.com/1/statuses/followers/fawadghafoor.json";
    $ch       = curl_init(); 
    curl_setopt($ch, CURLOPT_URL, $trends_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $curlout  = curl_exec($ch);
    curl_close($ch);
    $response = json_decode($curlout, true);
    
    foreach($response as $friends){
          $thumb = $friends['profile_image_url'];
          $url   = $friends['screen_name'];
          $name  = $friends['name'];
    ?>                         
    <a title="<?php echo $name;?>" href="http://www.twitter.com/<?php echo $url;?>"><img class="photo-img" src="<?php echo $thumb?>" border="0" alt="" width="40" /></a>
        <?php  }  ?>
    
    0 讨论(0)
提交回复
热议问题