commonlit-clever-ruby 2.1.6.beta1 → 2.1.6.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +37 -29
- data/README.md +994 -61
- data/clever-ruby.gemspec +6 -13
- data/commonlit-clever-ruby-2.1.6.beta1.gem +0 -0
- data/docs/AdminName.md +0 -1
- data/docs/BadRequest.md +0 -1
- data/docs/Contact.md +1 -2
- data/docs/ContactObject.md +0 -1
- data/docs/ContactResponse.md +0 -1
- data/docs/ContactsCreated.md +2 -3
- data/docs/ContactsDeleted.md +2 -3
- data/docs/ContactsResponse.md +0 -1
- data/docs/ContactsUpdated.md +2 -3
- data/docs/Course.md +1 -2
- data/docs/CourseObject.md +0 -1
- data/docs/CourseResponse.md +0 -1
- data/docs/CoursesCreated.md +2 -3
- data/docs/CoursesDeleted.md +2 -3
- data/docs/CoursesResponse.md +0 -1
- data/docs/CoursesUpdated.md +2 -3
- data/docs/Credentials.md +0 -1
- data/docs/DataApi.md +2784 -0
- data/docs/District.md +9 -10
- data/docs/DistrictAdmin.md +2 -3
- data/docs/DistrictAdminObject.md +0 -1
- data/docs/DistrictAdminResponse.md +0 -1
- data/docs/DistrictAdminsResponse.md +0 -1
- data/docs/DistrictObject.md +0 -1
- data/docs/DistrictResponse.md +0 -1
- data/docs/DistrictadminsCreated.md +2 -3
- data/docs/DistrictadminsDeleted.md +2 -3
- data/docs/DistrictadminsUpdated.md +2 -3
- data/docs/DistrictsCreated.md +2 -3
- data/docs/DistrictsDeleted.md +2 -3
- data/docs/DistrictsResponse.md +0 -1
- data/docs/DistrictsUpdated.md +2 -3
- data/docs/Event.md +2 -3
- data/docs/EventResponse.md +0 -1
- data/docs/EventsApi.md +1 -4
- data/docs/EventsResponse.md +0 -1
- data/docs/InternalError.md +0 -1
- data/docs/Link.md +0 -1
- data/docs/Location.md +2 -3
- data/docs/Name.md +1 -2
- data/docs/NotFound.md +0 -1
- data/docs/Principal.md +1 -2
- data/docs/School.md +3 -4
- data/docs/SchoolAdmin.md +3 -4
- data/docs/SchoolAdminObject.md +0 -1
- data/docs/SchoolAdminResponse.md +0 -1
- data/docs/SchoolAdminsResponse.md +0 -1
- data/docs/SchoolEnrollment.md +1 -2
- data/docs/SchoolObject.md +0 -1
- data/docs/SchoolResponse.md +0 -1
- data/docs/SchooladminsCreated.md +2 -3
- data/docs/SchooladminsDeleted.md +2 -3
- data/docs/SchooladminsUpdated.md +2 -3
- data/docs/SchoolsCreated.md +2 -3
- data/docs/SchoolsDeleted.md +2 -3
- data/docs/SchoolsResponse.md +0 -1
- data/docs/SchoolsUpdated.md +2 -3
- data/docs/Section.md +2 -3
- data/docs/SectionObject.md +0 -1
- data/docs/SectionResponse.md +0 -1
- data/docs/SectionsCreated.md +2 -3
- data/docs/SectionsDeleted.md +2 -3
- data/docs/SectionsResponse.md +0 -1
- data/docs/SectionsUpdated.md +2 -3
- data/docs/Student.md +3 -4
- data/docs/StudentObject.md +0 -1
- data/docs/StudentResponse.md +0 -1
- data/docs/StudentsCreated.md +2 -3
- data/docs/StudentsDeleted.md +2 -3
- data/docs/StudentsResponse.md +0 -1
- data/docs/StudentsUpdated.md +2 -3
- data/docs/Teacher.md +2 -3
- data/docs/TeacherObject.md +0 -1
- data/docs/TeacherResponse.md +0 -1
- data/docs/TeachersCreated.md +2 -3
- data/docs/TeachersDeleted.md +2 -3
- data/docs/TeachersResponse.md +0 -1
- data/docs/TeachersUpdated.md +2 -3
- data/docs/Term.md +2 -3
- data/docs/TermObject.md +0 -1
- data/docs/TermResponse.md +0 -1
- data/docs/TermsCreated.md +2 -3
- data/docs/TermsDeleted.md +2 -3
- data/docs/TermsResponse.md +0 -1
- data/docs/TermsUpdated.md +2 -3
- data/git_push.sh +55 -0
- data/lib/clever-ruby/api/data_api.rb +2999 -0
- data/lib/clever-ruby/api/events_api.rb +25 -20
- data/lib/clever-ruby/api_error.rb +23 -4
- data/lib/clever-ruby/configuration.rb +5 -9
- data/lib/clever-ruby/models/admin_name.rb +46 -22
- data/lib/clever-ruby/models/bad_request.rb +42 -20
- data/lib/clever-ruby/models/contact.rb +83 -55
- data/lib/clever-ruby/models/contact_object.rb +42 -20
- data/lib/clever-ruby/models/contact_response.rb +42 -20
- data/lib/clever-ruby/models/contacts_response.rb +44 -22
- data/lib/clever-ruby/models/course.rb +60 -36
- data/lib/clever-ruby/models/course_object.rb +42 -20
- data/lib/clever-ruby/models/course_response.rb +42 -20
- data/lib/clever-ruby/models/courses_response.rb +44 -22
- data/lib/clever-ruby/models/credentials.rb +42 -20
- data/lib/clever-ruby/models/district.rb +122 -94
- data/lib/clever-ruby/models/district_admin.rb +67 -44
- data/lib/clever-ruby/models/district_admin_object.rb +42 -20
- data/lib/clever-ruby/models/district_admin_response.rb +42 -20
- data/lib/clever-ruby/models/district_admins_response.rb +44 -22
- data/lib/clever-ruby/models/district_object.rb +42 -20
- data/lib/clever-ruby/models/district_response.rb +42 -20
- data/lib/clever-ruby/models/districts_response.rb +44 -22
- data/lib/clever-ruby/models/event.rb +60 -33
- data/lib/clever-ruby/models/event_response.rb +42 -20
- data/lib/clever-ruby/models/events_response.rb +44 -22
- data/lib/clever-ruby/models/internal_error.rb +42 -20
- data/lib/clever-ruby/models/link.rb +47 -25
- data/lib/clever-ruby/models/location.rb +73 -45
- data/lib/clever-ruby/models/name.rb +58 -33
- data/lib/clever-ruby/models/not_found.rb +42 -20
- data/lib/clever-ruby/models/principal.rb +55 -31
- data/lib/clever-ruby/models/school.rb +108 -80
- data/lib/clever-ruby/models/school_admin.rb +85 -61
- data/lib/clever-ruby/models/school_admin_object.rb +42 -20
- data/lib/clever-ruby/models/school_admin_response.rb +42 -20
- data/lib/clever-ruby/models/school_admins_response.rb +44 -22
- data/lib/clever-ruby/models/school_enrollment.rb +56 -34
- data/lib/clever-ruby/models/school_object.rb +42 -20
- data/lib/clever-ruby/models/school_response.rb +42 -20
- data/lib/clever-ruby/models/schools_response.rb +44 -22
- data/lib/clever-ruby/models/section.rb +104 -75
- data/lib/clever-ruby/models/section_object.rb +42 -20
- data/lib/clever-ruby/models/section_response.rb +42 -20
- data/lib/clever-ruby/models/sections_response.rb +44 -22
- data/lib/clever-ruby/models/student.rb +147 -126
- data/lib/clever-ruby/models/student_object.rb +42 -20
- data/lib/clever-ruby/models/student_response.rb +42 -20
- data/lib/clever-ruby/models/students_response.rb +44 -22
- data/lib/clever-ruby/models/teacher.rb +89 -63
- data/lib/clever-ruby/models/teacher_object.rb +42 -20
- data/lib/clever-ruby/models/teacher_response.rb +42 -20
- data/lib/clever-ruby/models/teachers_response.rb +44 -22
- data/lib/clever-ruby/models/term.rb +69 -44
- data/lib/clever-ruby/models/term_object.rb +42 -20
- data/lib/clever-ruby/models/term_response.rb +42 -20
- data/lib/clever-ruby/models/terms_response.rb +44 -22
- data/lib/clever-ruby/version.rb +4 -5
- data/lib/clever-ruby.rb +4 -14
- data/override/README-extension.md +1 -1
- data/override/override.sh +3 -0
- data/spec/api/data_api_spec.rb +671 -0
- data/spec/api/events_api_spec.rb +4 -3
- data/spec/api_client_spec.rb +21 -3
- data/spec/spec_helper.rb +4 -3
- metadata +25 -179
- data/docs/ContactsApi.md +0 -231
- data/docs/CoursesApi.md +0 -231
- data/docs/DistrictAdminsApi.md +0 -171
- data/docs/DistrictsApi.md +0 -113
- data/docs/SchoolAdminsApi.md +0 -231
- data/docs/SchoolsApi.md +0 -351
- data/docs/SectionsApi.md +0 -499
- data/docs/StudentsApi.md +0 -463
- data/docs/TeachersApi.md +0 -403
- data/docs/TermsApi.md +0 -231
- data/lib/clever-ruby/api/contacts_api.rb +0 -241
- data/lib/clever-ruby/api/courses_api.rb +0 -241
- data/lib/clever-ruby/api/district_admins_api.rb +0 -182
- data/lib/clever-ruby/api/districts_api.rb +0 -123
- data/lib/clever-ruby/api/school_admins_api.rb +0 -241
- data/lib/clever-ruby/api/schools_api.rb +0 -359
- data/lib/clever-ruby/api/sections_api.rb +0 -500
- data/lib/clever-ruby/api/students_api.rb +0 -468
- data/lib/clever-ruby/api/teachers_api.rb +0 -409
- data/lib/clever-ruby/api/terms_api.rb +0 -241
- data/spec/api/contacts_api_spec.rb +0 -84
- data/spec/api/courses_api_spec.rb +0 -84
- data/spec/api/district_admins_api_spec.rb +0 -70
- data/spec/api/districts_api_spec.rb +0 -56
- data/spec/api/school_admins_api_spec.rb +0 -84
- data/spec/api/schools_api_spec.rb +0 -112
- data/spec/api/sections_api_spec.rb +0 -142
- data/spec/api/students_api_spec.rb +0 -137
- data/spec/api/teachers_api_spec.rb +0 -123
- data/spec/api/terms_api_spec.rb +0 -84
data/docs/SectionsApi.md
DELETED
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
# Clever::SectionsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.clever.com*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**get_course_for_section**](SectionsApi.md#get_course_for_section) | **GET** /sections/{id}/course |
|
|
8
|
-
[**get_district_for_section**](SectionsApi.md#get_district_for_section) | **GET** /sections/{id}/district |
|
|
9
|
-
[**get_school_for_section**](SectionsApi.md#get_school_for_section) | **GET** /sections/{id}/school |
|
|
10
|
-
[**get_section**](SectionsApi.md#get_section) | **GET** /sections/{id} |
|
|
11
|
-
[**get_sections**](SectionsApi.md#get_sections) | **GET** /sections |
|
|
12
|
-
[**get_students_for_section**](SectionsApi.md#get_students_for_section) | **GET** /sections/{id}/students |
|
|
13
|
-
[**get_teacher_for_section**](SectionsApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher |
|
|
14
|
-
[**get_teachers_for_section**](SectionsApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers |
|
|
15
|
-
[**get_term_for_section**](SectionsApi.md#get_term_for_section) | **GET** /sections/{id}/term |
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# **get_course_for_section**
|
|
19
|
-
> CourseResponse get_course_for_section(id)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Returns the course for a section
|
|
24
|
-
|
|
25
|
-
### Example
|
|
26
|
-
```ruby
|
|
27
|
-
# load the gem
|
|
28
|
-
require 'clever-ruby'
|
|
29
|
-
# setup authorization
|
|
30
|
-
Clever.configure do |config|
|
|
31
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
32
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
api_instance = Clever::SectionsApi.new
|
|
36
|
-
|
|
37
|
-
id = 'id_example' # String |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
begin
|
|
41
|
-
result = api_instance.get_course_for_section(id)
|
|
42
|
-
p result
|
|
43
|
-
rescue Clever::ApiError => e
|
|
44
|
-
puts "Exception when calling SectionsApi->get_course_for_section: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
Name | Type | Description | Notes
|
|
51
|
-
------------- | ------------- | ------------- | -------------
|
|
52
|
-
**id** | **String**| |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
[**CourseResponse**](CourseResponse.md)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
[oauth](../README.md#oauth)
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: Not defined
|
|
65
|
-
- **Accept**: application/json
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
# **get_district_for_section**
|
|
70
|
-
> DistrictResponse get_district_for_section(id)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Returns the district for a section
|
|
75
|
-
|
|
76
|
-
### Example
|
|
77
|
-
```ruby
|
|
78
|
-
# load the gem
|
|
79
|
-
require 'clever-ruby'
|
|
80
|
-
# setup authorization
|
|
81
|
-
Clever.configure do |config|
|
|
82
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
83
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
api_instance = Clever::SectionsApi.new
|
|
87
|
-
|
|
88
|
-
id = 'id_example' # String |
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
begin
|
|
92
|
-
result = api_instance.get_district_for_section(id)
|
|
93
|
-
p result
|
|
94
|
-
rescue Clever::ApiError => e
|
|
95
|
-
puts "Exception when calling SectionsApi->get_district_for_section: #{e}"
|
|
96
|
-
end
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Parameters
|
|
100
|
-
|
|
101
|
-
Name | Type | Description | Notes
|
|
102
|
-
------------- | ------------- | ------------- | -------------
|
|
103
|
-
**id** | **String**| |
|
|
104
|
-
|
|
105
|
-
### Return type
|
|
106
|
-
|
|
107
|
-
[**DistrictResponse**](DistrictResponse.md)
|
|
108
|
-
|
|
109
|
-
### Authorization
|
|
110
|
-
|
|
111
|
-
[oauth](../README.md#oauth)
|
|
112
|
-
|
|
113
|
-
### HTTP request headers
|
|
114
|
-
|
|
115
|
-
- **Content-Type**: Not defined
|
|
116
|
-
- **Accept**: application/json
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# **get_school_for_section**
|
|
121
|
-
> SchoolResponse get_school_for_section(id)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Returns the school for a section
|
|
126
|
-
|
|
127
|
-
### Example
|
|
128
|
-
```ruby
|
|
129
|
-
# load the gem
|
|
130
|
-
require 'clever-ruby'
|
|
131
|
-
# setup authorization
|
|
132
|
-
Clever.configure do |config|
|
|
133
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
134
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
api_instance = Clever::SectionsApi.new
|
|
138
|
-
|
|
139
|
-
id = 'id_example' # String |
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
begin
|
|
143
|
-
result = api_instance.get_school_for_section(id)
|
|
144
|
-
p result
|
|
145
|
-
rescue Clever::ApiError => e
|
|
146
|
-
puts "Exception when calling SectionsApi->get_school_for_section: #{e}"
|
|
147
|
-
end
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
Name | Type | Description | Notes
|
|
153
|
-
------------- | ------------- | ------------- | -------------
|
|
154
|
-
**id** | **String**| |
|
|
155
|
-
|
|
156
|
-
### Return type
|
|
157
|
-
|
|
158
|
-
[**SchoolResponse**](SchoolResponse.md)
|
|
159
|
-
|
|
160
|
-
### Authorization
|
|
161
|
-
|
|
162
|
-
[oauth](../README.md#oauth)
|
|
163
|
-
|
|
164
|
-
### HTTP request headers
|
|
165
|
-
|
|
166
|
-
- **Content-Type**: Not defined
|
|
167
|
-
- **Accept**: application/json
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# **get_section**
|
|
172
|
-
> SectionResponse get_section(id)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Returns a specific section
|
|
177
|
-
|
|
178
|
-
### Example
|
|
179
|
-
```ruby
|
|
180
|
-
# load the gem
|
|
181
|
-
require 'clever-ruby'
|
|
182
|
-
# setup authorization
|
|
183
|
-
Clever.configure do |config|
|
|
184
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
185
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
api_instance = Clever::SectionsApi.new
|
|
189
|
-
|
|
190
|
-
id = 'id_example' # String |
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
begin
|
|
194
|
-
result = api_instance.get_section(id)
|
|
195
|
-
p result
|
|
196
|
-
rescue Clever::ApiError => e
|
|
197
|
-
puts "Exception when calling SectionsApi->get_section: #{e}"
|
|
198
|
-
end
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Parameters
|
|
202
|
-
|
|
203
|
-
Name | Type | Description | Notes
|
|
204
|
-
------------- | ------------- | ------------- | -------------
|
|
205
|
-
**id** | **String**| |
|
|
206
|
-
|
|
207
|
-
### Return type
|
|
208
|
-
|
|
209
|
-
[**SectionResponse**](SectionResponse.md)
|
|
210
|
-
|
|
211
|
-
### Authorization
|
|
212
|
-
|
|
213
|
-
[oauth](../README.md#oauth)
|
|
214
|
-
|
|
215
|
-
### HTTP request headers
|
|
216
|
-
|
|
217
|
-
- **Content-Type**: Not defined
|
|
218
|
-
- **Accept**: application/json
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
# **get_sections**
|
|
223
|
-
> SectionsResponse get_sections(opts)
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
Returns a list of sections
|
|
228
|
-
|
|
229
|
-
### Example
|
|
230
|
-
```ruby
|
|
231
|
-
# load the gem
|
|
232
|
-
require 'clever-ruby'
|
|
233
|
-
# setup authorization
|
|
234
|
-
Clever.configure do |config|
|
|
235
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
236
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
api_instance = Clever::SectionsApi.new
|
|
240
|
-
|
|
241
|
-
opts = {
|
|
242
|
-
limit: 56, # Integer |
|
|
243
|
-
starting_after: 'starting_after_example', # String |
|
|
244
|
-
ending_before: 'ending_before_example', # String |
|
|
245
|
-
count: 'count_example' # String |
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
begin
|
|
249
|
-
result = api_instance.get_sections(opts)
|
|
250
|
-
p result
|
|
251
|
-
rescue Clever::ApiError => e
|
|
252
|
-
puts "Exception when calling SectionsApi->get_sections: #{e}"
|
|
253
|
-
end
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
### Parameters
|
|
257
|
-
|
|
258
|
-
Name | Type | Description | Notes
|
|
259
|
-
------------- | ------------- | ------------- | -------------
|
|
260
|
-
**limit** | **Integer**| | [optional]
|
|
261
|
-
**starting_after** | **String**| | [optional]
|
|
262
|
-
**ending_before** | **String**| | [optional]
|
|
263
|
-
**count** | **String**| | [optional]
|
|
264
|
-
|
|
265
|
-
### Return type
|
|
266
|
-
|
|
267
|
-
[**SectionsResponse**](SectionsResponse.md)
|
|
268
|
-
|
|
269
|
-
### Authorization
|
|
270
|
-
|
|
271
|
-
[oauth](../README.md#oauth)
|
|
272
|
-
|
|
273
|
-
### HTTP request headers
|
|
274
|
-
|
|
275
|
-
- **Content-Type**: Not defined
|
|
276
|
-
- **Accept**: application/json
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
# **get_students_for_section**
|
|
281
|
-
> StudentsResponse get_students_for_section(id, opts)
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
Returns the students for a section
|
|
286
|
-
|
|
287
|
-
### Example
|
|
288
|
-
```ruby
|
|
289
|
-
# load the gem
|
|
290
|
-
require 'clever-ruby'
|
|
291
|
-
# setup authorization
|
|
292
|
-
Clever.configure do |config|
|
|
293
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
294
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
api_instance = Clever::SectionsApi.new
|
|
298
|
-
|
|
299
|
-
id = 'id_example' # String |
|
|
300
|
-
|
|
301
|
-
opts = {
|
|
302
|
-
limit: 56, # Integer |
|
|
303
|
-
starting_after: 'starting_after_example', # String |
|
|
304
|
-
ending_before: 'ending_before_example' # String |
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
begin
|
|
308
|
-
result = api_instance.get_students_for_section(id, opts)
|
|
309
|
-
p result
|
|
310
|
-
rescue Clever::ApiError => e
|
|
311
|
-
puts "Exception when calling SectionsApi->get_students_for_section: #{e}"
|
|
312
|
-
end
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
### Parameters
|
|
316
|
-
|
|
317
|
-
Name | Type | Description | Notes
|
|
318
|
-
------------- | ------------- | ------------- | -------------
|
|
319
|
-
**id** | **String**| |
|
|
320
|
-
**limit** | **Integer**| | [optional]
|
|
321
|
-
**starting_after** | **String**| | [optional]
|
|
322
|
-
**ending_before** | **String**| | [optional]
|
|
323
|
-
|
|
324
|
-
### Return type
|
|
325
|
-
|
|
326
|
-
[**StudentsResponse**](StudentsResponse.md)
|
|
327
|
-
|
|
328
|
-
### Authorization
|
|
329
|
-
|
|
330
|
-
[oauth](../README.md#oauth)
|
|
331
|
-
|
|
332
|
-
### HTTP request headers
|
|
333
|
-
|
|
334
|
-
- **Content-Type**: Not defined
|
|
335
|
-
- **Accept**: application/json
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
# **get_teacher_for_section**
|
|
340
|
-
> TeacherResponse get_teacher_for_section(id)
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
Returns the primary teacher for a section
|
|
345
|
-
|
|
346
|
-
### Example
|
|
347
|
-
```ruby
|
|
348
|
-
# load the gem
|
|
349
|
-
require 'clever-ruby'
|
|
350
|
-
# setup authorization
|
|
351
|
-
Clever.configure do |config|
|
|
352
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
353
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
api_instance = Clever::SectionsApi.new
|
|
357
|
-
|
|
358
|
-
id = 'id_example' # String |
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
begin
|
|
362
|
-
result = api_instance.get_teacher_for_section(id)
|
|
363
|
-
p result
|
|
364
|
-
rescue Clever::ApiError => e
|
|
365
|
-
puts "Exception when calling SectionsApi->get_teacher_for_section: #{e}"
|
|
366
|
-
end
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
### Parameters
|
|
370
|
-
|
|
371
|
-
Name | Type | Description | Notes
|
|
372
|
-
------------- | ------------- | ------------- | -------------
|
|
373
|
-
**id** | **String**| |
|
|
374
|
-
|
|
375
|
-
### Return type
|
|
376
|
-
|
|
377
|
-
[**TeacherResponse**](TeacherResponse.md)
|
|
378
|
-
|
|
379
|
-
### Authorization
|
|
380
|
-
|
|
381
|
-
[oauth](../README.md#oauth)
|
|
382
|
-
|
|
383
|
-
### HTTP request headers
|
|
384
|
-
|
|
385
|
-
- **Content-Type**: Not defined
|
|
386
|
-
- **Accept**: application/json
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
# **get_teachers_for_section**
|
|
391
|
-
> TeachersResponse get_teachers_for_section(id, opts)
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Returns the teachers for a section
|
|
396
|
-
|
|
397
|
-
### Example
|
|
398
|
-
```ruby
|
|
399
|
-
# load the gem
|
|
400
|
-
require 'clever-ruby'
|
|
401
|
-
# setup authorization
|
|
402
|
-
Clever.configure do |config|
|
|
403
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
404
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
api_instance = Clever::SectionsApi.new
|
|
408
|
-
|
|
409
|
-
id = 'id_example' # String |
|
|
410
|
-
|
|
411
|
-
opts = {
|
|
412
|
-
limit: 56, # Integer |
|
|
413
|
-
starting_after: 'starting_after_example', # String |
|
|
414
|
-
ending_before: 'ending_before_example' # String |
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
begin
|
|
418
|
-
result = api_instance.get_teachers_for_section(id, opts)
|
|
419
|
-
p result
|
|
420
|
-
rescue Clever::ApiError => e
|
|
421
|
-
puts "Exception when calling SectionsApi->get_teachers_for_section: #{e}"
|
|
422
|
-
end
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
### Parameters
|
|
426
|
-
|
|
427
|
-
Name | Type | Description | Notes
|
|
428
|
-
------------- | ------------- | ------------- | -------------
|
|
429
|
-
**id** | **String**| |
|
|
430
|
-
**limit** | **Integer**| | [optional]
|
|
431
|
-
**starting_after** | **String**| | [optional]
|
|
432
|
-
**ending_before** | **String**| | [optional]
|
|
433
|
-
|
|
434
|
-
### Return type
|
|
435
|
-
|
|
436
|
-
[**TeachersResponse**](TeachersResponse.md)
|
|
437
|
-
|
|
438
|
-
### Authorization
|
|
439
|
-
|
|
440
|
-
[oauth](../README.md#oauth)
|
|
441
|
-
|
|
442
|
-
### HTTP request headers
|
|
443
|
-
|
|
444
|
-
- **Content-Type**: Not defined
|
|
445
|
-
- **Accept**: application/json
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
# **get_term_for_section**
|
|
450
|
-
> TermResponse get_term_for_section(id)
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
Returns the term for a section
|
|
455
|
-
|
|
456
|
-
### Example
|
|
457
|
-
```ruby
|
|
458
|
-
# load the gem
|
|
459
|
-
require 'clever-ruby'
|
|
460
|
-
# setup authorization
|
|
461
|
-
Clever.configure do |config|
|
|
462
|
-
# Configure OAuth2 access token for authorization: oauth
|
|
463
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
464
|
-
end
|
|
465
|
-
|
|
466
|
-
api_instance = Clever::SectionsApi.new
|
|
467
|
-
|
|
468
|
-
id = 'id_example' # String |
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
begin
|
|
472
|
-
result = api_instance.get_term_for_section(id)
|
|
473
|
-
p result
|
|
474
|
-
rescue Clever::ApiError => e
|
|
475
|
-
puts "Exception when calling SectionsApi->get_term_for_section: #{e}"
|
|
476
|
-
end
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
### Parameters
|
|
480
|
-
|
|
481
|
-
Name | Type | Description | Notes
|
|
482
|
-
------------- | ------------- | ------------- | -------------
|
|
483
|
-
**id** | **String**| |
|
|
484
|
-
|
|
485
|
-
### Return type
|
|
486
|
-
|
|
487
|
-
[**TermResponse**](TermResponse.md)
|
|
488
|
-
|
|
489
|
-
### Authorization
|
|
490
|
-
|
|
491
|
-
[oauth](../README.md#oauth)
|
|
492
|
-
|
|
493
|
-
### HTTP request headers
|
|
494
|
-
|
|
495
|
-
- **Content-Type**: Not defined
|
|
496
|
-
- **Accept**: application/json
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|