Files
Chamilo/vendor/culqi/culqi-php/lib/Culqi/Events.php
2025-08-14 22:41:49 +02:00

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);
}
}