clever-ruby 0.11.1 → 0.13.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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +15 -1
  4. data/clever-ruby.gemspec +0 -1
  5. data/lib/clever-ruby.rb +1 -1
  6. data/lib/clever-ruby/api_resource.rb +43 -7
  7. data/lib/clever-ruby/district.rb +14 -0
  8. data/lib/clever-ruby/event.rb +2 -0
  9. data/lib/clever-ruby/school.rb +2 -0
  10. data/lib/clever-ruby/school_admin.rb +17 -0
  11. data/lib/clever-ruby/section.rb +2 -0
  12. data/lib/clever-ruby/student.rb +2 -0
  13. data/lib/clever-ruby/teacher.rb +2 -0
  14. data/lib/clever-ruby/util.rb +1 -9
  15. data/lib/clever-ruby/version.rb +1 -1
  16. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
  17. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
  18. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
  19. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
  20. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
  21. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
  22. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
  23. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
  24. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
  25. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
  26. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
  27. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
  28. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
  29. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
  30. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
  31. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
  32. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
  33. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
  34. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
  35. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
  36. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
  37. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
  38. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
  39. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
  40. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
  41. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
  42. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
  43. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
  44. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
  45. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
  46. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
  47. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
  48. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
  49. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
  50. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
  51. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
  52. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
  53. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
  54. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
  55. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
  56. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
  57. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
  58. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
  59. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
  60. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
  61. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
  62. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
  63. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
  64. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
  65. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
  66. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
  67. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
  68. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
  69. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
  70. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
  71. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
  72. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
  73. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
  74. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
  75. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
  76. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
  77. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
  78. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
  79. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
  80. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
  81. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
  82. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
  83. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
  84. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
  85. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
  86. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
  87. data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
  88. data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
  89. data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
  90. data/test/integration/api_operations/list_test.rb +5 -3
  91. data/test/integration/district_with_non_global_token_test.rb +7 -0
  92. data/test/integration/last_test.rb +3 -2
  93. data/test/integration/nested_resource_test.rb +3 -2
  94. data/test/unit/api_resource_test.rb +29 -14
  95. data/test/unit/clever_test.rb +1 -0
  96. metadata +17 -16
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,24 +25,28 @@ http_interactions:
25
25
  Access-Control-Allow-Methods:
26
26
  - GET,PATCH,POST,DELETE
27
27
  Access-Control-Allow-Origin:
28
- - ! '*'
28
+ - "*"
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Date:
32
- - Sat, 13 Sep 2014 00:02:46 GMT
33
- Etag:
34
- - ! '"-409931571"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:40:53 GMT
37
33
  X-Powered-By:
38
34
  - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1183'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
39
43
  Content-Length:
40
44
  - '44617'
41
45
  Connection:
42
46
  - keep-alive
43
47
  body:
44
- encoding: US-ASCII
45
- string: ! '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
48
+ encoding: UTF-8
49
+ string: '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
46
50
  3 Common Branch Teacher","id":"509fbd7ec474fab64a8e9d53"},"uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53"},{"data":{"created":"2012-11-27T15:04:48.474Z","credentials":{"district_password":"OMeitoo3v","district_username":"reuben.conn"},"district":"4fd43cc56d11340000000005","email":"conn_reuben@example.net","last_modified":"2014-02-26T21:15:01.234Z","name":{"first":"Reuben","last":"Conn","middle":"K"},"school":"530e595026403103360ff9ff","sis_id":"33","teacher_number":"215041","title":"Grade
47
51
  8 Mathematics Teacher","id":"50b4d690ad221ab95f1c6c39"},"uri":"/v1.1/teachers/50b4d690ad221ab95f1c6c39"},{"data":{"created":"2012-12-01T15:02:36.961Z","credentials":{"district_password":"ru3o8rusbf","district_username":"steven.ogden"},"district":"4fd43cc56d11340000000005","email":"ogden_steven@example.net","last_modified":"2014-02-26T21:15:01.485Z","name":{"first":"Steven","last":"Ogden","middle":"Q"},"school":"530e595026403103360ff9fd","sis_id":"81","teacher_number":"474958","title":"High
48
52
  School Science Teacher","id":"50ba1c0c4eda5d94372227eb"},"uri":"/v1.1/teachers/50ba1c0c4eda5d94372227eb"},{"data":{"created":"2012-12-05T15:00:02.670Z","credentials":{"district_password":"Coo0ooyahgh","district_username":"hauck.haylie"},"district":"4fd43cc56d11340000000005","email":"hauck.haylie@example.com","last_modified":"2014-02-26T21:15:01.358Z","name":{"first":"Haylie","last":"Hauck","middle":"J"},"school":"530e595026403103360ff9fd","sis_id":"48","teacher_number":"830340","title":"Grade
