From cb3b3e14dcb02738a5f4e7fcf178fad1b160db88 Mon Sep 17 00:00:00 2001 From: raiym Date: Thu, 16 Mar 2017 15:52:33 +0300 Subject: [PATCH] Update readme --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 712aec70..34222485 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,28 @@ # instagram-php-scraper # Usage +#v0.5.0 +Important update: + +First of all thank you guys for your suggestions and support. +This is *not final* fix for getting medias by tags and locations. + +if you need to get medias by tags or locations: +```php +$instagram = Instagram::withCredentials('username', 'password'); +$instagram->login(); +// And then you be able to query instagram with newly updated methods. (Notice that these methods are not static anymore) + +$user = $instagram->getAccountById(3); +$medias $instagram->getLocationTopMediasById(1) +$medias = $instagram->getLocationMediasById(1); +$location $instagram->getLocationById(1); +$medias = self::$instagram->getTopMediasByTagName('hello'); +``` + +Be carefull with login method. I am planning to implement session caching soon + + `composer require raiym/instagram-php-scraper`