All URIs are relative to https://api.clever.com/v1.2
Method | HTTP request | Description |
---|---|---|
get_event | GET /events/{id} | |
get_events | GET /events | |
get_events_for_school | GET /schools/{id}/events | |
get_events_for_school_admin | GET /school_admins/{id}/events | |
get_events_for_section | GET /sections/{id}/events | |
get_events_for_student | GET /students/{id}/events | |
get_events_for_teacher | GET /teachers/{id}/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 |
}
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] |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events_for_school(id, opts)
Returns a list of events for a school
# 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 |
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_events_for_school(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events_for_school: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events_for_school_admin(id, opts)
Returns a list of events for a school admin
# 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 |
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_events_for_school_admin(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events_for_school_admin: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events_for_section(id, opts)
Returns a list of events for a section
# 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 |
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_events_for_section(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events_for_section: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events_for_student(id, opts)
Returns a list of events for a student
# 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 |
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_events_for_student(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events_for_student: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
EventsResponse get_events_for_teacher(id, opts)
Returns a list of events for a teacher
# 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 |
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_events_for_teacher(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling EventsApi->get_events_for_teacher: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
limit | Integer | [optional] | |
starting_after | String | [optional] | |
ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json