@@ -132,8 +136,8 @@ http_interactions:
132
136
  Principal","id":"530e5955d50c310f36112c17"},"uri":"/v1.1/teachers/530e5955d50c310f36112c17"},{"data":{"created":"2014-02-26T21:15:01.568Z","credentials":{"district_username":"pennyworth.daniela","district_password":"hfhglh345d"},"district":"4fd43cc56d11340000000005","email":"pennyworth.daniela@example.net","last_modified":"2014-02-26T21:15:01.570Z","name":{"first":"Daniela","middle":"B","last":"Pennyworth"},"school":"530e595026403103360ff9fd","sis_id":"92","teacher_number":"499660","title":"Literacy
133
137
  Coach","id":"530e5955d50c310f36112c18"},"uri":"/v1.1/teachers/530e5955d50c310f36112c18"},{"data":{"created":"2014-02-26T21:15:01.572Z","credentials":{"district_username":"m_paucek","district_password":"jhga8salgh"},"district":"4fd43cc56d11340000000005","email":"paucek_m@example.org","last_modified":"2014-02-26T21:15:01.574Z","name":{"first":"Meaghan","middle":"P","last":"Paucek"},"school":"530e595026403103360ff9fd","sis_id":"93","teacher_number":"843713","title":"High
134
138
  School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers"}]}'
135
- http_version:
136
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
139
+ http_version:
140
+ recorded_at: Sat, 26 Sep 2015 17:40:53 GMT
137
141
  - request:
138
142
  method: get
139
143
  uri: https://api.clever.com/v1.1/teachers?count=true
@@ -142,7 +146,7 @@ http_interactions:
142
146
  string: ''
143
147
  headers:
144
148
  Accept:
145
- - ! '*/*; q=0.5, application/xml'
149
+ - "*/*; q=0.5, application/xml"
146
150
  Accept-Encoding:
147
151
  - gzip, deflate
148
152
  Authorization:
@@ -159,22 +163,28 @@ http_interactions:
159
163
  Access-Control-Allow-Methods:
160
164
  - GET,PATCH,POST,DELETE
161
165
  Access-Control-Allow-Origin:
162
- - ! '*'
166
+ - "*"
163
167
  Content-Type:
164
168
  - application/json; charset=utf-8
165
169
  Date:
166
- - Sat, 13 Sep 2014 00:02:46 GMT
167
- Server:
168
- - nginx/1.4.7
170
+ - Sat, 26 Sep 2015 17:40:53 GMT
169
171
  X-Powered-By:
170
172
  - Express
173
+ X-Ratelimit-Bucket:
174
+ - bearer
175
+ X-Ratelimit-Limit:
176
+ - '1200'
177
+ X-Ratelimit-Remaining:
178
+ - '1182'
179
+ X-Ratelimit-Reset:
180
+ - '1443289303'
171
181
  Content-Length:
172
182
  - '71'
173
183
  Connection:
174
184
  - keep-alive
175
185
  body:
176
- encoding: US-ASCII
177
- string: ! '{"count":89,"links":[{"rel":"self","uri":"/v1.1/teachers?count=true"}]}'
178
- http_version:
179
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
186
+ encoding: UTF-8
187
+ string: '{"count":89,"links":[{"rel":"self","uri":"/v1.1/teachers?count=true"}]}'
188
+ http_version:
189
+ recorded_at: Sat, 26 Sep 2015 17:40:54 GMT
180
190
  recorded_with: VCR 2.9.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ http_interactions:
25
25
  Access-Control-Allow-Methods:
26
26
  - GET,PATCH,POST,DELETE
27
27
  Access-Control-Allow-Origin:
28
- - '*'
28
+ - "*"
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Date:
32
- - Tue, 30 Sep 2014 20:13:24 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:54 GMT
35
33
  X-Powered-By:
36
34
  - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1169'
41
+ X-Ratelimit-Reset:
42
+ - '1443289122'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,7 +48,7 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 20:13:25 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:37:55 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=100000
@@ -51,7 +57,7 @@ http_interactions:
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,15 +74,23 @@ http_interactions:
68
74
  Access-Control-Allow-Methods:
69
75
  - GET,PATCH,POST,DELETE
70
76
  Access-Control-Allow-Origin:
71
- - '*'
77
+ - "*"
72
78
  Content-Type:
