Closed RichHatch closed 10 years ago
Yep, please update/add method? In the meantime, if anyone needs it, in instagram.class.php, replace:
/**
* Get user recent media
*
* @param integer [optional] $id Instagram user ID
* @param integer [optional] $limit Limit of returned results
* @return mixed
*/
public function getUserMedia($id = 'self', $limit = 0) {
return $this->_makeCall('users/' . $id . '/media/recent', true, array('count' => $limit));
}
with
/**
* Get user recent media
*
* @param integer [optional] $id Instagram user ID (default to self)
* @param integer [optional] $limit Limit of returned results
* @param boolean [optional] $auth Requires OAuth? (default to False - will retrieve what's publicly available)
* @return mixed
*/
public function getUserMedia($id = 'self', $auth = false, $limit = 0) {
return $this->_makeCall('users/' . $id . '/media/recent', $auth, array('count' => $limit));
}
Thanks for your hint and the code fix. I'll update the class accordingly.
Implemented in version 2.1 (e6e3785c2442e27b0f2ac88cbdf90037f9007fbc)
This request can work simply by supplying a client_id. I've fixed this on a feature branch locally but don't have access to push the branch.