clever-ruby 0.3.1 → 0.4.0
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 +7 -0
- data/.drone.yml +14 -0
- data/.rubocop.yml +4 -0
- data/LICENSE +190 -0
- data/README.md +37 -7
- data/Rakefile +12 -2
- data/clever-ruby.gemspec +17 -13
- data/lib/clever-ruby.rb +87 -61
- data/lib/clever-ruby/api_operations/list.rb +9 -4
- data/lib/clever-ruby/api_operations/page.rb +7 -4
- data/lib/clever-ruby/api_operations/pagelist.rb +6 -3
- data/lib/clever-ruby/api_resource.rb +31 -10
- data/lib/clever-ruby/clever_object.rb +34 -35
- data/lib/clever-ruby/configuration.rb +2 -1
- data/lib/clever-ruby/district.rb +4 -12
- data/lib/clever-ruby/errors/api_connection_error.rb +1 -1
- data/lib/clever-ruby/errors/api_error.rb +1 -1
- data/lib/clever-ruby/errors/authentication_error.rb +1 -1
- data/lib/clever-ruby/errors/clever_error.rb +4 -3
- data/lib/clever-ruby/errors/invalid_request_error.rb +4 -3
- data/lib/clever-ruby/event.rb +6 -5
- data/lib/clever-ruby/json.rb +2 -1
- data/lib/clever-ruby/school.rb +2 -0
- data/lib/clever-ruby/section.rb +2 -0
- data/lib/clever-ruby/student.rb +6 -3
- data/lib/clever-ruby/teacher.rb +2 -0
- data/lib/clever-ruby/util.rb +31 -32
- data/lib/clever-ruby/version.rb +2 -1
- data/test/data/vcr_cassettes/districts.yml +10 -16
- data/test/data/vcr_cassettes/districts_event_pages.yml +627 -62
- data/test/data/vcr_cassettes/districts_events.yml +243 -41
- data/test/data/vcr_cassettes/districts_school_pages.yml +93 -102
- data/test/data/vcr_cassettes/districts_schools.yml +85 -92
- data/test/data/vcr_cassettes/districts_section_pages.yml +3364 -314
- data/test/data/vcr_cassettes/districts_sections.yml +591 -266
- data/test/data/vcr_cassettes/districts_student_pages.yml +1701 -14694
- data/test/data/vcr_cassettes/districts_students.yml +209 -2960
- data/test/data/vcr_cassettes/districts_students_filtered.yml +39 -64
- data/test/data/vcr_cassettes/districts_teacher_pages.yml +455 -202
- data/test/data/vcr_cassettes/districts_teachers.yml +244 -163
- data/test/data/vcr_cassettes/error_handling.yml +36 -52
- data/test/data/vcr_cassettes/schools.yml +20 -29
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +21 -30
- data/test/data/vcr_cassettes/sections.yml +1069 -114
- data/test/data/vcr_cassettes/students.yml +1095 -1296
- data/test/data/vcr_cassettes/teachers.yml +2341 -872
- data/test/integration/api_operations/list_test.rb +16 -15
- data/test/integration/district_test.rb +18 -17
- data/test/integration/error_handling_test.rb +8 -7
- data/test/test_helper.rb +2 -2
- data/test/unit/clever_test.rb +13 -13
- data/test/unit/configuration_test.rb +8 -11
- data/test/unit/event_test.rb +18 -21
- data/test/unit/optional_attributes_test.rb +21 -14
- metadata +99 -55
- data/.travis.yml +0 -9
data/lib/clever-ruby/school.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module Clever
|
2
|
+
# School resource
|
2
3
|
class School < APIResource
|
3
4
|
include Clever::APIOperations::List
|
5
|
+
@linked_resources = [:teachers, :students, :sections, :districts, :events]
|
4
6
|
|
5
7
|
def optional_attributes
|
6
8
|
[:state_id, :sis_id, :nces_id, :low_grade, :high_grade, :principal, :location, :phone]
|
data/lib/clever-ruby/section.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module Clever
|
2
|
+
# Section resource
|
2
3
|
class Section < APIResource
|
3
4
|
include Clever::APIOperations::List
|
5
|
+
@linked_resources = [:teachers, :students, :schools, :districts, :events]
|
4
6
|
|
5
7
|
def optional_attributes
|
6
8
|
[:teacher, :course_name, :course_description, :course_number, :period, :grade, :term]
|
data/lib/clever-ruby/student.rb
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
module Clever
|
2
|
+
# Student resource
|
2
3
|
class Student < APIResource
|
3
4
|
include Clever::APIOperations::List
|
5
|
+
@linked_resources = [:teachers, :sections, :schools, :districts, :events, :contacts]
|
4
6
|
|
5
7
|
def optional_attributes
|
6
|
-
[:student_number, :state_id, :location, :gender, :dob, :grade, :frl_status,
|
8
|
+
[:student_number, :state_id, :location, :gender, :dob, :grade, :frl_status,
|
9
|
+
:race, :hispanic_ethnicity, :email, :credentials]
|
7
10
|
end
|
8
11
|
|
9
12
|
def photo
|
10
|
-
return @values[:photo] if @values.
|
11
|
-
response = Clever.request
|
13
|
+
return @values[:photo] if @values.key? :photo
|
14
|
+
response = Clever.request :get, photo_url
|
12
15
|
@values[:photo] = response[:data][:data]
|
13
16
|
end
|
14
17
|
|
data/lib/clever-ruby/teacher.rb
CHANGED
data/lib/clever-ruby/util.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
module Clever
|
2
|
+
# LibraryhHelper methods
|
2
3
|
module Util
|
3
4
|
def self.objects_to_ids(h)
|
4
5
|
case h
|
@@ -6,10 +7,10 @@ module Clever
|
|
6
7
|
h.id
|
7
8
|
when Hash
|
8
9
|
res = {}
|
9
|
-
h.each { |k, v| res[k] = objects_to_ids
|
10
|
+
h.each { |k, v| res[k] = objects_to_ids v unless v.nil? }
|
10
11
|
res
|
11
12
|
when Array
|
12
|
-
h.map { |v| objects_to_ids
|
13
|
+
h.map { |v| objects_to_ids v }
|
13
14
|
else
|
14
15
|
h
|
15
16
|
end
|
@@ -24,35 +25,31 @@ module Clever
|
|
24
25
|
'schools' => School,
|
25
26
|
'events' => Event
|
26
27
|
}
|
27
|
-
types.fetch
|
28
|
+
types.fetch type
|
28
29
|
end
|
29
30
|
|
30
31
|
def self.convert_to_clever_object(resp)
|
31
32
|
case resp
|
32
33
|
when Array
|
33
|
-
resp.map { |i| convert_to_clever_object
|
34
|
+
resp.map { |i| convert_to_clever_object i }
|
34
35
|
when Hash
|
35
|
-
# Try converting to a known object class.
|
36
|
-
#
|
37
|
-
|
38
|
-
|
39
|
-
klass = types_to_clever_class(klass_name)
|
40
|
-
end
|
36
|
+
# Try converting to a known object class. If none available, fall back to generic
|
37
|
+
# APIResource.
|
38
|
+
klass_name = %r{/v1.1/([a-z]+)/\S+$}.match(resp[:uri])[1]
|
39
|
+
klass = types_to_clever_class klass_name if klass_name
|
41
40
|
klass ||= CleverObject
|
42
|
-
klass.construct_from
|
41
|
+
klass.construct_from resp[:data]
|
43
42
|
else
|
44
43
|
resp
|
45
44
|
end
|
46
45
|
end
|
47
46
|
|
48
47
|
def self.file_readable(file)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
true
|
55
|
-
end
|
48
|
+
File.open(file) {}
|
49
|
+
rescue
|
50
|
+
false
|
51
|
+
else
|
52
|
+
true
|
56
53
|
end
|
57
54
|
|
58
55
|
def self.symbolize_names(object)
|
@@ -60,29 +57,31 @@ module Clever
|
|
60
57
|
when Hash
|
61
58
|
new = {}
|
62
59
|
object.each do |key, value|
|
63
|
-
|
64
|
-
|
60
|
+
begin
|
61
|
+
key = key.to_sym
|
62
|
+
end
|
63
|
+
new[key] = symbolize_names value
|
65
64
|
end
|
66
65
|
new
|
67
66
|
when Array
|
68
|
-
object.map { |value| symbolize_names
|
67
|
+
object.map { |value| symbolize_names value }
|
69
68
|
else
|
70
69
|
object
|
71
70
|
end
|
72
71
|
end
|
73
72
|
|
74
73
|
def self.encode_key(key)
|
75
|
-
URI.escape
|
74
|
+
URI.escape key.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")
|
76
75
|
end
|
77
76
|
|
78
|
-
def self.flatten_params(params, parent_key=nil)
|
77
|
+
def self.flatten_params(params, parent_key = nil)
|
79
78
|
result = []
|
80
79
|
params.each do |key, value|
|
81
|
-
calculated_key = parent_key ? "#{parent_key}[#{encode_key
|
82
|
-
if value.is_a?
|
83
|
-
result += flatten_params
|
84
|
-
elsif value.is_a?
|
85
|
-
result += flatten_params_array
|
80
|
+
calculated_key = parent_key ? "#{parent_key}[#{encode_key key}]" : encode_key(key)
|
81
|
+
if value.is_a? Hash
|
82
|
+
result += flatten_params value, calculated_key
|
83
|
+
elsif value.is_a? Array
|
84
|
+
result += flatten_params_array value, calculated_key
|
86
85
|
else
|
87
86
|
result << [calculated_key, value]
|
88
87
|
end
|
@@ -93,10 +92,10 @@ module Clever
|
|
93
92
|
def self.flatten_params_array(value, calculated_key)
|
94
93
|
result = []
|
95
94
|
value.each do |elem|
|
96
|
-
if elem.is_a?
|
97
|
-
result += flatten_params
|
98
|
-
elsif elem.is_a?
|
99
|
-
result += flatten_params_array
|
95
|
+
if elem.is_a? Hash
|
96
|
+
result += flatten_params elem, calculated_key
|
97
|
+
elsif elem.is_a? Array
|
98
|
+
result += flatten_params_array elem, calculated_key
|
100
99
|
else
|
101
100
|
result << ["#{calculated_key}[]", elem]
|
102
101
|
end
|
data/lib/clever-ruby/version.rb
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -21,30 +21,24 @@ http_interactions:
|
|
21
21
|
Access-Control-Allow-Headers:
|
22
22
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
23
23
|
Access-Control-Allow-Methods:
|
24
|
-
- GET,
|
24
|
+
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
27
|
-
Cache-Control:
|
28
|
-
- no-cache="set-cookie"
|
26
|
+
- "*"
|
29
27
|
Content-Type:
|
30
28
|
- application/json; charset=utf-8
|
31
29
|
Date:
|
32
|
-
-
|
30
|
+
- Wed, 03 Sep 2014 19:08:07 GMT
|
33
31
|
Server:
|
34
|
-
- nginx/1.
|
35
|
-
Set-Cookie:
|
36
|
-
- AWSELB=57FFC5270C5107B6EA5E56398F77D924DD37E7E19986084006C3CEE0D8D6CA24B0992751377CD74DF64ED581C9BCDB2B60D2030EE56D3BD197FBA2C5C0E11C4FAFED224F2D;PATH=/;MAX-AGE=300
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=500
|
32
|
+
- nginx/1.4.7
|
39
33
|
X-Powered-By:
|
40
34
|
- Express
|
41
35
|
Content-Length:
|
42
|
-
- '
|
36
|
+
- '224'
|
43
37
|
Connection:
|
44
38
|
- keep-alive
|
45
39
|
body:
|
46
|
-
encoding:
|
47
|
-
string:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts?page=1"}]}'
|
48
42
|
http_version:
|
49
|
-
recorded_at:
|
43
|
+
recorded_at: Wed, 03 Sep 2014 19:08:07 GMT
|
50
44
|
recorded_with: VCR 2.4.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -21,27 +21,67 @@ http_interactions:
|
|
21
21
|
Access-Control-Allow-Headers:
|
22
22
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
23
23
|
Access-Control-Allow-Methods:
|
24
|
-
- GET,
|
24
|
+
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- "*"
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
- Wed,
|
30
|
+
- Wed, 03 Sep 2014 19:05:15 GMT
|
31
31
|
Server:
|
32
|
-
- nginx/1.4.
|
32
|
+
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
34
34
|
- Express
|
35
35
|
Content-Length:
|
36
|
-
- '
|
36
|
+
- '224'
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts?page=1"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 03 Sep 2014 19:05:15 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
39
47
|
body:
|
40
48
|
encoding: US-ASCII
|
41
|
-
string:
|
42
|
-
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- "*/*; q=0.5, application/xml"
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip, deflate
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Access-Control-Allow-Headers:
|
63
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
64
|
+
Access-Control-Allow-Methods:
|
65
|
+
- GET,PATCH,POST,DELETE
|
66
|
+
Access-Control-Allow-Origin:
|
67
|
+
- "*"
|
68
|
+
Content-Type:
|
69
|
+
- application/json; charset=utf-8
|
70
|
+
Date:
|
71
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
72
|
+
Server:
|
73
|
+
- nginx/1.4.7
|
74
|
+
X-Powered-By:
|
75
|
+
- Express
|
76
|
+
Content-Length:
|
77
|
+
- '518'
|
78
|
+
Connection:
|
79
|
+
- keep-alive
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
43
83
|
http_version:
|
44
|
-
recorded_at: Wed,
|
84
|
+
recorded_at: Wed, 03 Sep 2014 19:05:15 GMT
|
45
85
|
- request:
|
46
86
|
method: get
|
47
87
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -50,7 +90,7 @@ http_interactions:
|
|
50
90
|
string: ''
|
51
91
|
headers:
|
52
92
|
Accept:
|
53
|
-
-
|
93
|
+
- "*/*; q=0.5, application/xml"
|
54
94
|
Accept-Encoding:
|
55
95
|
- gzip, deflate
|
56
96
|
User-Agent:
|
@@ -63,26 +103,92 @@ http_interactions:
|
|
63
103
|
Access-Control-Allow-Headers:
|
64
104
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
65
105
|
Access-Control-Allow-Methods:
|
66
|
-
- GET,
|
106
|
+
- GET,PATCH,POST,DELETE
|
67
107
|
Access-Control-Allow-Origin:
|
68
|
-
-
|
108
|
+
- "*"
|
69
109
|
Content-Type:
|
70
110
|
- application/json; charset=utf-8
|
71
111
|
Date:
|
72
|
-
- Wed,
|
112
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
73
113
|
Server:
|
74
|
-
- nginx/1.4.
|
114
|
+
- nginx/1.4.7
|
75
115
|
X-Powered-By:
|
76
116
|
- Express
|
77
117
|
Content-Length:
|
78
|
-
- '
|
118
|
+
- '518'
|
79
119
|
Connection:
|
80
120
|
- keep-alive
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
124
|
+
http_version:
|
125
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
126
|
+
- request:
|
127
|
+
method: get
|
128
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=100000
|
81
129
|
body:
|
82
130
|
encoding: US-ASCII
|
83
|
-
string:
|
131
|
+
string: ''
|
132
|
+
headers:
|
133
|
+
Accept:
|
134
|
+
- "*/*; q=0.5, application/xml"
|
135
|
+
Accept-Encoding:
|
136
|
+
- gzip, deflate
|
137
|
+
User-Agent:
|
138
|
+
- Ruby
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Access-Control-Allow-Headers:
|
145
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
146
|
+
Access-Control-Allow-Methods:
|
147
|
+
- GET,PATCH,POST,DELETE
|
148
|
+
Access-Control-Allow-Origin:
|
149
|
+
- "*"
|
150
|
+
Content-Type:
|
151
|
+
- application/json; charset=utf-8
|
152
|
+
Date:
|
153
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
154
|
+
Etag:
|
155
|
+
- '"194088862"'
|
156
|
+
Server:
|
157
|
+
- nginx/1.4.7
|
158
|
+
X-Powered-By:
|
159
|
+
- Express
|
160
|
+
Content-Length:
|
161
|
+
- '15721'
|
162
|
+
Connection:
|
163
|
+
- keep-alive
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"8/31/1997","ell_status":"N","email":"monique.g@example.net","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"Y","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"556584559","state_id":"485279646","student_number":"556584559","credentials":{"district_username":"moniqueg59","district_password":"EPhie9th"},"location":{"zip":"10020"},"name":{"first":"Monique","middle":"J","last":"Gutmann"},"last_modified":"2014-06-04T14:10:42.770Z","created":"2014-02-26T21:15:16.916Z","id":"530e5964049e75a9262d0304"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.401Z","id":"53e90ce782399c964b0009e2"},"uri":"/v1.1/events/53e90ce782399c964b0009e2"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"11/4/1998","ell_status":"N","email":"h_william@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"Black
|
167
|
+
or African American","school":"530e595026403103360ff9fd","sis_id":"617499409","state_id":"979518299","student_number":"617499409","credentials":{"district_username":"williamh09","district_password":"roosh5Oo"},"location":{"zip":"11428"},"name":{"first":"William","middle":"M","last":"Hodkiewicz"},"last_modified":"2014-06-04T14:10:43.010Z","created":"2014-02-26T21:15:17.612Z","id":"530e5965049e75a9262d038f"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.402Z","id":"53e90ce782399c964b0009e3"},"uri":"/v1.1/events/53e90ce782399c964b0009e3"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/17/1998","ell_status":"N","email":"corina.w@example.com","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"American
|
168
|
+
Indian","school":"530e595026403103360ff9fd","sis_id":"670807511","state_id":"814185233","student_number":"670807511","credentials":{"district_username":"corinaw11","district_password":"Eiph5aeX"},"location":{"zip":"10004"},"name":{"first":"Corina","middle":"L","last":"Watsica"},"last_modified":"2014-06-04T14:10:43.290Z","created":"2014-02-26T21:15:18.067Z","id":"530e5966049e75a9262d03fc"},"previous_attributes":{"dob":"5/7/1998"}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e4"},"uri":"/v1.1/events/53e90ce782399c964b0009e4"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/13/1998","ell_status":"Y","email":"kim_j@example.org","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"N","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"841688312","state_id":"484726796","student_number":"841688312","credentials":{"district_username":"kimj12","district_password":"phee7kah3R"},"location":{"zip":"11377"},"name":{"first":"Kimberly","last":"Jacobi","middle":"J"},"last_modified":"2014-06-04T14:10:44.004Z","created":"2014-02-26T21:15:19.645Z","id":"530e5967049e75a9262d057e"},"previous_attributes":{"name":{"first":"Kim","last":"Jacobi","middle":"J"}}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e5"},"uri":"/v1.1/events/53e90ce782399c964b0009e5"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
169
|
+
Guidance","course_number":"101","district":"4fd43cc56d11340000000005","grade":"10","name":"Group
|
170
|
+
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"last_modified":"2014-02-26T21:15:37.930Z","created":"2014-02-26T21:15:37.927Z","id":"530e5979049e75a9262d0af2"},"previous_attributes":{"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5966049e75a9262d04ba","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"]}},"created":"2014-08-11T18:35:19.418Z","id":"53e90ce782399c964b0009e6"},"uri":"/v1.1/events/53e90ce782399c964b0009e6"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
171
|
+
Guidance","course_number":"901","district":"4fd43cc56d11340000000005","grade":"9","name":"Group
|
172
|
+
Guidance - 901 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"596","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d04b4","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d0640"],"last_modified":"2014-02-26T21:15:37.996Z","created":"2014-02-26T21:15:37.994Z","id":"530e5979049e75a9262d0b01"},"previous_attributes":{"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d063a","530e5968049e75a9262d0640"]}},"created":"2014-08-11T18:35:19.420Z","id":"53e90ce782399c964b0009e7"},"uri":"/v1.1/events/53e90ce782399c964b0009e7"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
|
173
|
+
3 Math, Class 301","course_number":"301","district":"4fd43cc56d11340000000005","grade":"3","name":"Grade
|
174
|
+
3 Math, Class 301 - 301 - S. Block","period":"5","school":"530e595026403103360ff9fe","sis_id":"771","subject":"math","teacher":"530e5955d50c310f36112c15","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"],"last_modified":"2014-07-07T15:46:35.850Z","created":"2014-02-26T21:15:38.738Z","id":"530e597a049e75a9262d0baf"},"previous_attributes":{"students":["530e5960049e75a9262cff56","530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"]}},"created":"2014-08-28T18:01:13.872Z","id":"53ff6e6b322eced002000088"},"uri":"/v1.1/events/53ff6e6b322eced002000088"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
175
|
+
Music, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
176
|
+
Music, Class 001 - 001 - H. Willms","period":"5","school":"530e595026403103360ff9fe","sis_id":"804","subject":"arts
|
177
|
+
and music","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:38.877Z","created":"2014-02-26T21:15:38.875Z","id":"530e597a049e75a9262d0bd0"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.064Z","id":"53ff6e6b322eced002000089"},"uri":"/v1.1/events/53ff6e6b322eced002000089"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
178
|
+
Music, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
179
|
+
Music, Class 002 - 002 - S. Schoen","period":"5","school":"530e595026403103360ff9fe","sis_id":"805","subject":"arts
|
180
|
+
and music","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:38.882Z","created":"2014-02-26T21:15:38.879Z","id":"530e597a049e75a9262d0bd1"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.067Z","id":"53ff6e6b322eced00200008a"},"uri":"/v1.1/events/53ff6e6b322eced00200008a"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
181
|
+
Music, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
182
|
+
Music, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"806","subject":"arts
|
183
|
+
and music","teacher":"50c20477987eda0d3d02d310","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffbe","530e5961049e75a9262cffc3","530e5961049e75a9262d0000","530e5961049e75a9262d0036","530e5961049e75a9262d0074","530e5962049e75a9262d00c5","530e5963049e75a9262d01fa","530e5964049e75a9262d027e","530e5964049e75a9262d02a8","530e5964049e75a9262d02ab","530e5964049e75a9262d02f7","530e5965049e75a9262d03b2","530e5965049e75a9262d03bf","530e5966049e75a9262d040a","530e5966049e75a9262d0449","530e5967049e75a9262d051b","530e5967049e75a9262d0565","530e5968049e75a9262d05f0","530e5968049e75a9262d061e","530e5968049e75a9262d0623"],"last_modified":"2014-02-26T21:15:38.886Z","created":"2014-02-26T21:15:38.883Z","id":"530e597a049e75a9262d0bd2"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.070Z","id":"53ff6e6b322eced00200008b"},"uri":"/v1.1/events/53ff6e6b322eced00200008b"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
184
|
+
Science, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
185
|
+
Science, Class 001 - 001 - H. Willms","period":"2","school":"530e595026403103360ff9fe","sis_id":"864","subject":"science","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:39.166Z","created":"2014-02-26T21:15:39.165Z","id":"530e597b049e75a9262d0c0a"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.073Z","id":"53ff6e6b322eced00200008c"},"uri":"/v1.1/events/53ff6e6b322eced00200008c"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
186
|
+
Science, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
187
|
+
Science, Class 002 - 002 - S. Schoen","period":"3","school":"530e595026403103360ff9fe","sis_id":"865","subject":"science","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:39.183Z","created":"2014-02-26T21:15:39.181Z","id":"530e597b049e75a9262d0c0e"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.076Z","id":"53ff6e6b322eced00200008d"},"uri":"/v1.1/events/53ff6e6b322eced00200008d"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
188
|
+
Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
189
|
+
Science, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"866","subject":"science","teacher":"50c20477987eda0d3d02d310","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffbe","530e5961049e75a9262cffc3","530e5961049e75a9262d0000","530e5961049e75a9262d0036","530e5961049e75a9262d0074","530e5962049e75a9262d00c5","530e5963049e75a9262d01fa","530e5964049e75a9262d027e","530e5964049e75a9262d02a8","530e5964049e75a9262d02ab","530e5964049e75a9262d02f7","530e5965049e75a9262d03b2","530e5965049e75a9262d03bf","530e5966049e75a9262d040a","530e5966049e75a9262d0449","530e5967049e75a9262d051b","530e5967049e75a9262d0565","530e5968049e75a9262d05f0","530e5968049e75a9262d061e","530e5968049e75a9262d0623"],"last_modified":"2014-02-26T21:15:39.195Z","created":"2014-02-26T21:15:39.193Z","id":"530e597b049e75a9262d0c12"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.088Z","id":"53ff6e6b322eced00200008e"},"uri":"/v1.1/events/53ff6e6b322eced00200008e"}],"paging":{"current":1,"total":1,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=100000"}]}'
|
84
190
|
http_version:
|
85
|
-
recorded_at: Wed,
|
191
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
86
192
|
- request:
|
87
193
|
method: get
|
88
194
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -91,7 +197,7 @@ http_interactions:
|
|
91
197
|
string: ''
|
92
198
|
headers:
|
93
199
|
Accept:
|
94
|
-
-
|
200
|
+
- "*/*; q=0.5, application/xml"
|
95
201
|
Accept-Encoding:
|
96
202
|
- gzip, deflate
|
97
203
|
User-Agent:
|
@@ -104,35 +210,76 @@ http_interactions:
|
|
104
210
|
Access-Control-Allow-Headers:
|
105
211
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
106
212
|
Access-Control-Allow-Methods:
|
107
|
-
- GET,
|
213
|
+
- GET,PATCH,POST,DELETE
|
108
214
|
Access-Control-Allow-Origin:
|
109
|
-
-
|
215
|
+
- "*"
|
110
216
|
Content-Type:
|
111
217
|
- application/json; charset=utf-8
|
112
218
|
Date:
|
113
|
-
- Wed,
|
219
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
114
220
|
Server:
|
115
|
-
- nginx/1.4.
|
221
|
+
- nginx/1.4.7
|
116
222
|
X-Powered-By:
|
117
223
|
- Express
|
118
224
|
Content-Length:
|
119
|
-
- '
|
225
|
+
- '518'
|
120
226
|
Connection:
|
121
227
|
- keep-alive
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
231
|
+
http_version:
|
232
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
233
|
+
- request:
|
234
|
+
method: get
|
235
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
122
236
|
body:
|
123
237
|
encoding: US-ASCII
|
124
|
-
string:
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
Accept:
|
241
|
+
- "*/*; q=0.5, application/xml"
|
242
|
+
Accept-Encoding:
|
243
|
+
- gzip, deflate
|
244
|
+
User-Agent:
|
245
|
+
- Ruby
|
246
|
+
response:
|
247
|
+
status:
|
248
|
+
code: 200
|
249
|
+
message: OK
|
250
|
+
headers:
|
251
|
+
Access-Control-Allow-Headers:
|
252
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
253
|
+
Access-Control-Allow-Methods:
|
254
|
+
- GET,PATCH,POST,DELETE
|
255
|
+
Access-Control-Allow-Origin:
|
256
|
+
- "*"
|
257
|
+
Content-Type:
|
258
|
+
- application/json; charset=utf-8
|
259
|
+
Date:
|
260
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
261
|
+
Server:
|
262
|
+
- nginx/1.4.7
|
263
|
+
X-Powered-By:
|
264
|
+
- Express
|
265
|
+
Content-Length:
|
266
|
+
- '518'
|
267
|
+
Connection:
|
268
|
+
- keep-alive
|
269
|
+
body:
|
270
|
+
encoding: UTF-8
|
271
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
125
272
|
http_version:
|
126
|
-
recorded_at: Wed,
|
273
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
127
274
|
- request:
|
128
275
|
method: get
|
129
|
-
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=
|
276
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=1
|
130
277
|
body:
|
131
278
|
encoding: US-ASCII
|
132
279
|
string: ''
|
133
280
|
headers:
|
134
281
|
Accept:
|
135
|
-
-
|
282
|
+
- "*/*; q=0.5, application/xml"
|
136
283
|
Accept-Encoding:
|
137
284
|
- gzip, deflate
|
138
285
|
User-Agent:
|
@@ -145,35 +292,81 @@ http_interactions:
|
|
145
292
|
Access-Control-Allow-Headers:
|
146
293
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
147
294
|
Access-Control-Allow-Methods:
|
148
|
-
- GET,
|
295
|
+
- GET,PATCH,POST,DELETE
|
149
296
|
Access-Control-Allow-Origin:
|
150
|
-
-
|
297
|
+
- "*"
|
151
298
|
Content-Type:
|
152
299
|
- application/json; charset=utf-8
|
153
300
|
Date:
|
154
|
-
- Wed,
|
301
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
302
|
+
Etag:
|
303
|
+
- '"-1779268912"'
|
155
304
|
Server:
|
156
|
-
- nginx/1.4.
|
305
|
+
- nginx/1.4.7
|
157
306
|
X-Powered-By:
|
158
307
|
- Express
|
159
308
|
Content-Length:
|
160
|
-
- '
|
309
|
+
- '1042'
|
161
310
|
Connection:
|
162
311
|
- keep-alive
|
312
|
+
body:
|
313
|
+
encoding: UTF-8
|
314
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"8/31/1997","ell_status":"N","email":"monique.g@example.net","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"Y","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"556584559","state_id":"485279646","student_number":"556584559","credentials":{"district_username":"moniqueg59","district_password":"EPhie9th"},"location":{"zip":"10020"},"name":{"first":"Monique","middle":"J","last":"Gutmann"},"last_modified":"2014-06-04T14:10:42.770Z","created":"2014-02-26T21:15:16.916Z","id":"530e5964049e75a9262d0304"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.401Z","id":"53e90ce782399c964b0009e2"},"uri":"/v1.1/events/53e90ce782399c964b0009e2"}],"paging":{"current":1,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=1"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=2"}]}'
|
315
|
+
http_version:
|
316
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
317
|
+
- request:
|
318
|
+
method: get
|
319
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=2
|
163
320
|
body:
|
164
321
|
encoding: US-ASCII
|
165
|
-
string:
|
322
|
+
string: ''
|
323
|
+
headers:
|
324
|
+
Accept:
|
325
|
+
- "*/*; q=0.5, application/xml"
|
326
|
+
Accept-Encoding:
|
327
|
+
- gzip, deflate
|
328
|
+
User-Agent:
|
329
|
+
- Ruby
|
330
|
+
response:
|
331
|
+
status:
|
332
|
+
code: 200
|
333
|
+
message: OK
|
334
|
+
headers:
|
335
|
+
Access-Control-Allow-Headers:
|
336
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
337
|
+
Access-Control-Allow-Methods:
|
338
|
+
- GET,PATCH,POST,DELETE
|
339
|
+
Access-Control-Allow-Origin:
|
340
|
+
- "*"
|
341
|
+
Content-Type:
|
342
|
+
- application/json; charset=utf-8
|
343
|
+
Date:
|
344
|
+
- Wed, 03 Sep 2014 19:05:16 GMT
|
345
|
+
Etag:
|
346
|
+
- '"1493958564"'
|
347
|
+
Server:
|
348
|
+
- nginx/1.4.7
|
349
|
+
X-Powered-By:
|
350
|
+
- Express
|
351
|
+
Content-Length:
|
352
|
+
- '1150'
|
353
|
+
Connection:
|
354
|
+
- keep-alive
|
355
|
+
body:
|
356
|
+
encoding: UTF-8
|
357
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"11/4/1998","ell_status":"N","email":"h_william@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"Black
|
358
|
+
or African American","school":"530e595026403103360ff9fd","sis_id":"617499409","state_id":"979518299","student_number":"617499409","credentials":{"district_username":"williamh09","district_password":"roosh5Oo"},"location":{"zip":"11428"},"name":{"first":"William","middle":"M","last":"Hodkiewicz"},"last_modified":"2014-06-04T14:10:43.010Z","created":"2014-02-26T21:15:17.612Z","id":"530e5965049e75a9262d038f"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.402Z","id":"53e90ce782399c964b0009e3"},"uri":"/v1.1/events/53e90ce782399c964b0009e3"}],"paging":{"current":2,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=2"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=3"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=1"}]}'
|
166
359
|
http_version:
|
167
|
-
recorded_at: Wed,
|
360
|
+
recorded_at: Wed, 03 Sep 2014 19:05:16 GMT
|
168
361
|
- request:
|
169
362
|
method: get
|
170
|
-
uri: https://DEMO_KEY:@api.clever.com
|
363
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=3
|
171
364
|
body:
|
172
365
|
encoding: US-ASCII
|
173
366
|
string: ''
|
174
367
|
headers:
|
175
368
|
Accept:
|
176
|
-
-
|
369
|
+
- "*/*; q=0.5, application/xml"
|
177
370
|
Accept-Encoding:
|
178
371
|
- gzip, deflate
|
179
372
|
User-Agent:
|
@@ -186,35 +379,81 @@ http_interactions:
|
|
186
379
|
Access-Control-Allow-Headers:
|
187
380
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
188
381
|
Access-Control-Allow-Methods:
|
189
|
-
- GET,
|
382
|
+
- GET,PATCH,POST,DELETE
|
190
383
|
Access-Control-Allow-Origin:
|
191
|
-
-
|
384
|
+
- "*"
|
192
385
|
Content-Type:
|
193
386
|
- application/json; charset=utf-8
|
194
387
|
Date:
|
195
|
-
- Wed,
|
388
|
+
- Wed, 03 Sep 2014 19:05:17 GMT
|
389
|
+
Etag:
|
390
|
+
- '"555041443"'
|
196
391
|
Server:
|
197
|
-
- nginx/1.4.
|
392
|
+
- nginx/1.4.7
|
198
393
|
X-Powered-By:
|
199
394
|
- Express
|
200
395
|
Content-Length:
|
201
|
-
- '
|
396
|
+
- '1134'
|
202
397
|
Connection:
|
203
398
|
- keep-alive
|
399
|
+
body:
|
400
|
+
encoding: UTF-8
|
401
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/17/1998","ell_status":"N","email":"corina.w@example.com","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"American
|
402
|
+
Indian","school":"530e595026403103360ff9fd","sis_id":"670807511","state_id":"814185233","student_number":"670807511","credentials":{"district_username":"corinaw11","district_password":"Eiph5aeX"},"location":{"zip":"10004"},"name":{"first":"Corina","middle":"L","last":"Watsica"},"last_modified":"2014-06-04T14:10:43.290Z","created":"2014-02-26T21:15:18.067Z","id":"530e5966049e75a9262d03fc"},"previous_attributes":{"dob":"5/7/1998"}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e4"},"uri":"/v1.1/events/53e90ce782399c964b0009e4"}],"paging":{"current":3,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=3"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=4"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=2"}]}'
|
403
|
+
http_version:
|
404
|
+
recorded_at: Wed, 03 Sep 2014 19:05:17 GMT
|
405
|
+
- request:
|
406
|
+
method: get
|
407
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=4
|
204
408
|
body:
|
205
409
|
encoding: US-ASCII
|
206
|
-
string:
|
410
|
+
string: ''
|
411
|
+
headers:
|
412
|
+
Accept:
|
413
|
+
- "*/*; q=0.5, application/xml"
|
414
|
+
Accept-Encoding:
|
415
|
+
- gzip, deflate
|
416
|
+
User-Agent:
|
417
|
+
- Ruby
|
418
|
+
response:
|
419
|
+
status:
|
420
|
+
code: 200
|
421
|
+
message: OK
|
422
|
+
headers:
|
423
|
+
Access-Control-Allow-Headers:
|
424
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
425
|
+
Access-Control-Allow-Methods:
|
426
|
+
- GET,PATCH,POST,DELETE
|
427
|
+
Access-Control-Allow-Origin:
|
428
|
+
- "*"
|
429
|
+
Content-Type:
|
430
|
+
- application/json; charset=utf-8
|
431
|
+
Date:
|
432
|
+
- Wed, 03 Sep 2014 19:05:17 GMT
|
433
|
+
Etag:
|
434
|
+
- '"1238704620"'
|
435
|
+
Server:
|
436
|
+
- nginx/1.4.7
|
437
|
+
X-Powered-By:
|
438
|
+
- Express
|
439
|
+
Content-Length:
|
440
|
+
- '1156'
|
441
|
+
Connection:
|
442
|
+
- keep-alive
|
443
|
+
body:
|
444
|
+
encoding: UTF-8
|
445
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/13/1998","ell_status":"Y","email":"kim_j@example.org","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"N","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"841688312","state_id":"484726796","student_number":"841688312","credentials":{"district_username":"kimj12","district_password":"phee7kah3R"},"location":{"zip":"11377"},"name":{"first":"Kimberly","last":"Jacobi","middle":"J"},"last_modified":"2014-06-04T14:10:44.004Z","created":"2014-02-26T21:15:19.645Z","id":"530e5967049e75a9262d057e"},"previous_attributes":{"name":{"first":"Kim","last":"Jacobi","middle":"J"}}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e5"},"uri":"/v1.1/events/53e90ce782399c964b0009e5"}],"paging":{"current":4,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=4"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=5"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=3"}]}'
|
207
446
|
http_version:
|
208
|
-
recorded_at: Wed,
|
447
|
+
recorded_at: Wed, 03 Sep 2014 19:05:17 GMT
|
209
448
|
- request:
|
210
449
|
method: get
|
211
|
-
uri: https://DEMO_KEY:@api.clever.com
|
450
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=5
|
212
451
|
body:
|
213
452
|
encoding: US-ASCII
|
214
453
|
string: ''
|
215
454
|
headers:
|
216
455
|
Accept:
|
217
|
-
-
|
456
|
+
- "*/*; q=0.5, application/xml"
|
218
457
|
Accept-Encoding:
|
219
458
|
- gzip, deflate
|
220
459
|
User-Agent:
|
@@ -227,35 +466,221 @@ http_interactions:
|
|
227
466
|
Access-Control-Allow-Headers:
|
228
467
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
229
468
|
Access-Control-Allow-Methods:
|
230
|
-
- GET,
|
469
|
+
- GET,PATCH,POST,DELETE
|
231
470
|
Access-Control-Allow-Origin:
|
232
|
-
-
|
471
|
+
- "*"
|
233
472
|
Content-Type:
|
234
473
|
- application/json; charset=utf-8
|
235
474
|
Date:
|
236
|
-
- Wed,
|
475
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
476
|
+
Etag:
|
477
|
+
- '"1852436678"'
|
237
478
|
Server:
|
238
|
-
- nginx/1.4.
|
479
|
+
- nginx/1.4.7
|
239
480
|
X-Powered-By:
|
240
481
|
- Express
|
241
482
|
Content-Length:
|
242
|
-
- '
|
483
|
+
- '1854'
|
243
484
|
Connection:
|
244
485
|
- keep-alive
|
486
|
+
body:
|
487
|
+
encoding: UTF-8
|
488
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
489
|
+
Guidance","course_number":"101","district":"4fd43cc56d11340000000005","grade":"10","name":"Group
|
490
|
+
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"last_modified":"2014-02-26T21:15:37.930Z","created":"2014-02-26T21:15:37.927Z","id":"530e5979049e75a9262d0af2"},"previous_attributes":{"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5966049e75a9262d04ba","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"]}},"created":"2014-08-11T18:35:19.418Z","id":"53e90ce782399c964b0009e6"},"uri":"/v1.1/events/53e90ce782399c964b0009e6"}],"paging":{"current":5,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=5"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=6"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=4"}]}'
|
491
|
+
http_version:
|
492
|
+
recorded_at: Wed, 03 Sep 2014 19:05:17 GMT
|
493
|
+
- request:
|
494
|
+
method: get
|
495
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=6
|
245
496
|
body:
|
246
497
|
encoding: US-ASCII
|
247
|
-
string:
|
498
|
+
string: ''
|
499
|
+
headers:
|
500
|
+
Accept:
|
501
|
+
- "*/*; q=0.5, application/xml"
|
502
|
+
Accept-Encoding:
|
503
|
+
- gzip, deflate
|
504
|
+
User-Agent:
|
505
|
+
- Ruby
|
506
|
+
response:
|
507
|
+
status:
|
508
|
+
code: 200
|
509
|
+
message: OK
|
510
|
+
headers:
|
511
|
+
Access-Control-Allow-Headers:
|
512
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
513
|
+
Access-Control-Allow-Methods:
|
514
|
+
- GET,PATCH,POST,DELETE
|
515
|
+
Access-Control-Allow-Origin:
|
516
|
+
- "*"
|
517
|
+
Content-Type:
|
518
|
+
- application/json; charset=utf-8
|
519
|
+
Date:
|
520
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
521
|
+
Etag:
|
522
|
+
- '"1009868265"'
|
523
|
+
Server:
|
524
|
+
- nginx/1.4.7
|
525
|
+
X-Powered-By:
|
526
|
+
- Express
|
527
|
+
Content-Length:
|
528
|
+
- '1880'
|
529
|
+
Connection:
|
530
|
+
- keep-alive
|
531
|
+
body:
|
532
|
+
encoding: UTF-8
|
533
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
534
|
+
Guidance","course_number":"901","district":"4fd43cc56d11340000000005","grade":"9","name":"Group
|
535
|
+
Guidance - 901 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"596","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d04b4","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d0640"],"last_modified":"2014-02-26T21:15:37.996Z","created":"2014-02-26T21:15:37.994Z","id":"530e5979049e75a9262d0b01"},"previous_attributes":{"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d063a","530e5968049e75a9262d0640"]}},"created":"2014-08-11T18:35:19.420Z","id":"53e90ce782399c964b0009e7"},"uri":"/v1.1/events/53e90ce782399c964b0009e7"}],"paging":{"current":6,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=6"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=7"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=5"}]}'
|
248
536
|
http_version:
|
249
|
-
recorded_at: Wed,
|
537
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
250
538
|
- request:
|
251
539
|
method: get
|
252
|
-
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=
|
540
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=7
|
541
|
+
body:
|
542
|
+
encoding: US-ASCII
|
543
|
+
string: ''
|
544
|
+
headers:
|
545
|
+
Accept:
|
546
|
+
- "*/*; q=0.5, application/xml"
|
547
|
+
Accept-Encoding:
|
548
|
+
- gzip, deflate
|
549
|
+
User-Agent:
|
550
|
+
- Ruby
|
551
|
+
response:
|
552
|
+
status:
|
553
|
+
code: 200
|
554
|
+
message: OK
|
555
|
+
headers:
|
556
|
+
Access-Control-Allow-Headers:
|
557
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
558
|
+
Access-Control-Allow-Methods:
|
559
|
+
- GET,PATCH,POST,DELETE
|
560
|
+
Access-Control-Allow-Origin:
|
561
|
+
- "*"
|
562
|
+
Content-Type:
|
563
|
+
- application/json; charset=utf-8
|
564
|
+
Date:
|
565
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
566
|
+
Etag:
|
567
|
+
- '"-786739319"'
|
568
|
+
Server:
|
569
|
+
- nginx/1.4.7
|
570
|
+
X-Powered-By:
|
571
|
+
- Express
|
572
|
+
Content-Length:
|
573
|
+
- '1899'
|
574
|
+
Connection:
|
575
|
+
- keep-alive
|
576
|
+
body:
|
577
|
+
encoding: UTF-8
|
578
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
|
579
|
+
3 Math, Class 301","course_number":"301","district":"4fd43cc56d11340000000005","grade":"3","name":"Grade
|
580
|
+
3 Math, Class 301 - 301 - S. Block","period":"5","school":"530e595026403103360ff9fe","sis_id":"771","subject":"math","teacher":"530e5955d50c310f36112c15","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"],"last_modified":"2014-07-07T15:46:35.850Z","created":"2014-02-26T21:15:38.738Z","id":"530e597a049e75a9262d0baf"},"previous_attributes":{"students":["530e5960049e75a9262cff56","530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"]}},"created":"2014-08-28T18:01:13.872Z","id":"53ff6e6b322eced002000088"},"uri":"/v1.1/events/53ff6e6b322eced002000088"}],"paging":{"current":7,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=7"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=8"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=6"}]}'
|
581
|
+
http_version:
|
582
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
583
|
+
- request:
|
584
|
+
method: get
|
585
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=8
|
586
|
+
body:
|
587
|
+
encoding: US-ASCII
|
588
|
+
string: ''
|
589
|
+
headers:
|
590
|
+
Accept:
|
591
|
+
- "*/*; q=0.5, application/xml"
|
592
|
+
Accept-Encoding:
|
593
|
+
- gzip, deflate
|
594
|
+
User-Agent:
|
595
|
+
- Ruby
|
596
|
+
response:
|
597
|
+
status:
|
598
|
+
code: 200
|
599
|
+
message: OK
|
600
|
+
headers:
|
601
|
+
Access-Control-Allow-Headers:
|
602
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
603
|
+
Access-Control-Allow-Methods:
|
604
|
+
- GET,PATCH,POST,DELETE
|
605
|
+
Access-Control-Allow-Origin:
|
606
|
+
- "*"
|
607
|
+
Content-Type:
|
608
|
+
- application/json; charset=utf-8
|
609
|
+
Date:
|
610
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
611
|
+
Etag:
|
612
|
+
- '"1585486727"'
|
613
|
+
Server:
|
614
|
+
- nginx/1.4.7
|
615
|
+
X-Powered-By:
|
616
|
+
- Express
|
617
|
+
Content-Length:
|
618
|
+
- '1597'
|
619
|
+
Connection:
|
620
|
+
- keep-alive
|
621
|
+
body:
|
622
|
+
encoding: UTF-8
|
623
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
624
|
+
Music, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
625
|
+
Music, Class 001 - 001 - H. Willms","period":"5","school":"530e595026403103360ff9fe","sis_id":"804","subject":"arts
|
626
|
+
and music","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:38.877Z","created":"2014-02-26T21:15:38.875Z","id":"530e597a049e75a9262d0bd0"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.064Z","id":"53ff6e6b322eced002000089"},"uri":"/v1.1/events/53ff6e6b322eced002000089"}],"paging":{"current":8,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=8"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=9"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=7"}]}'
|
627
|
+
http_version:
|
628
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
629
|
+
- request:
|
630
|
+
method: get
|
631
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=9
|
632
|
+
body:
|
633
|
+
encoding: US-ASCII
|
634
|
+
string: ''
|
635
|
+
headers:
|
636
|
+
Accept:
|
637
|
+
- "*/*; q=0.5, application/xml"
|
638
|
+
Accept-Encoding:
|
639
|
+
- gzip, deflate
|
640
|
+
User-Agent:
|
641
|
+
- Ruby
|
642
|
+
response:
|
643
|
+
status:
|
644
|
+
code: 200
|
645
|
+
message: OK
|
646
|
+
headers:
|
647
|
+
Access-Control-Allow-Headers:
|
648
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
649
|
+
Access-Control-Allow-Methods:
|
650
|
+
- GET,PATCH,POST,DELETE
|
651
|
+
Access-Control-Allow-Origin:
|
652
|
+
- "*"
|
653
|
+
Content-Type:
|
654
|
+
- application/json; charset=utf-8
|
655
|
+
Date:
|
656
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
657
|
+
Etag:
|
658
|
+
- '"1486566861"'
|
659
|
+
Server:
|
660
|
+
- nginx/1.4.7
|
661
|
+
X-Powered-By:
|
662
|
+
- Express
|
663
|
+
Content-Length:
|
664
|
+
- '1598'
|
665
|
+
Connection:
|
666
|
+
- keep-alive
|
667
|
+
body:
|
668
|
+
encoding: UTF-8
|
669
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
670
|
+
Music, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
671
|
+
Music, Class 002 - 002 - S. Schoen","period":"5","school":"530e595026403103360ff9fe","sis_id":"805","subject":"arts
|
672
|
+
and music","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:38.882Z","created":"2014-02-26T21:15:38.879Z","id":"530e597a049e75a9262d0bd1"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.067Z","id":"53ff6e6b322eced00200008a"},"uri":"/v1.1/events/53ff6e6b322eced00200008a"}],"paging":{"current":9,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=9"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=10"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=8"}]}'
|
673
|
+
http_version:
|
674
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
675
|
+
- request:
|
676
|
+
method: get
|
677
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=10
|
253
678
|
body:
|
254
679
|
encoding: US-ASCII
|
255
680
|
string: ''
|
256
681
|
headers:
|
257
682
|
Accept:
|
258
|
-
-
|
683
|
+
- "*/*; q=0.5, application/xml"
|
259
684
|
Accept-Encoding:
|
260
685
|
- gzip, deflate
|
261
686
|
User-Agent:
|
@@ -268,24 +693,164 @@ http_interactions:
|
|
268
693
|
Access-Control-Allow-Headers:
|
269
694
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
270
695
|
Access-Control-Allow-Methods:
|
271
|
-
- GET,
|
696
|
+
- GET,PATCH,POST,DELETE
|
272
697
|
Access-Control-Allow-Origin:
|
273
|
-
-
|
698
|
+
- "*"
|
274
699
|
Content-Type:
|
275
700
|
- application/json; charset=utf-8
|
276
701
|
Date:
|
277
|
-
- Wed,
|
702
|
+
- Wed, 03 Sep 2014 19:05:18 GMT
|
703
|
+
Etag:
|
704
|
+
- '"1198867496"'
|
278
705
|
Server:
|
279
|
-
- nginx/1.4.
|
706
|
+
- nginx/1.4.7
|
280
707
|
X-Powered-By:
|
281
708
|
- Express
|
282
709
|
Content-Length:
|
283
|
-
- '
|
710
|
+
- '1599'
|
284
711
|
Connection:
|
285
712
|
- keep-alive
|
713
|
+
body:
|
714
|
+
encoding: UTF-8
|
715
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
716
|
+
Music, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
717
|
+
Music, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"806","subject":"arts
|
718
|
+
and music","teacher":"50c20477987eda0d3d02d310","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffbe","530e5961049e75a9262cffc3","530e5961049e75a9262d0000","530e5961049e75a9262d0036","530e5961049e75a9262d0074","530e5962049e75a9262d00c5","530e5963049e75a9262d01fa","530e5964049e75a9262d027e","530e5964049e75a9262d02a8","530e5964049e75a9262d02ab","530e5964049e75a9262d02f7","530e5965049e75a9262d03b2","530e5965049e75a9262d03bf","530e5966049e75a9262d040a","530e5966049e75a9262d0449","530e5967049e75a9262d051b","530e5967049e75a9262d0565","530e5968049e75a9262d05f0","530e5968049e75a9262d061e","530e5968049e75a9262d0623"],"last_modified":"2014-02-26T21:15:38.886Z","created":"2014-02-26T21:15:38.883Z","id":"530e597a049e75a9262d0bd2"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.070Z","id":"53ff6e6b322eced00200008b"},"uri":"/v1.1/events/53ff6e6b322eced00200008b"}],"paging":{"current":10,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=10"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=11"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=9"}]}'
|
719
|
+
http_version:
|
720
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
721
|
+
- request:
|
722
|
+
method: get
|
723
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=11
|
286
724
|
body:
|
287
725
|
encoding: US-ASCII
|
288
|
-
string:
|
726
|
+
string: ''
|
727
|
+
headers:
|
728
|
+
Accept:
|
729
|
+
- "*/*; q=0.5, application/xml"
|
730
|
+
Accept-Encoding:
|
731
|
+
- gzip, deflate
|
732
|
+
User-Agent:
|
733
|
+
- Ruby
|
734
|
+
response:
|
735
|
+
status:
|
736
|
+
code: 200
|
737
|
+
message: OK
|
738
|
+
headers:
|
739
|
+
Access-Control-Allow-Headers:
|
740
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
741
|
+
Access-Control-Allow-Methods:
|
742
|
+
- GET,PATCH,POST,DELETE
|
743
|
+
Access-Control-Allow-Origin:
|
744
|
+
- "*"
|
745
|
+
Content-Type:
|
746
|
+
- application/json; charset=utf-8
|
747
|
+
Date:
|
748
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
749
|
+
Etag:
|
750
|
+
- '"-2003798880"'
|
751
|
+
Server:
|
752
|
+
- nginx/1.4.7
|
753
|
+
X-Powered-By:
|
754
|
+
- Express
|
755
|
+
Content-Length:
|
756
|
+
- '1598'
|
757
|
+
Connection:
|
758
|
+
- keep-alive
|
759
|
+
body:
|
760
|
+
encoding: UTF-8
|
761
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
762
|
+
Science, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
763
|
+
Science, Class 001 - 001 - H. Willms","period":"2","school":"530e595026403103360ff9fe","sis_id":"864","subject":"science","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:39.166Z","created":"2014-02-26T21:15:39.165Z","id":"530e597b049e75a9262d0c0a"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.073Z","id":"53ff6e6b322eced00200008c"},"uri":"/v1.1/events/53ff6e6b322eced00200008c"}],"paging":{"current":11,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=11"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=12"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=10"}]}'
|
764
|
+
http_version:
|
765
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
766
|
+
- request:
|
767
|
+
method: get
|
768
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=12
|
769
|
+
body:
|
770
|
+
encoding: US-ASCII
|
771
|
+
string: ''
|
772
|
+
headers:
|
773
|
+
Accept:
|
774
|
+
- "*/*; q=0.5, application/xml"
|
775
|
+
Accept-Encoding:
|
776
|
+
- gzip, deflate
|
777
|
+
User-Agent:
|
778
|
+
- Ruby
|
779
|
+
response:
|
780
|
+
status:
|
781
|
+
code: 200
|
782
|
+
message: OK
|
783
|
+
headers:
|
784
|
+
Access-Control-Allow-Headers:
|
785
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
786
|
+
Access-Control-Allow-Methods:
|
787
|
+
- GET,PATCH,POST,DELETE
|
788
|
+
Access-Control-Allow-Origin:
|
789
|
+
- "*"
|
790
|
+
Content-Type:
|
791
|
+
- application/json; charset=utf-8
|
792
|
+
Date:
|
793
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
794
|
+
Etag:
|
795
|
+
- '"-1751089928"'
|
796
|
+
Server:
|
797
|
+
- nginx/1.4.7
|
798
|
+
X-Powered-By:
|
799
|
+
- Express
|
800
|
+
Content-Length:
|
801
|
+
- '1598'
|
802
|
+
Connection:
|
803
|
+
- keep-alive
|
804
|
+
body:
|
805
|
+
encoding: UTF-8
|
806
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
807
|
+
Science, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
808
|
+
Science, Class 002 - 002 - S. Schoen","period":"3","school":"530e595026403103360ff9fe","sis_id":"865","subject":"science","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:39.183Z","created":"2014-02-26T21:15:39.181Z","id":"530e597b049e75a9262d0c0e"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.076Z","id":"53ff6e6b322eced00200008d"},"uri":"/v1.1/events/53ff6e6b322eced00200008d"}],"paging":{"current":12,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=12"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=13"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=11"}]}'
|
809
|
+
http_version:
|
810
|
+
recorded_at: Wed, 03 Sep 2014 19:05:18 GMT
|
811
|
+
- request:
|
812
|
+
method: get
|
813
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=13
|
814
|
+
body:
|
815
|
+
encoding: US-ASCII
|
816
|
+
string: ''
|
817
|
+
headers:
|
818
|
+
Accept:
|
819
|
+
- "*/*; q=0.5, application/xml"
|
820
|
+
Accept-Encoding:
|
821
|
+
- gzip, deflate
|
822
|
+
User-Agent:
|
823
|
+
- Ruby
|
824
|
+
response:
|
825
|
+
status:
|
826
|
+
code: 200
|
827
|
+
message: OK
|
828
|
+
headers:
|
829
|
+
Access-Control-Allow-Headers:
|
830
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
831
|
+
Access-Control-Allow-Methods:
|
832
|
+
- GET,PATCH,POST,DELETE
|
833
|
+
Access-Control-Allow-Origin:
|
834
|
+
- "*"
|
835
|
+
Content-Type:
|
836
|
+
- application/json; charset=utf-8
|
837
|
+
Date:
|
838
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
839
|
+
Etag:
|
840
|
+
- '"-144915801"'
|
841
|
+
Server:
|
842
|
+
- nginx/1.4.7
|
843
|
+
X-Powered-By:
|
844
|
+
- Express
|
845
|
+
Content-Length:
|
846
|
+
- '1510'
|
847
|
+
Connection:
|
848
|
+
- keep-alive
|
849
|
+
body:
|
850
|
+
encoding: UTF-8
|
851
|
+
string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
852
|
+
Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
853
|
+
Science, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"866","subject":"science","teacher":"50c20477987eda0d3d02d310","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffbe","530e5961049e75a9262cffc3","530e5961049e75a9262d0000","530e5961049e75a9262d0036","530e5961049e75a9262d0074","530e5962049e75a9262d00c5","530e5963049e75a9262d01fa","530e5964049e75a9262d027e","530e5964049e75a9262d02a8","530e5964049e75a9262d02ab","530e5964049e75a9262d02f7","530e5965049e75a9262d03b2","530e5965049e75a9262d03bf","530e5966049e75a9262d040a","530e5966049e75a9262d0449","530e5967049e75a9262d051b","530e5967049e75a9262d0565","530e5968049e75a9262d05f0","530e5968049e75a9262d061e","530e5968049e75a9262d0623"],"last_modified":"2014-02-26T21:15:39.195Z","created":"2014-02-26T21:15:39.193Z","id":"530e597b049e75a9262d0c12"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.088Z","id":"53ff6e6b322eced00200008e"},"uri":"/v1.1/events/53ff6e6b322eced00200008e"}],"paging":{"current":13,"total":13,"count":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=13"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=1&page=12"}]}'
|
289
854
|
http_version:
|
290
|
-
recorded_at: Wed,
|
855
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
291
856
|
recorded_with: VCR 2.4.0
|