73
79
  - application/json; charset=utf-8
74
80
  Date:
75
- - Tue, 30 Sep 2014 20:13:25 GMT
76
- Server:
77
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:37:55 GMT
82
+ Etag:
83
+ - '"-859084798"'
78
84
  X-Powered-By:
79
85
  - Express
86
+ X-Ratelimit-Bucket:
87
+ - bearer
88
+ X-Ratelimit-Limit:
89
+ - '1200'
90
+ X-Ratelimit-Remaining:
91
+ - '1168'
92
+ X-Ratelimit-Reset:
93
+ - '1443289122'
80
94
  Content-Length:
81
95
  - '148'
82
96
  Connection:
@@ -85,7 +99,7 @@ http_interactions:
85
99
  encoding: UTF-8
86
100
  string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=100000"}]}'
87
101
  http_version:
88
- recorded_at: Tue, 30 Sep 2014 20:13:25 GMT
102
+ recorded_at: Sat, 26 Sep 2015 17:40:24 GMT
89
103
  - request:
90
104
  method: get
91
105
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?limit=2
@@ -94,7 +108,7 @@ http_interactions:
94
108
  string: ''
95
109
  headers:
96
110
  Accept:
97
- - '*/*; q=0.5, application/xml'
111
+ - "*/*; q=0.5, application/xml"
98
112
  Accept-Encoding:
99
113
  - gzip, deflate
100
114
  Authorization:
@@ -111,15 +125,21 @@ http_interactions:
111
125
  Access-Control-Allow-Methods:
112
126
  - GET,PATCH,POST,DELETE
113
127
  Access-Control-Allow-Origin:
114
- - '*'
128
+ - "*"
115
129
  Content-Type:
116
130
  - application/json; charset=utf-8
117
131
  Date:
118
- - Tue, 30 Sep 2014 20:13:25 GMT
119
- Server:
120
- - nginx/1.4.7
132
+ - Sat, 26 Sep 2015 17:40:26 GMT
121
133
  X-Powered-By:
122
134
  - Express
135
+ X-Ratelimit-Bucket:
136
+ - bearer
137
+ X-Ratelimit-Limit:
138
+ - '1200'
139
+ X-Ratelimit-Remaining:
140
+ - '1088'
141
+ X-Ratelimit-Reset:
142
+ - '1443289242'
123
143
  Content-Length:
124
144
  - '143'
125
145
  Connection:
@@ -128,5 +148,5 @@ http_interactions:
128
148
  encoding: UTF-8
129
149
  string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events?limit=2"}]}'
130
150
  http_version:
131
- recorded_at: Tue, 30 Sep 2014 20:13:25 GMT
151
+ recorded_at: Sat, 26 Sep 2015 17:40:27 GMT
132
152
  recorded_with: VCR 2.9.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ http_interactions:
25
25
  Access-Control-Allow-Methods:
26
26
  - GET,PATCH,POST,DELETE
27
27
  Access-Control-Allow-Origin:
28
- - '*'
28
+ - "*"
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Date:
32
- - Tue, 30 Sep 2014 19:54:14 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:53 GMT
35
33
  X-Powered-By:
36
34
  - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1172'
41
+ X-Ratelimit-Reset:
42
+ - '1443289122'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,7 +48,7 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 19:54:15 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:37:53 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?limit=100000
@@ -51,7 +57,7 @@ http_interactions:
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,21 @@ http_interactions:
68
74
  Access-Control-Allow-Methods:
69
75
  - GET,PATCH,POST,DELETE
70
76
  Access-Control-Allow-Origin:
71
- - '*'
77
+ - "*"
72
78
  Content-Type:
73
79
  - application/json; charset=utf-8
74
80
  Date:
75
- - Tue, 30 Sep 2014 19:54:15 GMT
76
- Etag:
77
- - '"-1820526720"'
78
- Server:
79
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:37:53 GMT
80
82
  X-Powered-By:
81
83
  - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1171'
90
+ X-Ratelimit-Reset:
91
+ - '1443289122'
82
92
  Content-Length:
83
93
  - '1812'
84
94
  Connection:
@@ -96,7 +106,7 @@ http_interactions:
96
106
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
97
107
  Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=100000"}]}'
98
108
  http_version:
99
- recorded_at: Tue, 30 Sep 2014 19:54:15 GMT
109
+ recorded_at: Sat, 26 Sep 2015 17:37:54 GMT
100
110
  - request:
101
111
  method: get
102
112
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?limit=2
@@ -105,7 +115,7 @@ http_interactions:
105
115
  string: ''
