clever-ruby 0.7.0 → 0.8.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 (83) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +4 -0
  3. data/clever-ruby.gemspec +2 -1
  4. data/lib/clever-ruby/api_operations/list.rb +71 -0
  5. data/lib/clever-ruby/api_operations/nested_list.rb +49 -0
  6. data/lib/clever-ruby/api_operations/page.rb +16 -8
  7. data/lib/clever-ruby/version.rb +1 -1
  8. data/test/data/vcr_cassettes/{district_count.yml → Clever_APIOperations_List/counts_district_properly.yml} +6 -4
  9. data/test/data/vcr_cassettes/{event_count.yml → Clever_APIOperations_List/counts_event_properly.yml} +6 -4
  10. data/test/data/vcr_cassettes/{school_count.yml → Clever_APIOperations_List/counts_school_properly.yml} +6 -4
  11. data/test/data/vcr_cassettes/{section_count.yml → Clever_APIOperations_List/counts_section_properly.yml} +6 -4
  12. data/test/data/vcr_cassettes/{student_count.yml → Clever_APIOperations_List/counts_student_properly.yml} +6 -4
  13. data/test/data/vcr_cassettes/{teacher_count.yml → Clever_APIOperations_List/counts_teacher_properly.yml} +6 -4
  14. data/test/data/vcr_cassettes/{district_find_one.yml → Clever_APIOperations_List/finds_a_single_district.yml} +11 -7
  15. data/test/data/vcr_cassettes/{event_find_one.yml → Clever_APIOperations_List/finds_a_single_event.yml} +11 -7
  16. data/test/data/vcr_cassettes/{school_find_one.yml → Clever_APIOperations_List/finds_a_single_school.yml} +11 -7
  17. data/test/data/vcr_cassettes/{section_find_one.yml → Clever_APIOperations_List/finds_a_single_section.yml} +11 -7
  18. data/test/data/vcr_cassettes/{student_find_one.yml → Clever_APIOperations_List/finds_a_single_student.yml} +11 -7
  19. data/test/data/vcr_cassettes/{teacher_find_one.yml → Clever_APIOperations_List/finds_a_single_teacher.yml} +11 -7
  20. data/test/data/vcr_cassettes/{districts.yml → Clever_APIOperations_List/finds_districts_by_page.yml} +11 -7
  21. data/test/data/vcr_cassettes/{district_find_multiple.yml → Clever_APIOperations_List/finds_districts_with_multiple_ids.yml} +11 -7
  22. data/test/data/vcr_cassettes/{events.yml → Clever_APIOperations_List/finds_events_by_page.yml} +11 -7
  23. data/test/data/vcr_cassettes/{event_find_multiple.yml → Clever_APIOperations_List/finds_events_with_multiple_ids.yml} +11 -7
  24. data/test/data/vcr_cassettes/{schools.yml → Clever_APIOperations_List/finds_schools_by_page.yml} +11 -7
  25. data/test/data/vcr_cassettes/{school_find_multiple.yml → Clever_APIOperations_List/finds_schools_with_multiple_ids.yml} +11 -7
  26. data/test/data/vcr_cassettes/{section_find_by_page.yml → Clever_APIOperations_List/finds_sections_by_page.yml} +26 -16
  27. data/test/data/vcr_cassettes/{section_find_multiple.yml → Clever_APIOperations_List/finds_sections_with_multiple_ids.yml} +11 -7
  28. data/test/data/vcr_cassettes/{students.yml → Clever_APIOperations_List/finds_students_by_page.yml} +61 -37
  29. data/test/data/vcr_cassettes/{student_find_multiple.yml → Clever_APIOperations_List/finds_students_with_multiple_ids.yml} +11 -7
  30. data/test/data/vcr_cassettes/{teachers.yml → Clever_APIOperations_List/finds_teachers_by_page.yml} +11 -7
  31. data/test/data/vcr_cassettes/{teacher_find_multiple.yml → Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml} +11 -7
  32. data/test/data/vcr_cassettes/{district_find_by_page.yml → Clever_APIOperations_List/retrieves_all_district.yml} +11 -7
  33. data/test/data/vcr_cassettes/{event_find_by_page.yml → Clever_APIOperations_List/retrieves_all_event.yml} +11 -7
  34. data/test/data/vcr_cassettes/{school_find_by_page.yml → Clever_APIOperations_List/retrieves_all_school.yml} +11 -7
  35. data/test/data/vcr_cassettes/{sections.yml → Clever_APIOperations_List/retrieves_all_section.yml} +26 -16
  36. data/test/data/vcr_cassettes/{student_find_by_page.yml → Clever_APIOperations_List/retrieves_all_student.yml} +61 -37
  37. data/test/data/vcr_cassettes/{teacher_find_by_page.yml → Clever_APIOperations_List/retrieves_all_teacher.yml} +11 -7
  38. data/test/data/vcr_cassettes/{districts_event_pages.yml → Clever_District/pages_methods/pages_a_district_s_events.yml} +56 -34
  39. data/test/data/vcr_cassettes/{districts_school_pages.yml → Clever_District/pages_methods/pages_a_district_s_schools.yml} +26 -16
  40. data/test/data/vcr_cassettes/{districts_section_pages.yml → Clever_District/pages_methods/pages_a_district_s_sections.yml} +206 -124
  41. data/test/data/vcr_cassettes/{districts_student_pages.yml → Clever_District/pages_methods/pages_a_district_s_students.yml} +121 -73
  42. data/test/data/vcr_cassettes/{districts_teacher_pages.yml → Clever_District/pages_methods/pages_a_district_s_teachers.yml} +61 -37
  43. data/test/data/vcr_cassettes/{district_events.yml → Clever_NestedResource/retrieves_a_district_s_events.yml} +21 -13
  44. data/test/data/vcr_cassettes/{district_schools.yml → Clever_NestedResource/retrieves_a_district_s_schools.yml} +21 -13
  45. data/test/data/vcr_cassettes/{district_sections.yml → Clever_NestedResource/retrieves_a_district_s_sections.yml} +51 -31
  46. data/test/data/vcr_cassettes/{district_students.yml → Clever_NestedResource/retrieves_a_district_s_students.yml} +121 -73
  47. data/test/data/vcr_cassettes/{district_teachers.yml → Clever_NestedResource/retrieves_a_district_s_teachers.yml} +21 -13
  48. data/test/data/vcr_cassettes/{school_district.yml → Clever_NestedResource/retrieves_a_school_s_district.yml} +16 -10
  49. data/test/data/vcr_cassettes/{school_events.yml → Clever_NestedResource/retrieves_a_school_s_events.yml} +21 -13
  50. data/test/data/vcr_cassettes/{school_sections.yml → Clever_NestedResource/retrieves_a_school_s_sections.yml} +31 -19
  51. data/test/data/vcr_cassettes/{school_students.yml → Clever_NestedResource/retrieves_a_school_s_students.yml} +61 -37
  52. data/test/data/vcr_cassettes/{school_teachers.yml → Clever_NestedResource/retrieves_a_school_s_teachers.yml} +21 -13
  53. data/test/data/vcr_cassettes/{section_district.yml → Clever_NestedResource/retrieves_a_section_s_district.yml} +16 -10
  54. data/test/data/vcr_cassettes/{section_events.yml → Clever_NestedResource/retrieves_a_section_s_events.yml} +21 -13
  55. data/test/data/vcr_cassettes/{section_school.yml → Clever_NestedResource/retrieves_a_section_s_school.yml} +16 -10
  56. data/test/data/vcr_cassettes/{section_students.yml → Clever_NestedResource/retrieves_a_section_s_students.yml} +21 -13
  57. data/test/data/vcr_cassettes/{section_teacher.yml → Clever_NestedResource/retrieves_a_section_s_teacher.yml} +16 -10
  58. data/test/data/vcr_cassettes/{student_district.yml → Clever_NestedResource/retrieves_a_student_s_district.yml} +16 -10
  59. data/test/data/vcr_cassettes/{student_events.yml → Clever_NestedResource/retrieves_a_student_s_events.yml} +21 -13
  60. data/test/data/vcr_cassettes/{student_school.yml → Clever_NestedResource/retrieves_a_student_s_school.yml} +16 -10
  61. data/test/data/vcr_cassettes/{student_sections.yml → Clever_NestedResource/retrieves_a_student_s_sections.yml} +21 -13
  62. data/test/data/vcr_cassettes/{student_teachers.yml → Clever_NestedResource/retrieves_a_student_s_teachers.yml} +21 -13
  63. data/test/data/vcr_cassettes/{teacher_district.yml → Clever_NestedResource/retrieves_a_teacher_s_district.yml} +16 -10
  64. data/test/data/vcr_cassettes/{teacher_events.yml → Clever_NestedResource/retrieves_a_teacher_s_events.yml} +21 -13
  65. data/test/data/vcr_cassettes/{teacher_school.yml → Clever_NestedResource/retrieves_a_teacher_s_school.yml} +16 -10
  66. data/test/data/vcr_cassettes/{teacher_sections.yml → Clever_NestedResource/retrieves_a_teacher_s_sections.yml} +21 -13
  67. data/test/data/vcr_cassettes/{teacher_students.yml → Clever_NestedResource/retrieves_a_teacher_s_students.yml} +21 -13
  68. data/test/data/vcr_cassettes/{error_handling.yml → Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml} +16 -10
  69. data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +49 -0
  70. data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +719 -0
  71. data/test/data/vcr_cassettes/last_method/resource/has_working_first_and_last_methods.yml +648 -0
  72. data/test/integration/api_operations/list_test.rb +40 -50
  73. data/test/integration/district_test.rb +13 -15
  74. data/test/integration/error_handling_test.rb +6 -8
  75. data/test/integration/last_test.rb +70 -0
  76. data/test/integration/nested_resource_test.rb +7 -9
  77. data/test/test_helper.rb +3 -0
  78. data/test/unit/clever_test.rb +1 -1
  79. data/test/unit/configuration_test.rb +6 -0
  80. data/test/unit/optional_attributes_test.rb +4 -10
  81. metadata +147 -129
  82. data/test/data/vcr_cassettes/schools_optional_attributes.yml +0 -55
  83. data/test/data/vcr_cassettes/student_teacher.yml +0 -161
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/events
5
+ uri: https://api.clever.com/v1.1/events
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:33 GMT
32
+ - Sat, 13 Sep 2014 00:02:46 GMT
31
33
  Etag:
