public function all(array $params = array())
    {
        $endpoint = '/admin/events.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Event::class, $response['events']);
    }
public function all(array $params = array())
    {
        $endpoint = '/admin/events.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Event::class, $response['events']);
    }
public function all ( array $ params = array ( ) ) { $ endpoint = '/admin/events.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createCollection ( Event :: class , $ response [ 'events' ] ) ; }
Get a list of all events

@link   https://help.shopify.com/api/reference/event#index
@param  array $params
@return Event[]
Get a list of all events