106
116
  headers:
107
117
  Accept:
108
- - '*/*; q=0.5, application/xml'
118
+ - "*/*; q=0.5, application/xml"
109
119
  Accept-Encoding:
110
120
  - gzip, deflate
111
121
  Authorization:
@@ -122,17 +132,21 @@ http_interactions:
122
132
  Access-Control-Allow-Methods:
123
133
  - GET,PATCH,POST,DELETE
124
134
  Access-Control-Allow-Origin:
125
- - '*'
135
+ - "*"
126
136
  Content-Type:
127
137
  - application/json; charset=utf-8
128
138
  Date:
129
- - Tue, 30 Sep 2014 19:54:15 GMT
130
- Etag:
131
- - '"1588311031"'
132
- Server:
133
- - nginx/1.4.7
139
+ - Sat, 26 Sep 2015 17:37:54 GMT
134
140
  X-Powered-By:
135
141
  - Express
142
+ X-Ratelimit-Bucket:
143
+ - bearer
144
+ X-Ratelimit-Limit:
145
+ - '1200'
146
+ X-Ratelimit-Remaining:
147
+ - '1170'
148
+ X-Ratelimit-Reset:
149
+ - '1443289122'
136
150
  Content-Length:
137
151
  - '1363'
138
152
  Connection:
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ http_interactions:
25
25
  Access-Control-Allow-Methods:
26
26
  - GET,PATCH,POST,DELETE
27
27
  Access-Control-Allow-Origin:
28
- - '*'
28
+ - "*"
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Date:
32
- - Tue, 30 Sep 2014 19:54:34 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:51 GMT
35
33
  X-Powered-By:
36
34
  - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1178'
41
+ X-Ratelimit-Reset:
42
+ - '1443289122'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,7 +48,7 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 19:54:34 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:37:51 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/sections?limit=100000
@@ -51,7 +57,7 @@ http_interactions:
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,23 @@ http_interactions:
68
74
  Access-Control-Allow-Methods:
69
75
  - GET,PATCH,POST,DELETE
70
76
  Access-Control-Allow-Origin:
71
- - '*'
77
+ - "*"
72
78
  Content-Type:
73
79
  - application/json; charset=utf-8
74
80
  Date:
75
- - Tue, 30 Sep 2014 19:54:34 GMT
81
+ - Sat, 26 Sep 2015 17:37:51 GMT
76
82
  Etag:
77
- - '"-317608596"'
78
- Server:
79
- - nginx/1.4.7
83
+ - '"501176679"'
80
84
  X-Powered-By:
81
85
  - Express
86
+ X-Ratelimit-Bucket:
87
+ - bearer
88
+ X-Ratelimit-Limit:
89
+ - '1200'
90
+ X-Ratelimit-Remaining:
91
+ - '1177'
92
+ X-Ratelimit-Reset:
93
+ - '1443289122'
82
94
  Content-Length:
83
95
  - '460242'
84
96
  Connection:
@@ -1028,7 +1040,7 @@ http_interactions:
1028
1040
  string: ''
1029
1041
  headers:
1030
1042
  Accept:
1031
- - '*/*; q=0.5, application/xml'
1043
+ - "*/*; q=0.5, application/xml"
1032
1044
  Accept-Encoding:
1033
1045
  - gzip, deflate
1034
1046
  Authorization:
@@ -1045,17 +1057,23 @@ http_interactions:
1045
1057
  Access-Control-Allow-Methods:
1046
1058
  - GET,PATCH,POST,DELETE
1047
1059
  Access-Control-Allow-Origin:
1048
- - '*'
1060
+ - "*"
1049
1061
  Content-Type:
1050
1062
  - application/json; charset=utf-8
1051
1063
  Date:
1052
- - Tue, 30 Sep 2014 19:54:38 GMT
1064
+ - Sat, 26 Sep 2015 17:37:51 GMT
1053
1065
  Etag:
1054
- - '"205814927"'
1055
- Server:
1056
- - nginx/1.4.7
1066
+ - '"579777948"'
1057
1067
  X-Powered-By:
1058
1068
  - Express
1069
+ X-Ratelimit-Bucket:
1070
+ - bearer
1071
+ X-Ratelimit-Limit:
1072
+ - '1200'
1073
+ X-Ratelimit-Remaining:
1074
+ - '1176'
1075
+ X-Ratelimit-Reset:
1076
+ - '1443289122'
1059
1077
  Content-Length:
1060
1078
  - '11498'
1061
1079
  Connection: