如何在没有api的情况下阅读Instagram图像和用户

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在没有api的情况下阅读Instagram图像和用户相关的知识,希望对你有一定的参考价值。

Sometimes using small code snippets is faster than implement the official api. Using mini bots class is faster to get Instagram data.
  1. include ("minibots.class.php");
  2. $mb = new Minibots();
  3. $data = $mb->getInstagramPics("giuliopons");
  4.  
  5. foreach($data["pics"] as $img) {
  6. echo "<img src="".$img["thumbnail"]."" width='150'/>";
  7. }
  8.  
  9. // see a demo here: http://www.barattalo.it/instapostcards

以上是关于如何在没有api的情况下阅读Instagram图像和用户的主要内容,如果未能解决你的问题,请参考以下文章