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,22 +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
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:26 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
+ - '1117'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '69'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- string: ! '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
48
+ encoding: UTF-8
49
+ string: '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
44
50
  http_version:
45
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:27 GMT
46
52
  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,22 +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:05:04 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:25 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
+ - '1120'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '72'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- string: ! '{"count":379,"links":[{"rel":"self","uri":"/v1.1/sections?count=true"}]}'
48
+ encoding: UTF-8
49
+ string: '{"count":379,"links":[{"rel":"self","uri":"/v1.1/sections?count=true"}]}'
44
50
  http_version:
45
- recorded_at: Sat, 13 Sep 2014 00:05:04 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:26 GMT
46
52
  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,22 +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:05:02 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:40:59 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
+ - '1165'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '73'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- string: ! '{"count":1004,"links":[{"rel":"self","uri":"/v1.1/students?count=true"}]}'
48
+ encoding: UTF-8
49
+ string: '{"count":1004,"links":[{"rel":"self","uri":"/v1.1/students?count=true"}]}'
44
50
  http_version:
45
- recorded_at: Sat, 13 Sep 2014 00:05:02 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:00 GMT
46
52
  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,22 +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
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:01 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
+ - '1162'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '71'
39
45
  Connection:
40
46
  - keep-alive
41
47
  body:
42
- encoding: US-ASCII
43
- string: ! '{"count":89,"links":[{"rel":"self","uri":"/v1.1/teachers?count=true"}]}'
48
+ encoding: UTF-8
49
+ string: '{"count":89,"links":[{"rel":"self","uri":"/v1.1/teachers?count=true"}]}'
44
50
  http_version:
45
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:01 GMT
46
52
  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
- - Sat, 13 Sep 2014 00:04:54 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:22 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
+ - '1129'
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:04:54 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:22 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,22 +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
- - Sat, 13 Sep 2014 00:04:54 GMT
76
- Server:
77
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:41:22 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
+ - '1128'
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:04:54 GMT
100
+ recorded_at: Sat, 26 Sep 2015 17:41:22 GMT
89
101
  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,17 +25,23 @@ 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
32
+ - Sat, 26 Sep 2015 17:41:01 GMT
33
33
  Etag:
34
- - ! '"-214069741"'
35
- Server:
36
- - nginx/1.4.7
34
+ - '"438255836"'
37
35
  X-Powered-By:
38
36
  - Express
37
+ X-Ratelimit-Bucket:
38
+ - bearer
39
+ X-Ratelimit-Limit:
40
+ - '1200'
41
+ X-Ratelimit-Remaining:
42
+ - '1161'
43
+ X-Ratelimit-Reset:
44
+ - '1443289303'
39
45
  Content-Length:
40
46
  - '9308'
41
47
  Connection:
@@ -61,7 +67,7 @@ http_interactions:
61
67
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
62
68
  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"}]}'
63
69
  http_version:
64
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
70
+ recorded_at: Sat, 26 Sep 2015 17:41:02 GMT
65
71
  - request:
66
72
  method: get
67
73
  uri: https://api.clever.com/v1.1/events/53ff6e6b322eced00200008e
@@ -70,7 +76,7 @@ http_interactions:
70
76
  string: ''
71
77
  headers:
72
78
  Accept:
73
- - ! '*/*; q=0.5, application/xml'
79
+ - "*/*; q=0.5, application/xml"
74
80
  Accept-Encoding:
75
81
  - gzip, deflate
76
82
  Authorization:
@@ -87,26 +93,32 @@ http_interactions:
87
93
  Access-Control-Allow-Methods:
88
94
  - GET,PATCH,POST,DELETE
89
95
  Access-Control-Allow-Origin:
90
- - ! '*'
96
+ - "*"
91
97
  Content-Type:
92
98
  - application/json; charset=utf-8
93
99
  Date:
94
- - Sat, 13 Sep 2014 00:02:46 GMT
100
+ - Sat, 26 Sep 2015 17:41:02 GMT
95
101
  Etag:
96
- - ! '"-1222430414"'
97
- Server:
98
- - nginx/1.4.7
102
+ - '"-1727740355"'
99
103
  X-Powered-By:
100
104
  - Express
105
+ X-Ratelimit-Bucket:
106
+ - bearer
107
+ X-Ratelimit-Limit:
108
+ - '1200'
109
+ X-Ratelimit-Remaining:
110
+ - '1160'
111
+ X-Ratelimit-Reset:
112
+ - '1443289303'
101
113
  Content-Length:
102
114
  - '1294'
103
115
  Connection:
104
116
  - keep-alive
105
117
  body:
106
- encoding: US-ASCII
107
- string: ! '{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
118
+ encoding: UTF-8
119
+ string: '{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
108
120
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
109
121
  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"},"links":[{"rel":"self","uri":"/v1.1/events/53ff6e6b322eced00200008e"}]}'
110
122
  http_version:
111
- recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
123
+ recorded_at: Sat, 26 Sep 2015 17:41:02 GMT
112
124
  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,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:05:01 GMT
33
- Etag:
34
- - ! '"1408105812"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:40:56 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
+ - '1174'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
39
43
  Content-Length:
40
44
  - '1764'
41
45
  Connection:
42
46
  - keep-alive
43
47
  body:
44
- encoding: US-ASCII
45
- 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
48
+ encoding: UTF-8
49
+ 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
46
50
  5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
47
51
  High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
48
52
  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
@@ -53,7 +57,7 @@ http_interactions:
53
57
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
54
58
  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"}]}'
55
59
  http_version:
56
- recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
60
+ recorded_at: Sat, 26 Sep 2015 17:40:56 GMT
57
61
  - request:
58
62
  method: get
59
63
  uri: https://api.clever.com/v1.1/schools/530e595026403103360ff9ff
@@ -62,7 +66,7 @@ http_interactions:
62
66
  string: ''
63
67
  headers:
64
68
  Accept:
65
- - ! '*/*; q=0.5, application/xml'
69
+ - "*/*; q=0.5, application/xml"
66
70
  Accept-Encoding:
67
71
  - gzip, deflate
68
72
  Authorization:
@@ -79,25 +83,31 @@ http_interactions:
79
83
  Access-Control-Allow-Methods:
80
84
  - GET,PATCH,POST,DELETE
81
85
  Access-Control-Allow-Origin:
82
- - ! '*'
86
+ - "*"
83
87
  Content-Type:
84
88
  - application/json; charset=utf-8
85
89
  Date:
86
- - Sat, 13 Sep 2014 00:05:02 GMT
87
- Server:
88
- - nginx/1.4.7
90
+ - Sat, 26 Sep 2015 17:40:56 GMT
89
91
  X-Powered-By:
90
92
  - Express
93
+ X-Ratelimit-Bucket:
94
+ - bearer
95
+ X-Ratelimit-Limit:
96
+ - '1200'
97
+ X-Ratelimit-Remaining:
98
+ - '1173'
99
+ X-Ratelimit-Reset:
100
+ - '1443289303'
91
101
  Content-Length:
92
102
  - '959'
93
103
  Connection:
94
104
  - keep-alive
95
105
  body:
96
- encoding: US-ASCII
97
- string: ! '{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
106
+ encoding: UTF-8
107
+ string: '{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
98
108
  Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
99
109
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
100
110
  Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9ff"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9ff/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9ff/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9ff/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9ff/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9ff/events"}]}'
101
111
  http_version:
102
- recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
112
+ recorded_at: Sat, 26 Sep 2015 17:40:57 GMT
103
113
  recorded_with: VCR 2.9.3