32
34
  - ! '"-214069741"'
33
35
  Server:
@@ -59,10 +61,10 @@ http_interactions:
59
61
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
60
62
  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"}]}'
61
63
  http_version:
62
- recorded_at: Fri, 12 Sep 2014 20:48:33 GMT
64
+ recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
63
65
  - request:
64
66
  method: get
65
- uri: https://DEMO_KEY:@api.clever.com/v1.1/events/53ff6e6b322eced00200008e
67
+ uri: https://api.clever.com/v1.1/events/53ff6e6b322eced00200008e
66
68
  body:
67
69
  encoding: US-ASCII
68
70
  string: ''
@@ -71,6 +73,8 @@ http_interactions:
71
73
  - ! '*/*; q=0.5, application/xml'
72
74
  Accept-Encoding:
73
75
  - gzip, deflate
76
+ Authorization:
77
+ - Bearer DEMO_TOKEN
74
78
  User-Agent:
75
79
  - Ruby
76
80
  response:
@@ -87,7 +91,7 @@ http_interactions:
87
91
  Content-Type:
88
92
  - application/json; charset=utf-8
89
93
  Date:
90
- - Fri, 12 Sep 2014 20:48:33 GMT
94
+ - Sat, 13 Sep 2014 00:02:46 GMT
91
95
  Etag:
