public function getMedia($id = 'self', $count = null, $minId = null, $maxId = null)
    {
        $params = ['query' => [
            'count'       => $count,
            'min_id' => $minId,
            'max_id' => $maxId,
        ]];

        return $this->client->request(
            'GET',
            "users/$id/media/recent",
            $params
        );
    }
public function getMedia($id = 'self', $count = null, $minId = null, $maxId = null)
    {
        $params = ['query' => [
            'count'       => $count,
            'min_id' => $minId,
            'max_id' => $maxId,
        ]];

        return $this->client->request(
            'GET',
            "users/$id/media/recent",
            $params
        );
    }
public function getMedia ( $ id = 'self' , $ count = null , $ minId = null , $ maxId = null ) { $ params = [ 'query' => [ 'count' => $ count , 'min_id' => $ minId , 'max_id' => $ maxId , ] ] ; return $ this -> client -> request ( 'GET' , "users/$id/media/recent" , $ params ) ; }
Get the most recent media published by a user.

@param string   $id     The ID of the user. Default is ``self``
@param int|null $count  Count of media to return
@param int|null $minId  Return media later than this min_id
@param int|null $maxId  Return media earlier than this max_id

@return Response

@link https://instagram.com/developer/endpoints/users/#get_users_media_recent
Get the most recent media published by a user .