public function getRecentMedia($id, $minId = null, $maxId = null)
    {
        $params = ['query' => [
            'min_id' => $minId,
            'max_id' => $maxId,
        ]];
        return $this->client->request('GET', "locations/$id/media/recent", $params);
    }
public function getRecentMedia($id, $minId = null, $maxId = null)
    {
        $params = ['query' => [
            'min_id' => $minId,
            'max_id' => $maxId,
        ]];
        return $this->client->request('GET', "locations/$id/media/recent", $params);
    }
public function getRecentMedia ( $ id , $ minId = null , $ maxId = null ) { $ params = [ 'query' => [ 'min_id' => $ minId , 'max_id' => $ maxId , ] ] ; return $ this -> client -> request ( 'GET' , "locations/$id/media/recent" , $ params ) ; }
Get a list of recent media objects from a given location.

@param string      $id     The ID of the location
@param string|null $minId  Return media before this min_id
@param string|null $maxId  Return media after this max_id

@return Response

@link https://www.instagram.com/developer/endpoints/locations/#get_locations_media_recent
Get a list of recent media objects from a given location .