cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 781 forks source link

getMedia user_has_liked #151

Closed guilhermecvm closed 7 years ago

guilhermecvm commented 9 years ago

getMedia() function needs to be updated in order to send authenticated requests

public function getMedia($id) {
    return $this->_makeCall('media/' . $id);
  }

should be

public function getMedia($id, $auth = false) {
    return $this->_makeCall('media/' . $id, $auth);
  }

So that when $auth === true we would receive use_has_liked attribute