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,30 @@ 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:05:06 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:28 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
+ - '1113'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '217'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- 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"}]}'
48
+ encoding: UTF-8
49
+ 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"}]}'
44
50
  http_version:
45
- recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:28 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
@@ -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,24 +74,30 @@ 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
- - Sat, 13 Sep 2014 00:05:06 GMT
76
- Server:
77
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:41:28 GMT
78
82
  X-Powered-By:
79
83
  - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1112'
90
+ X-Ratelimit-Reset:
91
+ - '1443289303'
80
92
  Content-Length:
81
93
  - '518'
82
94
  Connection:
83
95
  - keep-alive
84
96
  body:
85
- encoding: US-ASCII
86
- 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"}]}'
97
+ encoding: UTF-8
98
+ 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"}]}'
87
99
  http_version:
88
- recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
100
+ recorded_at: Sat, 26 Sep 2015 17:41:29 GMT
89
101
  - request:
90
102
  method: get
91
103
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?created_since=2013-02-15T%202:30:42%200000
@@ -94,7 +106,7 @@ http_interactions:
94
106
  string: ''
95
107
  headers:
96
108
  Accept:
97
- - ! '*/*; q=0.5, application/xml'
109
+ - "*/*; q=0.5, application/xml"
98
110
  Accept-Encoding:
99
111
  - gzip, deflate
100
112
  Authorization:
@@ -111,23 +123,29 @@ http_interactions:
111
123
  Access-Control-Allow-Methods:
112
124
  - GET,PATCH,POST,DELETE
113
125
  Access-Control-Allow-Origin:
114
- - ! '*'
126
+ - "*"
115
127
  Content-Type:
116
128
  - application/json; charset=utf-8
117
129
  Date:
118
- - Sat, 13 Sep 2014 00:05:06 GMT
119
- Server:
120
- - nginx/1.4.7
130
+ - Sat, 26 Sep 2015 17:41:29 GMT
121
131
  X-Powered-By:
122
132
  - Express
133
+ X-Ratelimit-Bucket:
134
+ - bearer
135
+ X-Ratelimit-Limit:
136
+ - '1200'
137
+ X-Ratelimit-Remaining:
138
+ - '1111'
139
+ X-Ratelimit-Reset:
140
+ - '1443289303'
123
141
  Content-Length:
124
142
  - '174'
125
143
  Connection:
126
144
  - keep-alive
127
145
  body:
128
- encoding: US-ASCII
129
- string: ! '{"error":"Could not parse created_since ''2013-02-15T 2:30:42 0000''.
146
+ encoding: UTF-8
147
+ string: '{"error":"Could not parse created_since ''2013-02-15T 2:30:42 0000''.
130
148
  Please ensure it is either a valid ObjectID or a valid W3C datetime: http://www.w3.org/TR/NOTE-datetime."}'
131
149
  http_version:
132
- recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
150
+ recorded_at: Sat, 26 Sep 2015 17:41:29 GMT
133
151
  recorded_with: VCR 2.9.3
@@ -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,25 +25,31 @@ 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:05:06 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:31:41 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
+ - '1199'
41
+ X-Ratelimit-Reset:
42
+ - '1443288761'
37
43
  Content-Length:
38
44
  - '932'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
48
+ encoding: UTF-8
43
49
  string: ! '{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
50
  5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
51
  High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
52
  Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9fd/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9fd/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9fd/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
47
53
  http_version:
48
- recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
54
+ recorded_at: Sat, 26 Sep 2015 17:31:42 GMT
49
55
  recorded_with: VCR 2.9.3
@@ -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,30 @@ 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
- - Fri, 12 Sep 2014 23:25:57 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Wed, 23 Sep 2015 14:42:19 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
+ - '1199'
41
+ X-Ratelimit-Reset:
42
+ - '1443019399'
37
43
  Content-Length:
38
44
  - '217'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- 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"}]}'
44
- http_version:
45
- recorded_at: Fri, 12 Sep 2014 23:25:56 GMT
48
+ encoding: UTF-8
49
+ 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"}]}'
50
+ http_version:
51
+ recorded_at: Wed, 23 Sep 2015 14:42:19 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com/v1.1/schools
@@ -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,24 +74,28 @@ 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
- - Fri, 12 Sep 2014 23:25:57 GMT
76
- Etag:
77
- - ! '"1408105812"'
78
- Server:
79
- - nginx/1.4.7
81
+ - Wed, 23 Sep 2015 14:42:19 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
+ - '1198'
90
+ X-Ratelimit-Reset:
91
+ - '1443019399'
82
92
  Content-Length:
83
93
  - '1764'
84
94
  Connection:
85
95
  - keep-alive
86
96
  body:
87
- encoding: US-ASCII
88
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
97
+ encoding: UTF-8
98
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
89
99
  5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
90
100
  High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
91
101
  Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
@@ -95,8 +105,8 @@ http_interactions:
95
105
  Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
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/schools"}]}'
98
- http_version:
99
- recorded_at: Fri, 12 Sep 2014 23:25:57 GMT
108
+ http_version:
109
+ recorded_at: Wed, 23 Sep 2015 14:42:19 GMT
100
110
  - request:
101
111
  method: get
102
112
  uri: https://api.clever.com/v1.1/students
@@ -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,24 +132,30 @@ 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
- - Fri, 12 Sep 2014 23:25:57 GMT
139
+ - Wed, 23 Sep 2015 14:42:19 GMT
130
140
  Etag:
131
- - ! '"-1704869160"'
132
- Server:
133
- - nginx/1.4.7
141
+ - '"-1672977800"'
134
142
  X-Powered-By:
135
143
  - Express
144
+ X-Ratelimit-Bucket:
145
+ - bearer
146
+ X-Ratelimit-Limit:
147
+ - '1200'
148
+ X-Ratelimit-Remaining:
149
+ - '1197'
150
+ X-Ratelimit-Reset:
151
+ - '1443019399'
136
152
  Content-Length:
137
153
  - '66289'
138
154
  Connection:
139
155
  - keep-alive
140
156
  body:
141
- encoding: US-ASCII
142
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
157
+ encoding: UTF-8
158
+ string: '{"data":[{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
143
159
  or African American","school":"530e595026403103360ff9fe","sis_id":"100095233","state_id":"231786324","student_number":"100095233","id":"530e5960049e75a9262cff1d"},"uri":"/v1.1/students/530e5960049e75a9262cff1d"},{"data":{"created":"2014-02-26T21:15:12.358Z","credentials":{"district_username":"douglasw58","district_password":"ahFii2nae"},"district":"4fd43cc56d11340000000005","dob":"6/18/1998","ell_status":"Y","email":"w_douglas@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.661Z","location":{"zip":"11004"},"name":{"first":"Douglas","middle":"S","last":"Wisoky"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"101565758","state_id":"498006597","student_number":"101565758","id":"530e5960049e75a9262cff1e"},"uri":"/v1.1/students/530e5960049e75a9262cff1e"},{"data":{"created":"2014-02-26T21:15:12.368Z","credentials":{"district_username":"joel42","district_password":"CaaDie0eboo"},"district":"4fd43cc56d11340000000005","dob":"7/4/1997","ell_status":"Y","email":"l.joe@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.664Z","location":{"zip":"10473"},"name":{"first":"Joe","middle":"S","last":"Lakin"},"race":"Black
144
160
  or African American","school":"530e595026403103360ff9fd","sis_id":"106078142","state_id":"635493722","student_number":"106078142","id":"530e5960049e75a9262cff1f"},"uri":"/v1.1/students/530e5960049e75a9262cff1f"},{"data":{"created":"2014-02-26T21:15:12.374Z","credentials":{"district_username":"evalynb40","district_password":"ooXahwook2"},"district":"4fd43cc56d11340000000005","dob":"8/10/2006","ell_status":"N","email":"b_evalyn@example.org","frl_status":"Paid","gender":"F","grade":"1","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.668Z","location":{"zip":"10029"},"name":{"first":"Evalyn","middle":"J","last":"Bradtke"},"race":"Black
145
161
  or African American","school":"530e595026403103360ff9fe","sis_id":"106091540","state_id":"552729322","student_number":"106091540","id":"530e5960049e75a9262cff20"},"uri":"/v1.1/students/530e5960049e75a9262cff20"},{"data":{"created":"2014-02-26T21:15:12.382Z","credentials":{"district_username":"coryt00","district_password":"ahW1taesao5"},"district":"4fd43cc56d11340000000005","dob":"7/21/1997","ell_status":"Y","email":"cory_t@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.673Z","location":{"zip":"10038"},"name":{"first":"Cory","middle":"V","last":"Thompson"},"race":"Black
