Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
raiym committed Mar 16, 2017
1 parent 787c929 commit cb3b3e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`


Expand Down

0 comments on commit cb3b3e1

Please sign in to comment.