All URIs are relative to https://api.clever.com/v2.0
Method | HTTP request | Description |
---|---|---|
get_event | GET /events/{id} | |
get_events | GET /events |
EventResponse get_event(id)
Returns the specific event
# load the gem
require 'clever-ruby'
# setup authorization
Clever.configure do |config|
# Configure OAuth2 access token for authorization: oauth
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = Clever::EventsApi.new
id = "id_example" # String |
begin
result = api_instance.get_event(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_event: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events(opts)
Returns a list of events
# load the gem
require 'clever-ruby'
# setup authorization
Clever.configure do |config|
# Configure OAuth2 access token for authorization: oauth
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = Clever::EventsApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example", # String |
school: "school_example", # String |
record_type: ["record_type_example"] # Array<String> |
}
begin
result = api_instance.get_events(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] | |
school | String | [optional] | |
record_type | Array<String> | [optional] |
- Content-Type: Not defined
- Accept: application/json