92
96
  - ! '"-1222430414"'
93
97
  Server:
@@ -104,5 +108,5 @@ http_interactions:
104
108
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
105
109
  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"}]}'
106
110
  http_version:
107
- recorded_at: Fri, 12 Sep 2014 20:48:33 GMT
108
- recorded_with: VCR 2.4.0
111
+ recorded_at: Sat, 13 Sep 2014 00:02:46 GMT
112
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/schools
5
+ uri: https://api.clever.com/v1.1/schools
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:32 GMT
32
+ - Sat, 13 Sep 2014 00:05:01 GMT
31
33
  Etag:
32
34
  - ! '"1408105812"'
33
35
  Server:
@@ -51,10 +53,10 @@ http_interactions:
51
53
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
54
  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"}]}'
53
55
  http_version:
54
- recorded_at: Fri, 12 Sep 2014 20:48:32 GMT
56
+ recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
55
57
  - request:
56
58
  method: get
57
- uri: https://DEMO_KEY:@api.clever.com/v1.1/schools/530e595026403103360ff9ff
59
+ uri: https://api.clever.com/v1.1/schools/530e595026403103360ff9ff
58
60
  body:
59
61
  encoding: US-ASCII
60
62
  string: ''
@@ -63,6 +65,8 @@ http_interactions:
63
65
  - ! '*/*; q=0.5, application/xml'
