1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Culqi;
- /**
- * Class Events
- *
- * @package Culqi
- */
- class Events extends Resource {
- const URL_EVENTS = "/events/";
- /**
- * @param array|null $options
- *
- * @return all Events.
- */
- public function all($options = NULL) {
- return $this->request("GET", self::URL_EVENTS, $api_key = $this->culqi->api_key, $options);
- }
- /**
- * @param string|null $id
- *
- * @return get a Event.
- */
- public function get($id = NULL) {
- return $this->request("GET", self::URL_EVENTS . $id . "/", $api_key = $this->culqi->api_key);
- }
- }
|