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