64
66
  Accept-Encoding:
65
67
  - gzip, deflate
68
+ Authorization:
69
+ - Bearer DEMO_TOKEN
66
70
  User-Agent:
67
71
  - Ruby
68
72
  response:
@@ -79,7 +83,7 @@ http_interactions:
79
83
  Content-Type:
80
84
  - application/json; charset=utf-8
81
85
  Date:
82
- - Fri, 12 Sep 2014 20:48:32 GMT
86
+ - Sat, 13 Sep 2014 00:05:02 GMT
83
87
  Server:
84
88
  - nginx/1.4.7
85
89
  X-Powered-By:
@@ -95,5 +99,5 @@ http_interactions:
95
99
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
96
100
  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"}]}'
97
101
  http_version:
98
- recorded_at: Fri, 12 Sep 2014 20:48:32 GMT
99
- recorded_with: VCR 2.4.0
102
+ recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
103
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/sections
5
+ uri: https://api.clever.com/v1.1/sections
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:18 GMT
32
+ - Sat, 13 Sep 2014 00:04:54 GMT
31
33
  Etag:
32
34
  - ! '"1525695678"'
33
35
  Server:
@@ -304,10 +306,10 @@ http_interactions:
304
306
  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
305
307
  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"}]}'
306
308
  http_version:
307
- recorded_at: Fri, 12 Sep 2014 20:48:18 GMT
309
+ recorded_at: Sat, 13 Sep 2014 00:04:54 GMT
308
310
  - request:
309
311
  method: get
310
- uri: https://DEMO_KEY:@api.clever.com/v1.1/sections/530e597a049e75a9262d0b05
312
+ uri: https://api.clever.com/v1.1/sections/530e597a049e75a9262d0b05
311
313
  body:
312
314
  encoding: US-ASCII
313
315
  string: ''
@@ -316,6 +318,8 @@ http_interactions:
316
318
  - ! '*/*; q=0.5, application/xml'
317
319
  Accept-Encoding:
318
320
  - gzip, deflate
321
+ Authorization:
322
+ - Bearer DEMO_TOKEN
319
323
  User-Agent:
320
324
  - Ruby
321
325
  response:
@@ -332,7 +336,7 @@ http_interactions:
332
336
  Content-Type:
333
337
  - application/json; charset=utf-8
334
338
  Date:
335
- - Fri, 12 Sep 2014 20:48:19 GMT
339
+ - Sat, 13 Sep 2014 00:04:54 GMT
336
340
  Etag:
337
341
  - ! '"-1421674075"'
338
342
  Server:
@@ -348,5 +352,5 @@ http_interactions:
348
352
  string: ! '{"data":{"course_name":"Group Guidance","course_number":"905","created":"2014-02-26T21:15:38.011Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.013Z","name":"Group
349
353
  Guidance - 905 - J. Cummings (Section 5)","period":"0","school":"530e595026403103360ff9fd","sis_id":"600","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff27","530e5960049e75a9262cff5b","530e5961049e75a9262cfffb","530e5961049e75a9262d0038","530e5961049e75a9262d0089","530e5962049e75a9262d00ba","530e5962049e75a9262d00e6","530e5963049e75a9262d0181","530e5963049e75a9262d020f","530e5963049e75a9262d021b","530e5964049e75a9262d02d3","530e5965049e75a9262d033c","530e5966049e75a9262d045e","530e5966049e75a9262d0496","530e5966049e75a9262d04a5","530e5968049e75a9262d063c"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c16","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b05"},"links":[{"rel":"self","uri":"/v1.1/sections/530e597a049e75a9262d0b05"},{"rel":"district","uri":"/v1.1/sections/530e597a049e75a9262d0b05/district"},{"rel":"teacher","uri":"/v1.1/sections/530e597a049e75a9262d0b05/teacher"},{"rel":"students","uri":"/v1.1/sections/530e597a049e75a9262d0b05/students"},{"rel":"school","uri":"/v1.1/sections/530e597a049e75a9262d0b05/school"},{"rel":"events","uri":"/v1.1/sections/530e597a049e75a9262d0b05/events"}]}'
350
354
  http_version:
