wowzer 0.0.4 → 0.0.5

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 (35) hide show
  1. data/fixtures/vcr_cassettes/application.yml +99 -0
  2. data/fixtures/vcr_cassettes/application_response.yml +99 -0
  3. data/fixtures/vcr_cassettes/candidate.yml +100 -0
  4. data/fixtures/vcr_cassettes/create_application.yml +249 -0
  5. data/fixtures/vcr_cassettes/create_notification.yml +97 -0
  6. data/fixtures/vcr_cassettes/delete_application.yml +143 -0
  7. data/fixtures/vcr_cassettes/delete_notification.yml +143 -0
  8. data/fixtures/vcr_cassettes/interview.yml +1 -1
  9. data/fixtures/vcr_cassettes/interview_applications.yml +204 -0
  10. data/fixtures/vcr_cassettes/interviews.yml +2 -2
  11. data/fixtures/vcr_cassettes/notification.yml +51 -0
  12. data/fixtures/vcr_cassettes/notifications.yml +99 -0
  13. data/fixtures/vcr_cassettes/resend_application.yml +143 -0
  14. data/fixtures/vcr_cassettes/resend_application_not_allowed.yml +99 -0
  15. data/fixtures/vcr_cassettes/update_notification.yml +47 -0
  16. data/lib/wowzer/application.rb +19 -13
  17. data/lib/wowzer/application_response.rb +32 -0
  18. data/lib/wowzer/candidate.rb +7 -0
  19. data/lib/wowzer/exception.rb +6 -0
  20. data/lib/wowzer/interview.rb +11 -15
  21. data/lib/wowzer/notification.rb +21 -0
  22. data/lib/wowzer/resource.rb +68 -0
  23. data/lib/wowzer/version.rb +1 -1
  24. data/lib/wowzer.rb +6 -1
  25. data/spec/lib/wowzer/application_response_spec.rb +17 -0
  26. data/spec/lib/wowzer/application_spec.rb +54 -0
  27. data/spec/lib/wowzer/candidate_spec.rb +13 -0
  28. data/spec/lib/wowzer/interview_spec.rb +46 -10
  29. data/spec/lib/wowzer/notifications_spec.rb +88 -0
  30. data/spec/spec_helper.rb +2 -2
  31. data/wowzer.gemspec +2 -3
  32. metadata +30 -9
  33. data/Gemfile.lock +0 -139
  34. data/spec/internal/config/database.yml +0 -3
  35. data/spec/internal/db/wowzer_test.sqlite +0 -0
