All URIs are relative to https://api.clever.com/v1.2
| Method | HTTP request | Description |
|---|---|---|
| get_contact | GET /contacts/{id} | |
| get_contacts | GET /contacts | |
| get_contacts_for_student | GET /students/{id}/contacts | |
| get_district | GET /districts/{id} | |
| get_district_admin | GET /district_admins/{id} | |
| get_district_admins | GET /district_admins | |
| get_district_for_school | GET /schools/{id}/district | |
| get_district_for_section | GET /sections/{id}/district | |
| get_district_for_student | GET /students/{id}/district | |
| get_district_for_student_contact | GET /contacts/{id}/district | |
| get_district_for_teacher | GET /teachers/{id}/district | |
| get_district_status | GET /districts/{id}/status | |
| get_districts | GET /districts | |
| get_grade_levels_for_teacher | GET /teachers/{id}/grade_levels | |
| get_school | GET /schools/{id} | |
| get_school_admin | GET /school_admins/{id} | |
| get_school_admins | GET /school_admins | |
| get_school_for_section | GET /sections/{id}/school | |
| get_school_for_student | GET /students/{id}/school | |
| get_school_for_teacher | GET /teachers/{id}/school | |
| get_schools | GET /schools | |
| get_schools_for_school_admin | GET /school_admins/{id}/schools | |
| get_section | GET /sections/{id} | |
| get_sections | GET /sections | |
| get_sections_for_school | GET /schools/{id}/sections | |
| get_sections_for_student | GET /students/{id}/sections | |
| get_sections_for_teacher | GET /teachers/{id}/sections | |
| get_student | GET /students/{id} | |
| get_student_for_contact | GET /contacts/{id}/student | |
| get_students | GET /students | |
| get_students_for_school | GET /schools/{id}/students | |
| get_students_for_section | GET /sections/{id}/students | |
| get_students_for_teacher | GET /teachers/{id}/students | |
| get_teacher | GET /teachers/{id} | |
| get_teacher_for_section | GET /sections/{id}/teacher | |
| get_teachers | GET /teachers | |
| get_teachers_for_school | GET /schools/{id}/teachers | |
| get_teachers_for_section | GET /sections/{id}/teachers | |
| get_teachers_for_student | GET /students/{id}/teachers |
StudentContactResponse get_contact(id)
Returns a specific student contact
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_contact(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_contact: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
StudentContactsResponse get_contacts(opts)
Returns a list of student contacts
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_contacts(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_contacts: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentContactsResponse get_contacts_for_student(id, opts)
Returns the contacts 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::DataApi.new
id = "id_example" # String |
opts = {
limit: 56 # Integer |
}
begin
result = api_instance.get_contacts_for_student(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_contacts_for_student: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| limit | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district(id)
Returns a specific district
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictAdminResponse get_district_admin(id)
Returns a specific district 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_admin(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_admin: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictAdminsResponse get_district_admins(opts)
Returns a list of district admins
# 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::DataApi.new
opts = {
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_district_admins(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_admins: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district_for_school(id)
Returns the district 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_for_school(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_for_school: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district_for_section(id)
Returns the district 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_for_section(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_for_section: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district_for_student(id)
Returns the district 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_for_student(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_for_student: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district_for_student_contact(id)
Returns the district for a student contact
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_for_student_contact(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_for_student_contact: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictResponse get_district_for_teacher(id)
Returns the district 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_for_teacher(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_for_teacher: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictStatusResponse get_district_status(id)
Returns the status of the district
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_district_status(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_district_status: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
DistrictsResponse get_districts
Returns a list of districts
# 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::DataApi.new
begin
result = api_instance.get_districts
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_districts: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
GradeLevelsResponse get_grade_levels_for_teacher(id)
Returns the grade levels for sections a teacher teaches
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_grade_levels_for_teacher(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_grade_levels_for_teacher: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolResponse get_school(id)
Returns a specific 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_school(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolAdminResponse get_school_admin(id)
Returns a specific 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_school_admin(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school_admin: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolAdminsResponse get_school_admins(opts)
Returns a list of school admins
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_school_admins(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school_admins: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
SchoolResponse get_school_for_section(id)
Returns the school 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_school_for_section(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school_for_section: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolResponse get_school_for_student(id)
Returns the primary school 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_school_for_student(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school_for_student: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolResponse get_school_for_teacher(id)
Retrieves school info 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_school_for_teacher(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_school_for_teacher: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SchoolsResponse get_schools(opts)
Returns a list of schools
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_schools(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_schools: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
SchoolsResponse get_schools_for_school_admin(id, opts)
Returns the schools 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::DataApi.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_schools_for_school_admin(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_schools_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
SectionResponse get_section(id)
Returns a specific 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_section(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_section: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
SectionsResponse get_sections(opts)
Returns a list of sections
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_sections(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_sections: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
SectionsResponse get_sections_for_school(id, opts)
Returns the sections 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::DataApi.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_sections_for_school(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_sections_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
SectionsResponse get_sections_for_student(id, opts)
Returns the sections 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::DataApi.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_sections_for_student(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_sections_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
SectionsResponse get_sections_for_teacher(id, opts)
Returns the sections 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::DataApi.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_sections_for_teacher(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_sections_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
StudentResponse get_student(id)
Returns a specific 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_student(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_student: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
StudentResponse get_student_for_contact(id)
Returns the student for a student contact
# 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_student_for_contact(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_student_for_contact: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
StudentsResponse get_students(opts)
Returns a list of students
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_students(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_students: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentsResponse get_students_for_school(id, opts)
Returns the students 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::DataApi.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_students_for_school(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_students_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
StudentsResponse get_students_for_section(id, opts)
Returns the students 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::DataApi.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_students_for_section(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_students_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
StudentsResponse get_students_for_teacher(id, opts)
Returns the students 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::DataApi.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_students_for_teacher(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_students_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
TeacherResponse get_teacher(id)
Returns a specific 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_teacher(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teacher: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
TeacherResponse get_teacher_for_section(id)
Returns the primary teacher 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::DataApi.new
id = "id_example" # String |
begin
result = api_instance.get_teacher_for_section(id)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teacher_for_section: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
TeachersResponse get_teachers(opts)
Returns a list of teachers
# 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::DataApi.new
opts = {
limit: 56, # Integer |
starting_after: "starting_after_example", # String |
ending_before: "ending_before_example" # String |
}
begin
result = api_instance.get_teachers(opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teachers: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional] | |
| starting_after | String | [optional] | |
| ending_before | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
TeachersResponse get_teachers_for_school(id, opts)
Returns the teachers 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::DataApi.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_teachers_for_school(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teachers_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
TeachersResponse get_teachers_for_section(id, opts)
Returns the teachers 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::DataApi.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_teachers_for_section(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teachers_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
TeachersResponse get_teachers_for_student(id, opts)
Returns the teachers 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::DataApi.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_teachers_for_student(id, opts)
p result
rescue Clever::ApiError => e
puts "Exception when calling DataApi->get_teachers_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