351
- recorded_at: Fri, 12 Sep 2014 20:48:18 GMT
352
- recorded_with: VCR 2.4.0
355
+ recorded_at: Sat, 13 Sep 2014 00:04:54 GMT
356
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/students
5
+ uri: https://api.clever.com/v1.1/students
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:35 GMT
32
+ - Sat, 13 Sep 2014 00:03:48 GMT
31
33
  Etag:
32
34
  - ! '"-1704869160"'
33
35
  Server:
@@ -113,10 +115,10 @@ http_interactions:
113
115
  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
114
116
  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"}]}'
115
117
  http_version:
116
- recorded_at: Fri, 12 Sep 2014 20:48:35 GMT
118
+ recorded_at: Sat, 13 Sep 2014 00:03:48 GMT
117
119
  - request:
118
120
  method: get
119
- uri: https://DEMO_KEY:@api.clever.com/v1.1/students/530e5960049e75a9262cff3c
121
+ uri: https://api.clever.com/v1.1/students/530e5960049e75a9262cff3c
120
122
  body:
121
123
  encoding: US-ASCII
122
124
  string: ''
@@ -125,6 +127,8 @@ http_interactions:
125
127
  - ! '*/*; q=0.5, application/xml'
126
128
  Accept-Encoding:
127
129
  - gzip, deflate
130
+ Authorization:
131
+ - Bearer DEMO_TOKEN
128
132
  User-Agent:
129
133
  - Ruby
130
134
  response:
@@ -141,7 +145,7 @@ http_interactions:
141
145
  Content-Type:
142
146
  - application/json; charset=utf-8
143
147
  Date:
144
- - Fri, 12 Sep 2014 20:48:35 GMT
148
+ - Sat, 13 Sep 2014 00:03:48 GMT
145
149
  Etag:
146
150
  - ! '"310285841"'
147
151
  Server:
@@ -156,5 +160,5 @@ http_interactions:
156
160
  encoding: US-ASCII
157
161
  string: ! '{"data":{"created":"2014-02-26T21:15:12.498Z","credentials":{"district_username":"fredt34","district_password":"ieXahy1j"},"district":"4fd43cc56d11340000000005","dob":"10/30/1998","ell_status":"Y","email":"fred.t@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.748Z","location":{"zip":"10003"},"name":{"first":"Fred","middle":"W","last":"Trantow"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"119622134","state_id":"354252109","student_number":"119622134","id":"530e5960049e75a9262cff3c"},"links":[{"rel":"self","uri":"/v1.1/students/530e5960049e75a9262cff3c"},{"rel":"district","uri":"/v1.1/students/530e5960049e75a9262cff3c/district"},{"rel":"sections","uri":"/v1.1/students/530e5960049e75a9262cff3c/sections"},{"rel":"school","uri":"/v1.1/students/530e5960049e75a9262cff3c/school"},{"rel":"teachers","uri":"/v1.1/students/530e5960049e75a9262cff3c/teachers"},{"rel":"contacts","uri":"/v1.1/students/530e5960049e75a9262cff3c/contacts"},{"rel":"events","uri":"/v1.1/students/530e5960049e75a9262cff3c/events"}]}'
158
162
  http_version:
159
- recorded_at: Fri, 12 Sep 2014 20:48:35 GMT
160
- recorded_with: VCR 2.4.0
163
+ recorded_at: Sat, 13 Sep 2014 00:03:48 GMT
164
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/teachers
5
+ uri: https://api.clever.com/v1.1/teachers
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:41 GMT
32
+ - Sat, 13 Sep 2014 00:03:48 GMT
31
33
  Etag:
32
34
  - ! '"-409931571"'
33
35
  Server:
@@ -131,10 +133,10 @@ http_interactions:
131
133
  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
132
134
  School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers"}]}'
133
135
  http_version:
134
- recorded_at: Fri, 12 Sep 2014 20:48:41 GMT
136
+ recorded_at: Sat, 13 Sep 2014 00:03:48 GMT
135
137
  - request:
136
138
  method: get
137
- uri: https://DEMO_KEY:@api.clever.com/v1.1/teachers/530e5955d50c310f36112bd4
139
+ uri: https://api.clever.com/v1.1/teachers/530e5955d50c310f36112bd4
138
140
  body:
139
141
  encoding: US-ASCII
140
142
  string: ''