@@ -211,8 +227,8 @@ http_interactions:
211
227
  or African American","school":"530e595026403103360ff9ff","sis_id":"187402543","state_id":"943748667","student_number":"187402543","id":"530e5961049e75a9262cffe2"},"uri":"/v1.1/students/530e5961049e75a9262cffe2"},{"data":{"created":"2014-02-26T21:15:13.202Z","credentials":{"district_username":"melvina59","district_password":"bog3Apoose1"},"district":"4fd43cc56d11340000000005","dob":"8/16/2000","ell_status":"Y","email":"a_melvin@example.org","frl_status":"Paid","gender":"M","grade":"7","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:41.068Z","location":{"zip":"11413"},"name":{"first":"Melvin","middle":"T","last":"Abshire"},"race":"Two
212
228
  or More Races","school":"530e595026403103360ff9ff","sis_id":"189422359","state_id":"949395711","student_number":"189422359","id":"530e5961049e75a9262cffe3"},"uri":"/v1.1/students/530e5961049e75a9262cffe3"},{"data":{"created":"2014-02-26T21:15:13.206Z","credentials":{"district_username":"mial61","district_password":"uka5Hixae"},"district":"4fd43cc56d11340000000005","dob":"11/10/2002","ell_status":"N","email":"l_mia@example.org","frl_status":"Paid","gender":"F","grade":"5","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:41.072Z","location":{"zip":"10002"},"name":{"first":"Mia","middle":"J","last":"Lindgren"},"race":"Black
213
229
  or African American","school":"530e595026403103360ff9fe","sis_id":"189492161","state_id":"661166974","student_number":"189492161","id":"530e5961049e75a9262cffe4"},"uri":"/v1.1/students/530e5961049e75a9262cffe4"}],"paging":{"current":1,"total":11,"count":1004},"links":[{"rel":"self","uri":"/v1.1/students"},{"rel":"next","uri":"/v1.1/students?starting_after=530e5961049e75a9262cffe4"}]}'
214
- http_version:
215
- recorded_at: Fri, 12 Sep 2014 23:25:57 GMT
230
+ http_version:
231
+ recorded_at: Wed, 23 Sep 2015 14:42:19 GMT
216
232
  - request:
217
233
  method: get
218
234
  uri: https://api.clever.com/v1.1/events
@@ -221,7 +237,7 @@ http_interactions:
221
237
  string: ''
222
238
  headers:
223
239
  Accept:
224
- - ! '*/*; q=0.5, application/xml'
240
+ - "*/*; q=0.5, application/xml"
225
241
  Accept-Encoding:
226
242
  - gzip, deflate
227
243
  Authorization:
@@ -238,24 +254,30 @@ http_interactions:
238
254
  Access-Control-Allow-Methods:
239
255
  - GET,PATCH,POST,DELETE
240
256
  Access-Control-Allow-Origin:
241
- - ! '*'
257
+ - "*"
242
258
  Content-Type:
243
259
  - application/json; charset=utf-8
244
260
  Date:
245
- - Fri, 12 Sep 2014 23:25:57 GMT
261
+ - Wed, 23 Sep 2015 14:42:20 GMT
246
262
  Etag:
247
- - ! '"-214069741"'
248
- Server:
249
- - nginx/1.4.7
263
+ - '"438255836"'
250
264
  X-Powered-By:
251
265
  - Express
266
+ X-Ratelimit-Bucket:
267
+ - bearer
268
+ X-Ratelimit-Limit:
269
+ - '1200'
270
+ X-Ratelimit-Remaining:
271
+ - '1196'
272
+ X-Ratelimit-Reset:
273
+ - '1443019399'
252
274
  Content-Length:
253
275
  - '9308'
254
276
  Connection:
255
277
  - keep-alive
256
278
  body:
257
- encoding: US-ASCII
258
- string: ! '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
279
+ encoding: UTF-8
280
+ string: '{"data":[{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
259
281
  3 Math, Class 301","course_number":"301","district":"4fd43cc56d11340000000005","grade":"3","name":"Grade
260
282
  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
261
283
  Music, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
@@ -273,8 +295,8 @@ http_interactions:
273
295
  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
274
296
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
275
297
  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":7},"links":[{"rel":"self","uri":"/v1.1/events"}]}'
276
- http_version:
277
- recorded_at: Fri, 12 Sep 2014 23:25:57 GMT
298
+ http_version:
299
+ recorded_at: Wed, 23 Sep 2015 14:42:20 GMT
278
300
  - request:
279
301
  method: get
280
302
  uri: https://api.clever.com/v1.1/sections
@@ -283,7 +305,7 @@ http_interactions:
283
305
  string: ''
284
306
  headers:
285
307
  Accept:
286
- - ! '*/*; q=0.5, application/xml'
308
+ - "*/*; q=0.5, application/xml"
287
309
  Accept-Encoding:
288
310
  - gzip, deflate
289
311
  Authorization:
@@ -300,24 +322,30 @@ http_interactions:
300
322
  Access-Control-Allow-Methods:
301
323
  - GET,PATCH,POST,DELETE
302
324
  Access-Control-Allow-Origin:
303
- - ! '*'
325
+ - "*"
304
326
  Content-Type:
305
327
  - application/json; charset=utf-8
306
328
  Date:
307
- - Fri, 12 Sep 2014 23:25:57 GMT
329
+ - Wed, 23 Sep 2015 14:42:21 GMT
308
330
  Etag:
309
- - ! '"1525695678"'
310
- Server:
311
- - nginx/1.4.7
331
+ - '"-682802249"'
312
332
  X-Powered-By:
313
333
  - Express
334
+ X-Ratelimit-Bucket:
335
+ - bearer
336
+ X-Ratelimit-Limit:
337
+ - '1200'
338
+ X-Ratelimit-Remaining:
339
+ - '1195'
340
+ X-Ratelimit-Reset:
341
+ - '1443019399'
314
342
  Content-Length:
315
343
  - '113738'
316
344
  Connection:
317
345
  - keep-alive
318
346
  body:
319
- encoding: US-ASCII
320
- string: ! '{"data":[{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
347
+ encoding: UTF-8
348
+ string: '{"data":[{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
321
349
  Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"data":{"course_name":"Group
322
350
  Guidance","course_number":"102","created":"2014-02-26T21:15:37.934Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-02-26T21:15:37.936Z","name":"Group
323
351
  Guidance - 102 - T. Vaux (Section 2)","period":"0","school":"530e595026403103360ff9fd","sis_id":"582","students":["530e5960049e75a9262cff4f","530e5960049e75a9262cff95","530e5961049e75a9262cffe0","530e5961049e75a9262d0027","530e5961049e75a9262d008d","530e5963049e75a9262d0180","530e5964049e75a9262d0300","530e5964049e75a9262d0302","530e5964049e75a9262d0304","530e5965049e75a9262d039e","530e5965049e75a9262d03b6","530e5965049e75a9262d03e8","530e5966049e75a9262d040c","530e5966049e75a9262d04cc","530e5967049e75a9262d05c0","530e5968049e75a9262d062f"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c12","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af3"},"uri":"/v1.1/sections/530e5979049e75a9262d0af3"},{"data":{"course_name":"Group
@@ -580,8 +608,8 @@ http_interactions:
580
608
  IV - 401 - G. Gorczany (Section 1)","period":"1","school":"530e595026403103360ff9fd","sis_id":"680","students":["530e5960049e75a9262cff54","530e5960049e75a9262cff6a","530e5960049e75a9262cff90","530e5960049e75a9262cff9f","530e5960049e75a9262cffa6","530e5961049e75a9262cffef","530e5961049e75a9262cfff7","530e5961049e75a9262d0002","530e5961049e75a9262d0039","530e5962049e75a9262d00ec","530e5962049e75a9262d0122","530e5962049e75a9262d012c","530e5962049e75a9262d0159","530e5963049e75a9262d0197","530e5963049e75a9262d01a6","530e5964049e75a9262d027f","530e5964049e75a9262d02ac","530e5964049e75a9262d02d4","530e5964049e75a9262d02f8","530e5964049e75a9262d0301","530e5965049e75a9262d0324","530e5965049e75a9262d0363","530e5965049e75a9262d0379","530e5965049e75a9262d037f","530e5965049e75a9262d038b","530e5965049e75a9262d03e5","530e5965049e75a9262d03ee","530e5966049e75a9262d03f6","530e5966049e75a9262d040f","530e5966049e75a9262d044c","530e5966049e75a9262d04a0","530e5966049e75a9262d04b8","530e5967049e75a9262d04fa","530e5967049e75a9262d050c","530e5967049e75a9262d0563","530e5967049e75a9262d0569","530e5967049e75a9262d0584","530e5967049e75a9262d0585","530e5967049e75a9262d058c","530e5967049e75a9262d05a6","530e5967049e75a9262d05b2","530e5968049e75a9262d05c5","530e5968049e75a9262d05fa","530e5968049e75a9262d0607","530e5968049e75a9262d060c","530e5968049e75a9262d0622","530e5968049e75a9262d062a","530e5968049e75a9262d063b","530e5968049e75a9262d063f","530e5968049e75a9262d0648"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b54"},"uri":"/v1.1/sections/530e597a049e75a9262d0b54"},{"data":{"course_name":"French
581
609
  I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
582
610
  I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
583
- http_version:
584
- recorded_at: Fri, 12 Sep 2014 23:25:57 GMT
611
+ http_version:
612
+ recorded_at: Wed, 23 Sep 2015 14:42:21 GMT
585
613
  - request:
586
614
  method: get
587
615
  uri: https://api.clever.com/v1.1/teachers
@@ -590,7 +618,7 @@ http_interactions:
590
618
  string: ''
591
619
  headers:
592
620
  Accept:
593
- - ! '*/*; q=0.5, application/xml'
621
+ - "*/*; q=0.5, application/xml"
594
622
  Accept-Encoding:
595
623
  - gzip, deflate
596
624
  Authorization:
@@ -607,24 +635,28 @@ http_interactions:
607
635
  Access-Control-Allow-Methods:
608
636
  - GET,PATCH,POST,DELETE
609
637
  Access-Control-Allow-Origin:
610
- - ! '*'
638
+ - "*"
611
639
  Content-Type:
612
640
  - application/json; charset=utf-8
613
641
  Date:
614
- - Fri, 12 Sep 2014 23:25:58 GMT
615
- Etag:
616
- - ! '"-409931571"'
617
- Server:
618
- - nginx/1.4.7
642
+ - Wed, 23 Sep 2015 14:42:21 GMT
619
643
  X-Powered-By:
620
644
  - Express
645
+ X-Ratelimit-Bucket:
646
+ - bearer
647
+ X-Ratelimit-Limit:
648
+ - '1200'
649
+ X-Ratelimit-Remaining:
650
+ - '1194'
651
+ X-Ratelimit-Reset:
652
+ - '1443019399'
621
653
  Content-Length:
622
654
  - '44617'
623
655
  Connection:
624
656
  - keep-alive
625
657
  body:
626
- encoding: US-ASCII
627
- 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
658
+ encoding: UTF-8
659
+ 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
628
660
  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
629
661
  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
630
662
  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
@@ -714,6 +746,55 @@ http_interactions:
714
746
  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
715
747
  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
716
748
  School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers"}]}'
717
- http_version:
718
- recorded_at: Fri, 12 Sep 2014 23:25:58 GMT
749
+ http_version:
750
+ recorded_at: Wed, 23 Sep 2015 14:42:21 GMT
751
+ - request:
752
+ method: get
753
+ uri: https://api.clever.com/v1.1/school_admins
754
+ body:
755
+ encoding: US-ASCII
756
+ string: ''
757
+ headers:
758
+ Accept:
759
+ - "*/*; q=0.5, application/xml"
760
+ Accept-Encoding:
761
+ - gzip, deflate
762
+ Authorization:
763
+ - Bearer DEMO_TOKEN
764
+ User-Agent:
765
+ - Ruby
766
+ response:
767
+ status:
768
+ code: 200
769
+ message: OK
770
+ headers:
771
+ Access-Control-Allow-Headers:
772
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
773
+ Access-Control-Allow-Methods:
774
+ - GET,PATCH,POST,DELETE
775
+ Access-Control-Allow-Origin:
776
+ - "*"
777
+ Content-Type:
778
+ - application/json; charset=utf-8
779
+ Date:
780
+ - Wed, 23 Sep 2015 14:42:21 GMT
781
+ X-Powered-By:
782
+ - Express
783
+ X-Ratelimit-Bucket:
784
+ - bearer
785
+ X-Ratelimit-Limit:
786
+ - '1200'
787
+ X-Ratelimit-Remaining:
788
+ - '1193'
789
+ X-Ratelimit-Reset:
790
+ - '1443019399'
791
+ Content-Length:
792
+ - '352'
793
+ Connection:
794
+ - keep-alive
795
+ body:
796
+ encoding: UTF-8
797
+ string: '{"data":[{"data":{"district":"4fd43cc56d11340000000005","email":"thinkerton@example.com","name":{"first":"Think","last":"Thinkerton"},"schools":["530e595026403103360ff9fd"],"staff_id":"1212","title":"Principal","id":"5601b814141fd30001000017"},"uri":"/v1.1/school_admins/5601b814141fd30001000017"}],"links":[{"rel":"self","uri":"/v1.1/school_admins"}]}'
798
+ http_version:
799
+ recorded_at: Wed, 23 Sep 2015 14:42:21 GMT
719
800
  recorded_with: VCR 2.9.3