@@ -0,0 +1,143 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 10 Apr 2013 05:38:20 GMT
25
+ Server:
26
+ - Apache/2.2.17 (Ubuntu)
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - ! '"3c8cad57a3f3b92deec5b055735843aa"'
33
+ Cache-Control:
34
+ - must-revalidate, private, max-age=0
35
+ X-Rack-Cache:
36
+ - miss
37
+ Set-Cookie:
38
+ - _novia_secure_session=4a802db21fbe9b36c44901c3e1ba7428; domain=wowzerapp.com;
39
+ path=/; HttpOnly; secure
40
+ Status:
41
+ - '200'
42
+ Content-Length:
43
+ - '520'
44
+ Content-Type:
45
+ - application/json; charset=utf-8
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ! '{"_links":{"self":{"href":"https://api.wowzerapp.com"},"curie":{"name":"wowzer","templated":true,"href":"https://api.wowzerapp.com/docs/wowzer:{rel}"},"wowzer:interviews":{"href":"https://api.wowzerapp.com/hypermedia/interviews"},"wowzer:candidate":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/candidates{/id}"},"wowzer:application":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/applications{/id}"},"wowzer:notifications":{"href":"https://api.wowzerapp.com/hypermedia/notifications"}}}'
49
+ http_version: !!null
50
+ recorded_at: Wed, 10 Apr 2013 05:38:10 GMT
51
+ - request:
52
+ method: get
53
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/applications/515e9b44572fc05e230e815f
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
57
+ headers:
58
+ Content-Type:
59
+ - application/json
60
+ Accept:
61
+ - application/json
62
+ User-Agent:
63
+ - Faraday v0.8.7
64
+ Accept-Encoding:
65
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Date:
72
+ - Wed, 10 Apr 2013 05:38:21 GMT
73
+ Server:
74
+ - Apache/2.2.17 (Ubuntu)
75
+ Strict-Transport-Security:
76
+ - max-age=31536000
77
+ X-Ua-Compatible:
78
+ - IE=Edge,chrome=1
79
+ Etag:
80
+ - ! '"c67b94a840934b71c01d5b864a041edd"'
81
+ Cache-Control:
82
+ - must-revalidate, private, max-age=0
83
+ X-Rack-Cache:
84
+ - miss
85
+ Set-Cookie:
86
+ - _novia_secure_session=8deb615893f9a194ede0260bdf1dd8a6; domain=wowzerapp.com;
87
+ path=/; HttpOnly; secure
88
+ Status:
89
+ - '200'
90
+ Content-Length:
91
+ - '597'
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ! '{"id":"515e9b44572fc05e230e815f","date_sent":"2013-04-05T09:37:08+00:00","date_updated":"2013-04-10T05:34:39Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515e9b44572fc05e230e815f"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515d7cd92478f6450d0000fa"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/51540a07f4484b73c400003e"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515e9b44572fc05e230e815f/resend"}}}'
97
+ http_version: !!null
98
+ recorded_at: Wed, 10 Apr 2013 05:38:11 GMT
99
+ - request:
100
+ method: delete
101
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/applications/515e9b44572fc05e230e815f
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ Content-Type:
107
+ - application/json
108
+ Accept:
109
+ - application/json
110
+ User-Agent:
111
+ - Faraday v0.8.7
112
+ response:
113
+ status:
114
+ code: 204
115
+ message: No Content
116
+ headers:
117
+ Date:
118
+ - Wed, 10 Apr 2013 05:38:22 GMT
119
+ Server:
120
+ - Apache/2.2.17 (Ubuntu)
121
+ Strict-Transport-Security:
122
+ - max-age=31536000
123
+ X-Ua-Compatible:
124
+ - IE=Edge,chrome=1
125
+ Cache-Control:
126
+ - no-cache
127
+ X-Rack-Cache:
128
+ - invalidate, pass
129
+ Set-Cookie:
130
+ - _novia_secure_session=b20c884114f2d75f3958b1bdae14e583; domain=wowzerapp.com;
131
+ path=/; HttpOnly; secure
132
+ Status:
133
+ - '204'
134
+ Content-Length:
135
+ - '0'
136
+ Content-Type:
137
+ - text/plain
138
+ body:
139
+ encoding: US-ASCII
140
+ string: ''
141
+ http_version: !!null
142
+ recorded_at: Wed, 10 Apr 2013 05:38:12 GMT
143
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,143 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 03 Apr 2013 14:35:57 GMT
25
+ Server:
26
+ - Apache/2.2.17 (Ubuntu)
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - ! '"3c8cad57a3f3b92deec5b055735843aa"'
33
+ Cache-Control:
34
+ - must-revalidate, private, max-age=0
35
+ X-Rack-Cache:
36
+ - miss
37
+ Set-Cookie:
38
+ - _novia_secure_session=976379206a118c10e40c1fc6e72cccfa; domain=wowzerapp.com;
39
+ path=/; HttpOnly; secure
40
+ Status:
41
+ - '200'
42
+ Content-Length:
43
+ - '520'
44
+ Content-Type:
45
+ - application/json; charset=utf-8
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ! '{"_links":{"self":{"href":"https://api.wowzerapp.com"},"curie":{"name":"wowzer","templated":true,"href":"https://api.wowzerapp.com/docs/wowzer:{rel}"},"wowzer:interviews":{"href":"https://api.wowzerapp.com/hypermedia/interviews"},"wowzer:candidate":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/candidates{/id}"},"wowzer:application":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/applications{/id}"},"wowzer:notifications":{"href":"https://api.wowzerapp.com/hypermedia/notifications"}}}'
49
+ http_version: !!null
50
+ recorded_at: Wed, 03 Apr 2013 14:31:17 GMT
51
+ - request:
52
+ method: get
53
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/notifications
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
57
+ headers:
58
+ Content-Type:
59
+ - application/json
60
+ Accept:
61
+ - application/json
62
+ User-Agent:
63
+ - Faraday v0.8.7
64
+ Accept-Encoding:
65
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Date:
72
+ - Wed, 03 Apr 2013 14:35:58 GMT
73
+ Server:
74
+ - Apache/2.2.17 (Ubuntu)
75
+ Strict-Transport-Security:
76
+ - max-age=31536000
77
+ X-Ua-Compatible:
78
+ - IE=Edge,chrome=1
79
+ Etag:
80
+ - ! '"3e18b2cb6f573010dd1133eaa6e48f9d"'
81
+ Cache-Control:
82
+ - must-revalidate, private, max-age=0
83
+ X-Rack-Cache:
84
+ - miss
85
+ Set-Cookie:
86
+ - _novia_secure_session=41e6b3d8a62bad7a03ff38d5a3165144; domain=wowzerapp.com;
87
+ path=/; HttpOnly; secure
88
+ Status:
89
+ - '200'
90
+ Content-Length:
91
+ - '396'
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ! '{"_embedded":{"wowzer:notification":[{"id":"515c1d39572fc05e2306a170","username":"Bob","password":"Harper","callback_url":"https://sample.com/endpoint2","target":"application_status","active":false,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/notifications/515c1d39572fc05e2306a170"}}}]},"count":1,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/notifications"}}}'
97
+ http_version: !!null
98
+ recorded_at: Wed, 03 Apr 2013 14:31:19 GMT
99
+ - request:
100
+ method: delete
101
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/notifications/515c1d39572fc05e2306a170
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ Content-Type:
107
+ - application/json
108
+ Accept:
109
+ - application/json
110
+ User-Agent:
111
+ - Faraday v0.8.7
112
+ response:
113
+ status:
114
+ code: 204
115
+ message: No Content
116
+ headers:
117
+ Date:
118
+ - Wed, 03 Apr 2013 14:35:59 GMT
119
+ Server:
120
+ - Apache/2.2.17 (Ubuntu)
121
+ Strict-Transport-Security:
122
+ - max-age=31536000
123
+ X-Ua-Compatible:
124
+ - IE=Edge,chrome=1
125
+ Cache-Control:
126
+ - no-cache
127
+ X-Rack-Cache:
128
+ - invalidate, pass
129
+ Set-Cookie:
130
+ - _novia_secure_session=ecdcc40f10728c9c047e1389bb127850; domain=wowzerapp.com;
131
+ path=/; HttpOnly; secure
132
+ Status:
133
+ - '204'
134
+ Content-Length:
135
+ - '0'
136
+ Content-Type:
137
+ - text/plain
138
+ body:
139
+ encoding: US-ASCII
140
+ string: ''
141
+ http_version: !!null
142
+ recorded_at: Wed, 03 Apr 2013 14:31:20 GMT
143
+ recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://foo:bar@api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -0,0 +1,204 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 03 Apr 2013 09:23:00 GMT
25
+ Server:
26
+ - Apache/2.2.17 (Ubuntu)
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - ! '"3c8cad57a3f3b92deec5b055735843aa"'
33
+ Cache-Control:
34
+ - must-revalidate, private, max-age=0
35
+ X-Rack-Cache:
36
+ - miss
37
+ Set-Cookie:
38
+ - _novia_secure_session=2c7d6f6287897e6ea041adbd7abc09fa; domain=wowzerapp.com;
39
+ path=/; HttpOnly; secure
40
+ Status:
41
+ - '200'
42
+ Content-Length:
43
+ - '520'
44
+ Content-Type:
45
+ - application/json; charset=utf-8
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ! '{"_links":{"self":{"href":"https://api.wowzerapp.com"},"curie":{"name":"wowzer","templated":true,"href":"https://api.wowzerapp.com/docs/wowzer:{rel}"},"wowzer:interviews":{"href":"https://api.wowzerapp.com/hypermedia/interviews"},"wowzer:candidate":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/candidates{/id}"},"wowzer:application":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/applications{/id}"},"wowzer:notifications":{"href":"https://api.wowzerapp.com/hypermedia/notifications"}}}'
49
+ http_version: !!null
50
+ recorded_at: Wed, 03 Apr 2013 09:18:21 GMT
51
+ - request:
52
+ method: get
53
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
57
+ headers:
58
+ Content-Type:
59
+ - application/json
60
+ Accept:
61
+ - application/json
62
+ User-Agent:
63
+ - Faraday v0.8.7
64
+ Accept-Encoding:
65
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Date:
72
+ - Wed, 03 Apr 2013 09:23:01 GMT
73
+ Server:
74
+ - Apache/2.2.17 (Ubuntu)
75
+ Strict-Transport-Security:
76
+ - max-age=31536000
77
+ X-Ua-Compatible:
78
+ - IE=Edge,chrome=1
79
+ Etag:
80
+ - ! '"4080238f8d975cf9b3b1f96613ce4166"'
81
+ Cache-Control:
82
+ - must-revalidate, private, max-age=0
83
+ X-Rack-Cache:
84
+ - miss
85
+ Set-Cookie:
86
+ - _novia_secure_session=78b81bc7e8aba99f0a13911881679acb; domain=wowzerapp.com;
87
+ path=/; HttpOnly; secure
88
+ Status:
89
+ - '200'
90
+ Content-Length:
91
+ - '2945'
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ! '{"count":5,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews"},"wowzer:interview":{"templated":true,"href":"https://api.wowzerapp.com/hypermedia/interviews{/id}"}},"_embedded":{"wowzer:interview":[{"id":"51519ba8f4484b4bae000153","title":"Test","date_sent":"2013-03-26T13:03:13+00:00","status":"active","description":"Test","open_for_new_applications":true,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153/applications"},"wowzer:applications:bulk":{"href":"https://api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153/applications/bulk_create"}}},{"id":"515ae2ff2478f609f8001816","title":"Tutor
97
+ online interview","date_sent":"2013-04-02T15:43:56+00:00","status":"active","description":"Welcome
98
+ to our Teach Me 2 interview!","open_for_new_applications":true,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515ae2ff2478f609f8001816"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515ae2ff2478f609f8001816/applications"},"wowzer:applications:bulk":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515ae2ff2478f609f8001816/applications/bulk_create"}}},{"id":"515adb19572fc05e2303e25c","title":"Tutor
99
+ Application Interview","date_sent":"2013-04-03T09:06:10+00:00","status":"active","description":"Welcome
100
+ to the online interview to become a tutor with Teach Me 2! ","open_for_new_applications":true,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515adb19572fc05e2303e25c"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515adb19572fc05e2303e25c/applications"},"wowzer:applications:bulk":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515adb19572fc05e2303e25c/applications/bulk_create"}}},{"id":"515abc2a2478f6796e00013a","title":"Tutor
101
+ Application Interview","status":"draft","description":"Welcome to the online
102
+ interview to become a tutor with Teach Me 2! ","open_for_new_applications":false,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515abc2a2478f6796e00013a"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515abc2a2478f6796e00013a/applications"}}},{"id":"5154134c572fc07efc002341","title":"Tutor
103
+ Application Interview","date_sent":"2013-03-28T10:15:00+00:00","status":"active","description":"Welcome
104
+ to the online interview to become a tutor with Teach Me 2! ","open_for_new_applications":true,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341/applications"},"wowzer:applications:bulk":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341/applications/bulk_create"}}}]}}'
105
+ http_version: !!null
106
+ recorded_at: Wed, 03 Apr 2013 09:18:21 GMT
107
+ - request:
108
+ method: get
109
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ''
113
+ headers:
114
+ Content-Type:
115
+ - application/json
116
+ Accept:
117
+ - application/json
118
+ User-Agent:
119
+ - Faraday v0.8.7
120
+ Accept-Encoding:
121
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
122
+ response:
123
+ status:
124
+ code: 200
125
+ message: OK
126
+ headers:
127
+ Date:
128
+ - Wed, 03 Apr 2013 09:23:02 GMT
129
+ Server:
130
+ - Apache/2.2.17 (Ubuntu)
131
+ Strict-Transport-Security:
132
+ - max-age=31536000
133
+ X-Ua-Compatible:
134
+ - IE=Edge,chrome=1
135
+ Etag:
136
+ - ! '"a91ebae499c9a63d521ef734c4ec4a03"'
137
+ Cache-Control:
138
+ - must-revalidate, private, max-age=0
139
+ X-Rack-Cache:
140
+ - miss
141
+ Set-Cookie:
142
+ - _novia_secure_session=b1e8808c3a0a260910f6db9817712718; domain=wowzerapp.com;
143
+ path=/; HttpOnly; secure
144
+ Status:
145
+ - '200'
146
+ Content-Length:
147
+ - '603'
148
+ Content-Type:
149
+ - application/json; charset=utf-8
150
+ body:
151
+ encoding: US-ASCII
152
+ string: ! '{"id":"5154134c572fc07efc002341","title":"Tutor Application Interview","date_sent":"2013-03-28T10:15:00+00:00","status":"active","description":"Welcome
153
+ to the online interview to become a tutor with Teach Me 2! ","open_for_new_applications":true,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:applications":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341/applications"},"wowzer:applications:bulk":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341/applications/bulk_create"}}}'
154
+ http_version: !!null
155
+ recorded_at: Wed, 03 Apr 2013 09:18:22 GMT
156
+ - request:
157
+ method: get
158
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341/applications
159
+ body:
160
+ encoding: US-ASCII
161
+ string: ''
162
+ headers:
163
+ Content-Type:
164
+ - application/json
165
+ Accept:
166
+ - application/json
167
+ User-Agent:
168
+ - Faraday v0.8.7
169
+ Accept-Encoding:
170
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
171
+ response:
172
+ status:
173
+ code: 200
174
+ message: OK
175
+ headers:
176
+ Date:
177
+ - Wed, 03 Apr 2013 09:23:03 GMT
178
+ Server:
179
+ - Apache/2.2.17 (Ubuntu)
180
+ Strict-Transport-Security:
181
+ - max-age=31536000
182
+ X-Ua-Compatible:
183
+ - IE=Edge,chrome=1
184
+ Etag:
185
+ - ! '"62670d72f7ffc1f4faec5926776b7a75"'
186
+ Cache-Control:
187
+ - must-revalidate, private, max-age=0
188
+ X-Rack-Cache:
189
+ - miss
190
+ Set-Cookie:
191
+ - _novia_secure_session=be278797b0179dd160d582d8cb7d3a9b; domain=wowzerapp.com;
192
+ path=/; HttpOnly; secure
193
+ Status:
194
+ - '200'
195
+ Content-Length:
196
+ - '14235'
197
+ Content-Type:
198
+ - application/json; charset=utf-8
199
+ body:
200
+ encoding: US-ASCII
201
+ string: ! '{"count":112,"_links":{"self":{"href":"/hypermedia/interviews/5154134c572fc07efc002341/applications"},"first":{"href":"/hypermedia/interviews/5154134c572fc07efc002341/applications?page=1&per_page=20"},"last":{"href":"/hypermedia/interviews/5154134c572fc07efc002341/applications?page=6&per_page=20"},"next":{"href":"/hypermedia/interviews/5154134c572fc07efc002341/applications?page=2&per_page=20"},"wowzer:interview":{"href":"/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:application":{"templated":true,"href":"/hypermedia/applications{/id}"},"wowzer:applications:status":{"templated":true,"href":"/hypermedia/applications/{ids}/reset"},"wowzer:applications:invitation":{"templated":true,"href":"/hypermedia/applications/{ids}/resend"}},"_embedded":{"wowzer:application":[{"id":"515420a8572fc0193d00cfdf","date_sent":"2013-03-28T10:51:38+00:00","date_completed":"2013-04-02T16:05:32+00:00","date_updated":"2013-04-03T08:35:24Z","evaluation_status":"pending","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a8572fc0193d00cfdf"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cee4"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515420a8572fc0193d00cfdf/answers/515af125f4484b065c002e6a","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515420a8572fc0193d00cfdf/answers/515af125f4484b065c002e6a?auth_token=f8155103baf9e6cda252b4d8e274e0ff&layout=iframe","name":"iframe"}]}},{"id":"515af03ff4484b065c002e49","date_sent":"2013-04-02T14:50:39+00:00","date_completed":"2013-04-02T15:16:01+00:00","date_updated":"2013-04-03T08:24:26Z","evaluation_status":"pending","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515af03ff4484b065c002e49"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515af03ff4484b065c002e48"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515af03ff4484b065c002e49/answers/515af592f4484b0abe000018","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515af03ff4484b065c002e49/answers/515af592f4484b0abe000018?auth_token=d21a1804a105e20491ebe3f2370ff467&layout=iframe","name":"iframe"}]}},{"id":"515420aa572fc0193d00d018","date_sent":"2013-03-28T10:51:41+00:00","date_completed":"2013-04-01T14:31:00+00:00","date_updated":"2013-04-02T11:30:05Z","evaluation_status":"approved","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420aa572fc0193d00d018"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cef7"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515420aa572fc0193d00d018/answers/51599892f4484b6825000050","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515420aa572fc0193d00d018/answers/51599892f4484b6825000050?auth_token=b139b5bff889fcc07cfe94753549f2ea&layout=iframe","name":"iframe"}]}},{"id":"5158a054f4484b08ab00182d","date_sent":"2013-03-31T20:45:09+00:00","date_completed":"2013-03-31T21:24:20+00:00","date_updated":"2013-04-02T10:25:07Z","evaluation_status":"approved","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/5158a054f4484b08ab00182d"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/5158a054f4484b08ab00182c"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/5158a054f4484b08ab00182d/answers/5158a78a572fc05e23002bd0","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/5158a054f4484b08ab00182d/answers/5158a78a572fc05e23002bd0?auth_token=0fac05d47bfde81c3070ed96462915b6&layout=iframe","name":"iframe"}]}},{"id":"515420a7572fc0193d00cfbe","date_sent":"2013-03-28T10:51:37+00:00","date_completed":"2013-03-31T17:07:09+00:00","date_updated":"2013-04-02T10:25:11Z","evaluation_status":"approved","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a7572fc0193d00cfbe"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00ced9"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515420a7572fc0193d00cfbe/answers/51586bbc572fc05e230005db","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515420a7572fc0193d00cfbe/answers/51586bbc572fc05e230005db?auth_token=94a5c82bd8d730330e5573d3f112cc1c&layout=iframe","name":"iframe"}]}},{"id":"515ad9b7f4484b7c74000033","date_sent":"2013-04-02T16:05:26+00:00","date_updated":"2013-04-02T16:08:07Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515ad9b7f4484b7c74000033"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515ad9b7f4484b7c7400002a"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515ad9b7f4484b7c74000033/resend"}}},{"id":"515420a1572fc0193d00cf19","date_sent":"2013-04-02T16:05:08+00:00","date_updated":"2013-04-02T16:05:26Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf19"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cea2"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf19/resend"}}},{"id":"515420a1572fc0193d00cf1c","date_sent":"2013-04-02T16:05:08+00:00","date_updated":"2013-04-02T16:07:47Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf1c"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cea3"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf1c/resend"}}},{"id":"515420a5572fc0193d00cf97","date_sent":"2013-04-02T16:05:17+00:00","date_updated":"2013-04-02T16:07:59Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a5572fc0193d00cf97"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cecc"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a5572fc0193d00cf97/resend"}}},{"id":"515420a2572fc0193d00cf40","date_sent":"2013-04-02T16:05:12+00:00","date_updated":"2013-04-02T16:09:48Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf40"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00ceaf"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf40/resend"}}},{"id":"515420a5572fc0193d00cf9a","date_sent":"2013-03-28T10:51:35+00:00","date_updated":"2013-03-31T08:54:38Z","evaluation_status":"pending","status":"started","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a5572fc0193d00cf9a"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cecd"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a5572fc0193d00cf9a/resend"}}},{"id":"515420a6572fc0193d00cf9d","date_sent":"2013-03-28T10:51:35+00:00","date_updated":"2013-03-29T00:53:26Z","evaluation_status":"pending","status":"started","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a6572fc0193d00cf9d"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cece"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a6572fc0193d00cf9d/resend"}}},{"id":"515420a2572fc0193d00cf43","date_sent":"2013-03-28T10:51:30+00:00","date_updated":"2013-04-02T14:26:13Z","evaluation_status":"pending","status":"started","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf43"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00ceb0"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf43/resend"}}},{"id":"515420a6572fc0193d00cfa0","date_sent":"2013-04-02T16:05:18+00:00","date_updated":"2013-04-02T16:05:32Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a6572fc0193d00cfa0"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cecf"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a6572fc0193d00cfa0/resend"}}},{"id":"515420a1572fc0193d00cf1f","date_sent":"2013-04-02T16:05:09+00:00","date_updated":"2013-04-02T16:09:46Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf1f"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cea4"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf1f/resend"}}},{"id":"515420a2572fc0193d00cf46","date_sent":"2013-04-02T16:05:12+00:00","date_updated":"2013-04-02T16:09:52Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf46"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00ceb1"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a2572fc0193d00cf46/resend"}}},{"id":"515420a1572fc0193d00cf22","date_sent":"2013-04-02T16:05:10+00:00","date_updated":"2013-04-02T16:07:51Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf22"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cea5"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf22/resend"}}},{"id":"515420a4572fc0193d00cf6a","date_sent":"2013-03-28T10:51:32+00:00","date_updated":"2013-03-28T10:51:32Z","evaluation_status":"pending","status":"sent","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a4572fc0193d00cf6a"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cebd"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a4572fc0193d00cf6a/resend"}}},{"id":"515420a3572fc0193d00cf49","date_sent":"2013-03-28T10:51:30+00:00","date_updated":"2013-03-28T10:47:56Z","evaluation_status":"pending","status":"bounced","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a3572fc0193d00cf49"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00ceb2"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a3572fc0193d00cf49/resend"}}},{"id":"515420a1572fc0193d00cf25","date_sent":"2013-04-02T16:05:10+00:00","date_updated":"2013-04-02T16:09:56Z","evaluation_status":"pending","status":"delivered","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf25"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515420a0572fc0193d00cea6"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515420a1572fc0193d00cf25/resend"}}}]}}'
202
+ http_version: !!null
203
+ recorded_at: Wed, 03 Apr 2013 09:18:24 GMT
204
+ recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://foo:bar@api.wowzerapp.com/
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -50,7 +50,7 @@ http_interactions:
50
50
  recorded_at: Thu, 28 Mar 2013 10:19:46 GMT
51
51
  - request:
52
52
  method: get
53
- uri: https://foo:bar@api.wowzerapp.com/hypermedia/interviews
53
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews
54
54
  body:
55
55
  encoding: US-ASCII
56
56
  string: ''
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/notifications
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: Authorization Required
22
+ headers:
23
+ Date:
24
+ - Thu, 11 Apr 2013 12:18:59 GMT
25
+ Server:
26
+ - Apache/2.2.17 (Ubuntu)
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Cache-Control:
32
+ - no-cache, private
33
+ X-Rack-Cache:
34
+ - miss
35
+ Status:
36
+ - '401'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Encoding:
40
+ - gzip
41
+ Content-Length:
42
+ - '21'
43
+ Content-Type:
44
+ - text/html; charset=utf-8
45
+ body:
46
+ encoding: ASCII-8BIT
47
+ string: !binary |-
48
+ H4sIAAAAAAAAA1MAAEXPbOkBAAAA
49
+ http_version: !!null
50
+ recorded_at: Thu, 11 Apr 2013 12:14:13 GMT
51
+ recorded_with: VCR 2.4.0