pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
881 stars 137 forks source link

Typo in Pagination Example - getMedias should be getMedias() #76

Closed a4chris closed 4 years ago

a4chris commented 4 years ago

<?php

$api = new Api($cachePool); $api->login($credentials->getLogin(), $credentials->getPassword());

$profile = $api->getProfile('twhiddleston');

//print_r($profile->getMedias); // 12 first medias print_r($profile->getMedias()); // 12 first medias

do { $profile = $api->getMoreMedias($profile); //print_r($profile->getMedias); // 12 more medias print_r($profile->getMedias()); // 12 more medias

// avoid 429 Rate limit from Instagram
sleep(1);

} while ($profile->hasMoreMedias());

pgrimaud commented 4 years ago

Nice catch! Could you submit a PR to fixed it?

Thanks 🙏

a4chris commented 4 years ago

Don't know how to link a pull requests. Sorry

pgrimaud commented 4 years ago

No worries. I fixed this typo.

Thanks for reporting 😄