All URIs are relative to https://api.clever.com/v2.0
Method | HTTP request | Description |
---|---|---|
getEvent | GET /events/{id} | |
getEvents | GET /events |
\Clever\Model\EventResponse getEvent($id)
Returns the specific event
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Clever\Api\DataApi();
// Configure OAuth2 access token for authorization: oauth
$api_instance->getConfig()->setAccessToken('YOUR_ACCESS_TOKEN');
$id = "id_example"; // string |
try {
$result = $api_instance->getEvent($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->getEvent: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Clever\Model\EventsResponse getEvents($limit, $starting_after, $ending_before, $school, $record_type)
Returns a list of events
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Clever\Api\DataApi();
// Configure OAuth2 access token for authorization: oauth
$api_instance->getConfig()->setAccessToken('YOUR_ACCESS_TOKEN');
$limit = 56; // int |
$starting_after = "starting_after_example"; // string |
$ending_before = "ending_before_example"; // string |
$school = "school_example"; // string |
$record_type = array("record_type_example"); // string[] |
try {
$result = $api_instance->getEvents($limit, $starting_after, $ending_before, $school, $record_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->getEvents: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
limit | int | [optional] | |
starting_after | string | [optional] | |
ending_before | string | [optional] | |
school | string | [optional] | |
record_type | string[] | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]