@@ -143,6 +145,8 @@ http_interactions:
143
145
  - ! '*/*; q=0.5, application/xml'
144
146
  Accept-Encoding:
145
147
  - gzip, deflate
148
+ Authorization:
149
+ - Bearer DEMO_TOKEN
146
150
  User-Agent:
147
151
  - Ruby
148
152
  response:
@@ -159,7 +163,7 @@ http_interactions:
159
163
  Content-Type:
160
164
  - application/json; charset=utf-8
161
165
  Date:
162
- - Fri, 12 Sep 2014 20:48:42 GMT
166
+ - Sat, 13 Sep 2014 00:03:49 GMT
163
167
  Server:
164
168
  - nginx/1.4.7
165
169
  X-Powered-By:
@@ -173,5 +177,5 @@ http_interactions:
173
177
  string: ! '{"data":{"created":"2014-02-26T21:15:01.138Z","credentials":{"district_username":"daniela.raynor","district_password":"quahse5Ch"},"district":"4fd43cc56d11340000000005","email":"raynor_daniela@example.net","last_modified":"2014-02-26T21:15:01.144Z","name":{"first":"Daniela","middle":"F","last":"Raynor"},"school":"530e595026403103360ff9fe","sis_id":"19","teacher_number":"493218","title":"Grade
174
178
  5 Common Branch Teacher","id":"530e5955d50c310f36112bd4"},"links":[{"rel":"self","uri":"/v1.1/teachers/530e5955d50c310f36112bd4"},{"rel":"district","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/district"},{"rel":"school","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/school"},{"rel":"students","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/students"},{"rel":"sections","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/sections"},{"rel":"grade_levels","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/grade_levels"},{"rel":"events","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/events"}]}'
175
179
  http_version:
176
- recorded_at: Fri, 12 Sep 2014 20:48:41 GMT
177
- recorded_with: VCR 2.4.0
180
+ recorded_at: Sat, 13 Sep 2014 00:03:49 GMT
181
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
5
+ uri: https://api.clever.com/v1.1/districts
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:24 GMT
32
+ - Sat, 13 Sep 2014 00:05:05 GMT
31
33
  Server:
32
34
  - nginx/1.4.7
33
35
  X-Powered-By:
@@ -40,10 +42,10 @@ http_interactions:
40
42
  encoding: US-ASCII
41
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"}]}'
42
44
  http_version:
43
- recorded_at: Fri, 12 Sep 2014 20:48:24 GMT
45
+ recorded_at: Sat, 13 Sep 2014 00:05:05 GMT
44
46
  - request:
45
47
  method: get
46
- uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?count=true
48
+ uri: https://api.clever.com/v1.1/districts?count=true
47
49
  body:
48
50
  encoding: US-ASCII
49
51
  string: ''
@@ -52,6 +54,8 @@ http_interactions:
52
54
  - ! '*/*; q=0.5, application/xml'
53
55
  Accept-Encoding:
54
56
  - gzip, deflate
57
+ Authorization:
58
+ - Bearer DEMO_TOKEN
55
59
  User-Agent:
56
60
  - Ruby
57
61
  response:
@@ -68,7 +72,7 @@ http_interactions:
68
72
  Content-Type:
69
73
  - application/json; charset=utf-8
70
74
  Date:
71
- - Fri, 12 Sep 2014 20:48:25 GMT
75
+ - Sat, 13 Sep 2014 00:05:05 GMT
72
76
  Server:
73
77
  - nginx/1.4.7
74
78
  X-Powered-By:
@@ -81,5 +85,5 @@ http_interactions:
81
85
  encoding: US-ASCII
82
86
  string: ! '{"count":1,"links":[{"rel":"self","uri":"/v1.1/districts?count=true"}]}'
83
87
  http_version:
84
- recorded_at: Fri, 12 Sep 2014 20:48:25 GMT
85
- recorded_with: VCR 2.4.0
88
+ recorded_at: Sat, 13 Sep 2014 00:05:05 GMT
89
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?limit=20
5
+ uri: https://api.clever.com/v1.1/districts?limit=20
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:31 GMT
32
+ - Sat, 13 Sep 2014 00:03:49 GMT
31
33
  Server:
32
34
  - nginx/1.4.7
33
35
  X-Powered-By:
@@ -40,10 +42,10 @@ http_interactions:
40
42
  encoding: US-ASCII
