wowzer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/fixtures/vcr_cassettes/application.yml +99 -0
- data/fixtures/vcr_cassettes/application_response.yml +99 -0
- data/fixtures/vcr_cassettes/candidate.yml +100 -0
- data/fixtures/vcr_cassettes/create_application.yml +249 -0
- data/fixtures/vcr_cassettes/create_notification.yml +97 -0
- data/fixtures/vcr_cassettes/delete_application.yml +143 -0
- data/fixtures/vcr_cassettes/delete_notification.yml +143 -0
- data/fixtures/vcr_cassettes/interview.yml +1 -1
- data/fixtures/vcr_cassettes/interview_applications.yml +204 -0
- data/fixtures/vcr_cassettes/interviews.yml +2 -2
- data/fixtures/vcr_cassettes/notification.yml +51 -0
- data/fixtures/vcr_cassettes/notifications.yml +99 -0
- data/fixtures/vcr_cassettes/resend_application.yml +143 -0
- data/fixtures/vcr_cassettes/resend_application_not_allowed.yml +99 -0
- data/fixtures/vcr_cassettes/update_notification.yml +47 -0
- data/lib/wowzer/application.rb +19 -13
- data/lib/wowzer/application_response.rb +32 -0
- data/lib/wowzer/candidate.rb +7 -0
- data/lib/wowzer/exception.rb +6 -0
- data/lib/wowzer/interview.rb +11 -15
- data/lib/wowzer/notification.rb +21 -0
- data/lib/wowzer/resource.rb +68 -0
- data/lib/wowzer/version.rb +1 -1
- data/lib/wowzer.rb +6 -1
- data/spec/lib/wowzer/application_response_spec.rb +17 -0
- data/spec/lib/wowzer/application_spec.rb +54 -0
- data/spec/lib/wowzer/candidate_spec.rb +13 -0
- data/spec/lib/wowzer/interview_spec.rb +46 -10
- data/spec/lib/wowzer/notifications_spec.rb +88 -0
- data/spec/spec_helper.rb +2 -2
- data/wowzer.gemspec +2 -3
- metadata +30 -9
- data/Gemfile.lock +0 -139
- data/spec/internal/config/database.yml +0 -3
- data/spec/internal/db/wowzer_test.sqlite +0 -0
@@ -0,0 +1,99 @@
|
|
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
|
+
- Fri, 05 Apr 2013 09:57:38 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=8db428b32f5f7132d172c8da14e948e6; 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: Fri, 05 Apr 2013 09:57:26 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/applications/515d64a52478f64181000042
|
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
|
+
- Fri, 05 Apr 2013 09:57:39 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
|
+
- ! '"d544b012c93474e491d596e40ea66780"'
|
81
|
+
Cache-Control:
|
82
|
+
- must-revalidate, private, max-age=0
|
83
|
+
X-Rack-Cache:
|
84
|
+
- miss
|
85
|
+
Set-Cookie:
|
86
|
+
- _novia_secure_session=50d7b2e9fa4cec9dbf1f3f5728a74074; domain=wowzerapp.com;
|
87
|
+
path=/; HttpOnly; secure
|
88
|
+
Status:
|
89
|
+
- '200'
|
90
|
+
Content-Length:
|
91
|
+
- '897'
|
92
|
+
Content-Type:
|
93
|
+
- application/json; charset=utf-8
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! '{"id":"515d64a52478f64181000042","date_sent":"2013-04-04T11:31:49+00:00","date_completed":"2013-04-04T11:41:35+00:00","date_updated":"2013-04-05T09:37:55Z","evaluation_status":"pending","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515d64a52478f64181000042"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515d52a6572fc05e230a77a8"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515d64a52478f64181000040"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515d64a52478f64181000042/answers/515d65562478f64181000068","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515d64a52478f64181000042/answers/515d65562478f64181000068?auth_token=4e0643207bc78fc5dd2a18cae8e2dbf6&layout=iframe","name":"iframe"}]}}'
|
97
|
+
http_version: !!null
|
98
|
+
recorded_at: Fri, 05 Apr 2013 09:57:27 GMT
|
99
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,99 @@
|
|
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
|
+
- Fri, 05 Apr 2013 09:31:04 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=4ce37b09c91a72d888f2518cd8e9824c; 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: Fri, 05 Apr 2013 09:28:26 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/applications/515d64a52478f64181000042
|
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
|
+
- Fri, 05 Apr 2013 09:31:05 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
|
+
- ! '"8505455bace7dcd23a1798c1c439495f"'
|
81
|
+
Cache-Control:
|
82
|
+
- must-revalidate, private, max-age=0
|
83
|
+
X-Rack-Cache:
|
84
|
+
- miss
|
85
|
+
Set-Cookie:
|
86
|
+
- _novia_secure_session=8076bef1f4725d6ad71789554979e50f; domain=wowzerapp.com;
|
87
|
+
path=/; HttpOnly; secure
|
88
|
+
Status:
|
89
|
+
- '200'
|
90
|
+
Content-Length:
|
91
|
+
- '897'
|
92
|
+
Content-Type:
|
93
|
+
- application/json; charset=utf-8
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! '{"id":"515d64a52478f64181000042","date_sent":"2013-04-04T11:31:49+00:00","date_completed":"2013-04-04T11:41:35+00:00","date_updated":"2013-04-05T08:44:20Z","evaluation_status":"pending","status":"completed","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515d64a52478f64181000042"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/515d52a6572fc05e230a77a8"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515d64a52478f64181000040"},"wowzer:application:response":[{"href":"https://foobar.com/en/interview_questionnaires/515d64a52478f64181000042/answers/515d65562478f64181000068","name":"standard"},{"href":"https://foobar.com/en/interview_questionnaires/515d64a52478f64181000042/answers/515d65562478f64181000068?auth_token=115486f877a541e844b3ecc98b0152ea&layout=iframe","name":"iframe"}]}}'
|
97
|
+
http_version: !!null
|
98
|
+
recorded_at: Fri, 05 Apr 2013 09:28:27 GMT
|
99
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,100 @@
|
|
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
|
+
- Thu, 11 Apr 2013 11:05:36 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=16c19e47f3a760f0f5aed31812290caa; 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: Thu, 11 Apr 2013 11:00:51 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/candidates/51666ce8572fc057c101d772
|
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
|
+
- Thu, 11 Apr 2013 11:05:37 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
|
+
- ! '"93c1ebbc1085ffdf60febc0f811fe896"'
|
81
|
+
Cache-Control:
|
82
|
+
- must-revalidate, private, max-age=0
|
83
|
+
X-Rack-Cache:
|
84
|
+
- miss
|
85
|
+
Set-Cookie:
|
86
|
+
- _novia_secure_session=3f5110f04f9877df00d2632bdd6182fe; domain=wowzerapp.com;
|
87
|
+
path=/; HttpOnly; secure
|
88
|
+
Status:
|
89
|
+
- '200'
|
90
|
+
Content-Length:
|
91
|
+
- '872'
|
92
|
+
Content-Type:
|
93
|
+
- application/json; charset=utf-8
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! '{"_embedded":{"wowzer:application":[{"id":"51666ce8572fc057c101d773","date_sent":"2013-04-11T07:57:28+00:00","date_updated":"2013-04-11T08:29:54Z","evaluation_status":"pending","status":"opened","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/51666ce8572fc057c101d773"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/5154134c572fc07efc002341"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/51666ce8572fc057c101d772"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/51666ce8572fc057c101d773/resend"}}}]},"id":"51666ce8572fc057c101d772","first_name":"Stephanie","last_name":"Minou","name":"Stephanie
|
97
|
+
Minou","email":"stephaniehapper@yahoo.fr","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/candidates/51666ce8572fc057c101d772"}}}'
|
98
|
+
http_version: !!null
|
99
|
+
recorded_at: Thu, 11 Apr 2013 11:00:52 GMT
|
100
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,249 @@
|
|
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 11:12: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
|
+
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=b784f0b18cc7dbc24844b90d3ed8ea0f; 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 11:10:22 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 11:13:00 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=ef66eb7fb0af1ea64d39b12a0c63e0f0; 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 11:10:23 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153
|
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 11:13:01 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
|
+
- ! '"327303903c3bbcd1930f1658e3af685c"'
|
137
|
+
Cache-Control:
|
138
|
+
- must-revalidate, private, max-age=0
|
139
|
+
X-Rack-Cache:
|
140
|
+
- miss
|
141
|
+
Set-Cookie:
|
142
|
+
- _novia_secure_session=871f78b8da3b525f4f28d34c1d80d803; domain=wowzerapp.com;
|
143
|
+
path=/; HttpOnly; secure
|
144
|
+
Status:
|
145
|
+
- '200'
|
146
|
+
Content-Length:
|
147
|
+
- '517'
|
148
|
+
Content-Type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: ! '{"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"}}}'
|
153
|
+
http_version: !!null
|
154
|
+
recorded_at: Wed, 03 Apr 2013 11:10:24 GMT
|
155
|
+
- request:
|
156
|
+
method: post
|
157
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153/applications
|
158
|
+
body:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: ! '{"candidate":{"email":"timjegels@outlook.com","first_name":"Tim","last_name":"Jegels"}}'
|
161
|
+
headers:
|
162
|
+
Content-Type:
|
163
|
+
- application/json
|
164
|
+
Accept:
|
165
|
+
- application/json
|
166
|
+
User-Agent:
|
167
|
+
- Faraday v0.8.7
|
168
|
+
response:
|
169
|
+
status:
|
170
|
+
code: 200
|
171
|
+
message: OK
|
172
|
+
headers:
|
173
|
+
Date:
|
174
|
+
- Wed, 03 Apr 2013 11:13:02 GMT
|
175
|
+
Server:
|
176
|
+
- Apache/2.2.17 (Ubuntu)
|
177
|
+
Strict-Transport-Security:
|
178
|
+
- max-age=31536000
|
179
|
+
X-Ua-Compatible:
|
180
|
+
- IE=Edge,chrome=1
|
181
|
+
Etag:
|
182
|
+
- ! '"718752c04b986ecb73b1fca00f74809b"'
|
183
|
+
Cache-Control:
|
184
|
+
- max-age=0, private, must-revalidate
|
185
|
+
X-Rack-Cache:
|
186
|
+
- invalidate, pass
|
187
|
+
Set-Cookie:
|
188
|
+
- _novia_secure_session=490182416f760d2b2a495fa638fdf613; domain=wowzerapp.com;
|
189
|
+
path=/; HttpOnly; secure
|
190
|
+
Status:
|
191
|
+
- '200'
|
192
|
+
Content-Length:
|
193
|
+
- '592'
|
194
|
+
Content-Type:
|
195
|
+
- application/json; charset=utf-8
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: ! '{"id":"515c0ebff4484b083c000086","date_sent":"2013-04-03T11:13:03+00:00","date_updated":"2013-04-03T11:13:03Z","evaluation_status":"pending","status":"sent","_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/applications/515c0ebff4484b083c000086"},"wowzer:interview":{"href":"https://api.wowzerapp.com/hypermedia/interviews/51519ba8f4484b4bae000153"},"wowzer:candidate":{"href":"https://api.wowzerapp.com/hypermedia/candidates/515bfec6f4484b0267000071"},"wowzer:application:invitation":{"href":"https://api.wowzerapp.com/hypermedia/applications/515c0ebff4484b083c000086/resend"}}}'
|
199
|
+
http_version: !!null
|
200
|
+
recorded_at: Wed, 03 Apr 2013 11:10:25 GMT
|
201
|
+
- request:
|
202
|
+
method: get
|
203
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/
|
204
|
+
body:
|
205
|
+
encoding: US-ASCII
|
206
|
+
string: ''
|
207
|
+
headers:
|
208
|
+
Content-Type:
|
209
|
+
- application/json
|
210
|
+
Accept:
|
211
|
+
- application/json
|
212
|
+
User-Agent:
|
213
|
+
- Faraday v0.8.7
|
214
|
+
Accept-Encoding:
|
215
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
216
|
+
response:
|
217
|
+
status:
|
218
|
+
code: 200
|
219
|
+
message: OK
|
220
|
+
headers:
|
221
|
+
Date:
|
222
|
+
- Wed, 03 Apr 2013 11:13:03 GMT
|
223
|
+
Server:
|
224
|
+
- Apache/2.2.17 (Ubuntu)
|
225
|
+
Strict-Transport-Security:
|
226
|
+
- max-age=31536000
|
227
|
+
X-Ua-Compatible:
|
228
|
+
- IE=Edge,chrome=1
|
229
|
+
Etag:
|
230
|
+
- ! '"3c8cad57a3f3b92deec5b055735843aa"'
|
231
|
+
Cache-Control:
|
232
|
+
- must-revalidate, private, max-age=0
|
233
|
+
X-Rack-Cache:
|
234
|
+
- miss
|
235
|
+
Set-Cookie:
|
236
|
+
- _novia_secure_session=fd78d8d179ae9fc05bae525c99245238; domain=wowzerapp.com;
|
237
|
+
path=/; HttpOnly; secure
|
238
|
+
Status:
|
239
|
+
- '200'
|
240
|
+
Content-Length:
|
241
|
+
- '520'
|
242
|
+
Content-Type:
|
243
|
+
- application/json; charset=utf-8
|
244
|
+
body:
|
245
|
+
encoding: US-ASCII
|
246
|
+
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"}}}'
|
247
|
+
http_version: !!null
|
248
|
+
recorded_at: Wed, 03 Apr 2013 11:10:26 GMT
|
249
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,97 @@
|
|
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 12:14:47 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=d4328ec51635c279e68d8dc41d242e99; 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 12:10:08 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: https://foo.bar%40foobar.com:12345@api.wowzerapp.com/hypermedia/notifications
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: ! '{"callback_url":"https://sample.com/endpoint","target":"application_status","username":"Bob","password":"Sinclair","active":false}'
|
57
|
+
headers:
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
|
+
Accept:
|
61
|
+
- application/json
|
62
|
+
User-Agent:
|
63
|
+
- Faraday v0.8.7
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Date:
|
70
|
+
- Wed, 03 Apr 2013 12:14:48 GMT
|
71
|
+
Server:
|
72
|
+
- Apache/2.2.17 (Ubuntu)
|
73
|
+
Strict-Transport-Security:
|
74
|
+
- max-age=31536000
|
75
|
+
X-Ua-Compatible:
|
76
|
+
- IE=Edge,chrome=1
|
77
|
+
Etag:
|
78
|
+
- ! '"a6a569d7c6b677599b1bc842b84ee31c"'
|
79
|
+
Cache-Control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
X-Rack-Cache:
|
82
|
+
- invalidate, pass
|
83
|
+
Set-Cookie:
|
84
|
+
- _novia_secure_session=c1959ff8fe73ffc6b06b1e7381716435; domain=wowzerapp.com;
|
85
|
+
path=/; HttpOnly; secure
|
86
|
+
Status:
|
87
|
+
- '200'
|
88
|
+
Content-Length:
|
89
|
+
- '267'
|
90
|
+
Content-Type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ! '{"id":"515c1d39572fc05e2306a170","username":"Bob","password":"Sinclair","callback_url":"https://sample.com/endpoint","target":"application_status","active":false,"_links":{"self":{"href":"https://api.wowzerapp.com/hypermedia/notifications/515c1d39572fc05e2306a170"}}}'
|
95
|
+
http_version: !!null
|
96
|
+
recorded_at: Wed, 03 Apr 2013 12:10:09 GMT
|
97
|
+
recorded_with: VCR 2.4.0
|