commonlit-clever-ruby 2.1.4 → 2.1.6.beta1
Sign up to get free protection for your applications and to get access to all the features.
- 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/CoursesApi.md
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
# Clever::CoursesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.clever.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_course**](CoursesApi.md#get_course) | **GET** /courses/{id} |
|
8
|
+
[**get_courses**](CoursesApi.md#get_courses) | **GET** /courses |
|
9
|
+
[**get_district_for_course**](CoursesApi.md#get_district_for_course) | **GET** /courses/{id}/district |
|
10
|
+
[**get_sections_for_course**](CoursesApi.md#get_sections_for_course) | **GET** /courses/{id}/sections |
|
11
|
+
|
12
|
+
|
13
|
+
# **get_course**
|
14
|
+
> CourseResponse get_course(id)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
Returns a specific course
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'clever-ruby'
|
24
|
+
# setup authorization
|
25
|
+
Clever.configure do |config|
|
26
|
+
# Configure OAuth2 access token for authorization: oauth
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = Clever::CoursesApi.new
|
31
|
+
|
32
|
+
id = 'id_example' # String |
|
33
|
+
|
34
|
+
|
35
|
+
begin
|
36
|
+
result = api_instance.get_course(id)
|
37
|
+
p result
|
38
|
+
rescue Clever::ApiError => e
|
39
|
+
puts "Exception when calling CoursesApi->get_course: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**id** | **String**| |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**CourseResponse**](CourseResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[oauth](../README.md#oauth)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: Not defined
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **get_courses**
|
65
|
+
> CoursesResponse get_courses(opts)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Returns a list of courses
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'clever-ruby'
|
75
|
+
# setup authorization
|
76
|
+
Clever.configure do |config|
|
77
|
+
# Configure OAuth2 access token for authorization: oauth
|
78
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
79
|
+
end
|
80
|
+
|
81
|
+
api_instance = Clever::CoursesApi.new
|
82
|
+
|
83
|
+
opts = {
|
84
|
+
limit: 56, # Integer |
|
85
|
+
starting_after: 'starting_after_example', # String |
|
86
|
+
ending_before: 'ending_before_example', # String |
|
87
|
+
count: 'count_example' # String |
|
88
|
+
}
|
89
|
+
|
90
|
+
begin
|
91
|
+
result = api_instance.get_courses(opts)
|
92
|
+
p result
|
93
|
+
rescue Clever::ApiError => e
|
94
|
+
puts "Exception when calling CoursesApi->get_courses: #{e}"
|
95
|
+
end
|
96
|
+
```
|
97
|
+
|
98
|
+
### Parameters
|
99
|
+
|
100
|
+
Name | Type | Description | Notes
|
101
|
+
------------- | ------------- | ------------- | -------------
|
102
|
+
**limit** | **Integer**| | [optional]
|
103
|
+
**starting_after** | **String**| | [optional]
|
104
|
+
**ending_before** | **String**| | [optional]
|
105
|
+
**count** | **String**| | [optional]
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
[**CoursesResponse**](CoursesResponse.md)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[oauth](../README.md#oauth)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
# **get_district_for_course**
|
123
|
+
> DistrictResponse get_district_for_course(id)
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
Returns the district for a course
|
128
|
+
|
129
|
+
### Example
|
130
|
+
```ruby
|
131
|
+
# load the gem
|
132
|
+
require 'clever-ruby'
|
133
|
+
# setup authorization
|
134
|
+
Clever.configure do |config|
|
135
|
+
# Configure OAuth2 access token for authorization: oauth
|
136
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = Clever::CoursesApi.new
|
140
|
+
|
141
|
+
id = 'id_example' # String |
|
142
|
+
|
143
|
+
|
144
|
+
begin
|
145
|
+
result = api_instance.get_district_for_course(id)
|
146
|
+
p result
|
147
|
+
rescue Clever::ApiError => e
|
148
|
+
puts "Exception when calling CoursesApi->get_district_for_course: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
Name | Type | Description | Notes
|
155
|
+
------------- | ------------- | ------------- | -------------
|
156
|
+
**id** | **String**| |
|
157
|
+
|
158
|
+
### Return type
|
159
|
+
|
160
|
+
[**DistrictResponse**](DistrictResponse.md)
|
161
|
+
|
162
|
+
### Authorization
|
163
|
+
|
164
|
+
[oauth](../README.md#oauth)
|
165
|
+
|
166
|
+
### HTTP request headers
|
167
|
+
|
168
|
+
- **Content-Type**: Not defined
|
169
|
+
- **Accept**: application/json
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
# **get_sections_for_course**
|
174
|
+
> SectionsResponse get_sections_for_course(id, opts)
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
Returns the sections for a Courses
|
179
|
+
|
180
|
+
### Example
|
181
|
+
```ruby
|
182
|
+
# load the gem
|
183
|
+
require 'clever-ruby'
|
184
|
+
# setup authorization
|
185
|
+
Clever.configure do |config|
|
186
|
+
# Configure OAuth2 access token for authorization: oauth
|
187
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = Clever::CoursesApi.new
|
191
|
+
|
192
|
+
id = 'id_example' # String |
|
193
|
+
|
194
|
+
opts = {
|
195
|
+
limit: 56, # Integer |
|
196
|
+
starting_after: 'starting_after_example', # String |
|
197
|
+
ending_before: 'ending_before_example' # String |
|
198
|
+
}
|
199
|
+
|
200
|
+
begin
|
201
|
+
result = api_instance.get_sections_for_course(id, opts)
|
202
|
+
p result
|
203
|
+
rescue Clever::ApiError => e
|
204
|
+
puts "Exception when calling CoursesApi->get_sections_for_course: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
Name | Type | Description | Notes
|
211
|
+
------------- | ------------- | ------------- | -------------
|
212
|
+
**id** | **String**| |
|
213
|
+
**limit** | **Integer**| | [optional]
|
214
|
+
**starting_after** | **String**| | [optional]
|
215
|
+
**ending_before** | **String**| | [optional]
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**SectionsResponse**](SectionsResponse.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[oauth](../README.md#oauth)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: Not defined
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
|
data/docs/CoursesCreated.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** | [**CourseObject**](CourseObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/CoursesDeleted.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** | [**CourseObject**](CourseObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/CoursesUpdated.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** | [**CourseObject**](CourseObject.md) | | [optional]
|
10
10
|
**previous_attributes** | **Object** | | [optional]
|
11
11
|
|
data/docs/District.md
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**district_contact** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional]
|
7
|
-
**error** | **String** | | [optional]
|
8
6
|
**id** | **String** | | [optional]
|
9
|
-
**last_sync** | **String** | | [optional]
|
10
|
-
**launch_date** | **String** | | [optional]
|
11
|
-
**login_methods** | **Array<String>** | | [optional]
|
12
|
-
**mdr_number** | **String** | | [optional]
|
13
7
|
**name** | **String** | | [optional]
|
8
|
+
**mdr_number** | **String** | | [optional]
|
14
9
|
**nces_id** | **String** | | [optional]
|
15
|
-
**pause_end** | **String** | | [optional]
|
16
|
-
**pause_start** | **String** | | [optional]
|
17
|
-
**portal_url** | **String** | | [optional]
|
18
10
|
**sis_type** | **String** | | [optional]
|
19
11
|
**state** | **String** | | [optional]
|
12
|
+
**last_sync** | **String** | | [optional]
|
13
|
+
**error** | **String** | | [optional]
|
14
|
+
**pause_start** | **String** | | [optional]
|
15
|
+
**pause_end** | **String** | | [optional]
|
16
|
+
**launch_date** | **String** | | [optional]
|
17
|
+
**portal_url** | **String** | | [optional]
|
18
|
+
**login_methods** | **Array<String>** | | [optional]
|
19
|
+
**district_contact** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional]
|
20
20
|
|
21
21
|
|
data/docs/DistrictAdmin.md
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**district** | **String** | | [optional]
|
7
|
-
**email** | **String** | | [optional]
|
8
6
|
**id** | **String** | | [optional]
|
9
7
|
**name** | [**AdminName**](AdminName.md) | | [optional]
|
8
|
+
**email** | **String** | | [optional]
|
10
9
|
**title** | **String** | | [optional]
|
10
|
+
**district** | **String** | | [optional]
|
11
11
|
|
12
12
|
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# Clever::DistrictAdminsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.clever.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_district_admin**](DistrictAdminsApi.md#get_district_admin) | **GET** /district_admins/{id} |
|
8
|
+
[**get_district_admins**](DistrictAdminsApi.md#get_district_admins) | **GET** /district_admins |
|
9
|
+
[**get_district_for_district_admin**](DistrictAdminsApi.md#get_district_for_district_admin) | **GET** /district_admins/{id}/district |
|
10
|
+
|
11
|
+
|
12
|
+
# **get_district_admin**
|
13
|
+
> DistrictAdminResponse get_district_admin(id)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a specific district admin
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'clever-ruby'
|
23
|
+
# setup authorization
|
24
|
+
Clever.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: oauth
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = Clever::DistrictAdminsApi.new
|
30
|
+
|
31
|
+
id = 'id_example' # String |
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
result = api_instance.get_district_admin(id)
|
36
|
+
p result
|
37
|
+
rescue Clever::ApiError => e
|
38
|
+
puts "Exception when calling DistrictAdminsApi->get_district_admin: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**id** | **String**| |
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
[**DistrictAdminResponse**](DistrictAdminResponse.md)
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
[oauth](../README.md#oauth)
|
55
|
+
|
56
|
+
### HTTP request headers
|
57
|
+
|
58
|
+
- **Content-Type**: Not defined
|
59
|
+
- **Accept**: application/json
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
# **get_district_admins**
|
64
|
+
> DistrictAdminsResponse get_district_admins(opts)
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
Returns a list of district admins
|
69
|
+
|
70
|
+
### Example
|
71
|
+
```ruby
|
72
|
+
# load the gem
|
73
|
+
require 'clever-ruby'
|
74
|
+
# setup authorization
|
75
|
+
Clever.configure do |config|
|
76
|
+
# Configure OAuth2 access token for authorization: oauth
|
77
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
78
|
+
end
|
79
|
+
|
80
|
+
api_instance = Clever::DistrictAdminsApi.new
|
81
|
+
|
82
|
+
opts = {
|
83
|
+
limit: 56, # Integer |
|
84
|
+
starting_after: 'starting_after_example', # String |
|
85
|
+
ending_before: 'ending_before_example', # String |
|
86
|
+
count: 'count_example' # String |
|
87
|
+
}
|
88
|
+
|
89
|
+
begin
|
90
|
+
result = api_instance.get_district_admins(opts)
|
91
|
+
p result
|
92
|
+
rescue Clever::ApiError => e
|
93
|
+
puts "Exception when calling DistrictAdminsApi->get_district_admins: #{e}"
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
### Parameters
|
98
|
+
|
99
|
+
Name | Type | Description | Notes
|
100
|
+
------------- | ------------- | ------------- | -------------
|
101
|
+
**limit** | **Integer**| | [optional]
|
102
|
+
**starting_after** | **String**| | [optional]
|
103
|
+
**ending_before** | **String**| | [optional]
|
104
|
+
**count** | **String**| | [optional]
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
[**DistrictAdminsResponse**](DistrictAdminsResponse.md)
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[oauth](../README.md#oauth)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: Not defined
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **get_district_for_district_admin**
|
122
|
+
> DistrictResponse get_district_for_district_admin(id)
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
Returns the district for a district admin
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'clever-ruby'
|
132
|
+
# setup authorization
|
133
|
+
Clever.configure do |config|
|
134
|
+
# Configure OAuth2 access token for authorization: oauth
|
135
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
136
|
+
end
|
137
|
+
|
138
|
+
api_instance = Clever::DistrictAdminsApi.new
|
139
|
+
|
140
|
+
id = 'id_example' # String |
|
141
|
+
|
142
|
+
|
143
|
+
begin
|
144
|
+
result = api_instance.get_district_for_district_admin(id)
|
145
|
+
p result
|
146
|
+
rescue Clever::ApiError => e
|
147
|
+
puts "Exception when calling DistrictAdminsApi->get_district_for_district_admin: #{e}"
|
148
|
+
end
|
149
|
+
```
|
150
|
+
|
151
|
+
### Parameters
|
152
|
+
|
153
|
+
Name | Type | Description | Notes
|
154
|
+
------------- | ------------- | ------------- | -------------
|
155
|
+
**id** | **String**| |
|
156
|
+
|
157
|
+
### Return type
|
158
|
+
|
159
|
+
[**DistrictResponse**](DistrictResponse.md)
|
160
|
+
|
161
|
+
### Authorization
|
162
|
+
|
163
|
+
[oauth](../README.md#oauth)
|
164
|
+
|
165
|
+
### HTTP request headers
|
166
|
+
|
167
|
+
- **Content-Type**: Not defined
|
168
|
+
- **Accept**: application/json
|
169
|
+
|
170
|
+
|
171
|
+
|
@@ -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** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
@@ -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** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
@@ -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** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional]
|
10
10
|
**previous_attributes** | **Object** | | [optional]
|
11
11
|
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Clever::DistrictsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.clever.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_district**](DistrictsApi.md#get_district) | **GET** /districts/{id} |
|
8
|
+
[**get_districts**](DistrictsApi.md#get_districts) | **GET** /districts |
|
9
|
+
|
10
|
+
|
11
|
+
# **get_district**
|
12
|
+
> DistrictResponse get_district(id)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Returns a specific district
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'clever-ruby'
|
22
|
+
# setup authorization
|
23
|
+
Clever.configure do |config|
|
24
|
+
# Configure OAuth2 access token for authorization: oauth
|
25
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = Clever::DistrictsApi.new
|
29
|
+
|
30
|
+
id = 'id_example' # String |
|
31
|
+
|
32
|
+
|
33
|
+
begin
|
34
|
+
result = api_instance.get_district(id)
|
35
|
+
p result
|
36
|
+
rescue Clever::ApiError => e
|
37
|
+
puts "Exception when calling DistrictsApi->get_district: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
Name | Type | Description | Notes
|
44
|
+
------------- | ------------- | ------------- | -------------
|
45
|
+
**id** | **String**| |
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**DistrictResponse**](DistrictResponse.md)
|
50
|
+
|
51
|
+
### Authorization
|
52
|
+
|
53
|
+
[oauth](../README.md#oauth)
|
54
|
+
|
55
|
+
### HTTP request headers
|
56
|
+
|
57
|
+
- **Content-Type**: Not defined
|
58
|
+
- **Accept**: application/json
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
# **get_districts**
|
63
|
+
> DistrictsResponse get_districts(opts)
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Returns a list of districts. In practice this will only return the one district associated with the bearer token
|
68
|
+
|
69
|
+
### Example
|
70
|
+
```ruby
|
71
|
+
# load the gem
|
72
|
+
require 'clever-ruby'
|
73
|
+
# setup authorization
|
74
|
+
Clever.configure do |config|
|
75
|
+
# Configure OAuth2 access token for authorization: oauth
|
76
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
77
|
+
end
|
78
|
+
|
79
|
+
api_instance = Clever::DistrictsApi.new
|
80
|
+
|
81
|
+
opts = {
|
82
|
+
count: 'count_example' # String |
|
83
|
+
}
|
84
|
+
|
85
|
+
begin
|
86
|
+
result = api_instance.get_districts(opts)
|
87
|
+
p result
|
88
|
+
rescue Clever::ApiError => e
|
89
|
+
puts "Exception when calling DistrictsApi->get_districts: #{e}"
|
90
|
+
end
|
91
|
+
```
|
92
|
+
|
93
|
+
### Parameters
|
94
|
+
|
95
|
+
Name | Type | Description | Notes
|
96
|
+
------------- | ------------- | ------------- | -------------
|
97
|
+
**count** | **String**| | [optional]
|
98
|
+
|
99
|
+
### Return type
|
100
|
+
|
101
|
+
[**DistrictsResponse**](DistrictsResponse.md)
|
102
|
+
|
103
|
+
### Authorization
|
104
|
+
|
105
|
+
[oauth](../README.md#oauth)
|
106
|
+
|
107
|
+
### HTTP request headers
|
108
|
+
|
109
|
+
- **Content-Type**: Not defined
|
110
|
+
- **Accept**: application/json
|
111
|
+
|
112
|
+
|
113
|
+
|
data/docs/DistrictsCreated.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** | [**DistrictObject**](DistrictObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/DistrictsDeleted.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** | [**DistrictObject**](DistrictObject.md) | | [optional]
|
10
10
|
|
11
11
|
|
data/docs/DistrictsUpdated.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** | [**DistrictObject**](DistrictObject.md) | | [optional]
|
10
10
|
**previous_attributes** | **Object** | | [optional]
|
11
11
|
|
data/docs/Event.md
CHANGED
@@ -3,8 +3,8 @@
|
|
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
|
|
10
10
|
|
data/docs/EventsApi.md
CHANGED
data/docs/Location.md
CHANGED
@@ -5,9 +5,9 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**address** | **String** | | [optional]
|
7
7
|
**city** | **String** | | [optional]
|
8
|
-
**lat** | **String** | | [optional]
|
9
|
-
**lon** | **String** | | [optional]
|
10
8
|
**state** | **String** | | [optional]
|
11
9
|
**zip** | **String** | | [optional]
|
10
|
+
**lat** | **String** | | [optional]
|
11
|
+
**lon** | **String** | | [optional]
|
12
12
|
|
13
13
|
|