41
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?limit=20"}]}'
42
44
  http_version:
43
- recorded_at: Fri, 12 Sep 2014 20:48:31 GMT
45
+ recorded_at: Sat, 13 Sep 2014 00:03:49 GMT
44
46
  - request:
45
47
  method: get
46
- uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?where=%7B%22_id%22:%7B%22$in%22:%5B%224fd43cc56d11340000000005%22%5D%7D%7D
48
+ uri: https://api.clever.com/v1.1/districts?where=%7B%22_id%22:%7B%22$in%22:%5B%224fd43cc56d11340000000005%22%5D%7D%7D
47
49
  body:
48
50
  encoding: US-ASCII
49
51
  string: ''
@@ -52,6 +54,8 @@ http_interactions:
52
54
  - ! '*/*; q=0.5, application/xml'
53
55
  Accept-Encoding:
54
56
  - gzip, deflate
57
+ Authorization:
58
+ - Bearer DEMO_TOKEN
55
59
  User-Agent:
56
60
  - Ruby
57
61
  response:
@@ -68,7 +72,7 @@ http_interactions:
68
72
  Content-Type:
69
73
  - application/json; charset=utf-8
70
74
  Date:
71
- - Fri, 12 Sep 2014 20:48:31 GMT
75
+ - Sat, 13 Sep 2014 00:03:49 GMT
72
76
  Server:
73
77
  - nginx/1.4.7
74
78
  X-Powered-By:
@@ -81,5 +85,5 @@ http_interactions:
81
85
  encoding: US-ASCII
82
86
  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?where=%7B%22_id%22:%7B%22$in%22:[%224fd43cc56d11340000000005%22]%7D%7D"}]}'
83
87
  http_version:
84
- recorded_at: Fri, 12 Sep 2014 20:48:31 GMT
85
- recorded_with: VCR 2.4.0
88
+ recorded_at: Sat, 13 Sep 2014 00:03:49 GMT
89
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://DEMO_KEY:@api.clever.com/v1.1/events
5
+ uri: https://api.clever.com/v1.1/events
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
14
16
  User-Agent:
15
17
  - Ruby
16
18
  response:
@@ -27,7 +29,7 @@ http_interactions:
27
29
  Content-Type:
28
30
  - application/json; charset=utf-8
29
31
  Date:
30
- - Fri, 12 Sep 2014 20:48:33 GMT
32
+ - Sat, 13 Sep 2014 00:03:48 GMT
31
33
  Etag:
32
34
  - ! '"-214069741"'
33
35
  Server:
@@ -59,10 +61,10 @@ http_interactions:
59
61
  Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
60
62
  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"}]}'
61
63
  http_version:
62
- recorded_at: Fri, 12 Sep 2014 20:48:33 GMT
64
+ recorded_at: Sat, 13 Sep 2014 00:03:48 GMT
63
65
  - request:
64
66
  method: get
65
- uri: https://DEMO_KEY:@api.clever.com/v1.1/events?count=true
67
+ uri: https://api.clever.com/v1.1/events?count=true
66
68
  body:
67
69
  encoding: US-ASCII
68
70
  string: ''
@@ -71,6 +73,8 @@ http_interactions:
71
73
  - ! '*/*; q=0.5, application/xml'
72
74
  Accept-Encoding:
73
75
  - gzip, deflate
76
+ Authorization:
77
+ - Bearer DEMO_TOKEN
74
78
  User-Agent:
75
79
  - Ruby
76
80
  response:
@@ -87,7 +91,7 @@ http_interactions:
87
91
  Content-Type:
88
92
  - application/json; charset=utf-8
89
93
  Date:
90
- - Fri, 12 Sep 2014 20:48:33 GMT
94
+ - Sat, 13 Sep 2014 00:03:48 GMT
91
95
  Server:
92
96
  - nginx/1.4.7
93
97
  X-Powered-By:
@@ -100,5 +104,5 @@ http_interactions:
100
104
  encoding: US-ASCII
101
105
  string: ! '{"count":7,"links":[{"rel":"self","uri":"/v1.1/events?count=true"}]}'
102
106
  http_version:
103
- recorded_at: Fri, 12 Sep 2014 20:48:33 GMT
104
- recorded_with: VCR 2.4.0
107
+ recorded_at: Sat, 13 Sep 2014 00:03:48 GMT
108
+ recorded_with: VCR 2.9.3