Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Latest commit

 

History

History
116 lines (76 loc) · 2.95 KB

EventsApi.md

File metadata and controls

116 lines (76 loc) · 2.95 KB

Clever\EventsApi

All URIs are relative to https://api.clever.com/v2.0

Method HTTP request Description
getEvent GET /events/{id}
getEvents GET /events

getEvent

\Clever\Model\EventResponse getEvent($id)

Returns the specific event

Example

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

Parameters

Name Type Description Notes
id string

Return type

\Clever\Model\EventResponse

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getEvents

\Clever\Model\EventsResponse getEvents($limit, $starting_after, $ending_before, $school, $record_type)

Returns a list of events

Example

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

Parameters

Name Type Description Notes
limit int [optional]
starting_after string [optional]
ending_before string [optional]
school string [optional]
record_type string[] [optional]

Return type

\Clever\Model\EventsResponse

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]