33 lines
567 B
PHP
33 lines
567 B
PHP
<?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);
|
|
}
|
|
|
|
}
|