respoke 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +17 -0
- data/.gitignore +7 -0
- data/.simplecov +6 -0
- data/.travis.yml +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +93 -0
- data/Rakefile +32 -0
- data/lib/respoke.rb +7 -0
- data/lib/respoke/client.rb +265 -0
- data/lib/respoke/errors.rb +9 -0
- data/lib/respoke/response.rb +9 -0
- data/lib/respoke/response/session_token.rb +12 -0
- data/lib/respoke/response/session_token_id.rb +27 -0
- data/lib/respoke/role.rb +20 -0
- data/lib/respoke/version.rb +4 -0
- data/respoke.gemspec +34 -0
- data/test/spec/brokered_auth_spec.rb +89 -0
- data/test/spec/role_spec.rb +44 -0
- data/test/test_config.example.yml +6 -0
- data/test/test_config.yml.enc +0 -0
- data/test/test_helper.rb +26 -0
- data/test/unit/client_test.rb +43 -0
- data/test/unit/respoke_test.rb +7 -0
- data/test/unit/response/session_token_id_test.rb +40 -0
- data/test/unit/response/session_token_test.rb +9 -0
- data/test/vcr_cassettes/app_token_request.yml +99 -0
- data/test/vcr_cassettes/create_role.yml +51 -0
- data/test/vcr_cassettes/delete_a_role.yml +143 -0
- data/test/vcr_cassettes/find_role.yml +97 -0
- data/test/vcr_cassettes/session_token_id_request.yml +51 -0
- data/test/vcr_cassettes/session_token_request.yml +51 -0
- data/test/vcr_cassettes/update_role.yml +145 -0
- metadata +276 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/roles
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"mediaRelay":false,"name":"aff0dd06-28bb-4ead-a216-bf4b24b878f5"}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 20 Apr 2015 20:41:12 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- f617d125-4289-4933-8bc1-84947c31a14c
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '19'
|
46
|
+
body:
|
47
|
+
encoding: ASCII-8BIT
|
48
|
+
string: '{"name":"aff0dd06-28bb-4ead-a216-bf4b24b878f5","mediaRelay":false,"accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","groups":{},"events":{},"pstnOut":[],"callerIds":[],"id":"07A5E228-5BC0-42AA-9225-5C18C4D802F4","createdAt":"2015-04-20T20:41:12.816Z","updatedAt":"2015-04-20T20:41:12.816Z"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 20 Apr 2015 20:41:12 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,143 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/roles
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"5c56531f-cdfa-4ac8-a506-00e3da4f530c"}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 20 Apr 2015 20:41:14 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- df61cdc3-71d1-4cb1-a952-5c8442a52df1
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '19'
|
46
|
+
body:
|
47
|
+
encoding: ASCII-8BIT
|
48
|
+
string: '{"name":"5c56531f-cdfa-4ac8-a506-00e3da4f530c","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","groups":{},"events":{},"mediaRelay":false,"pstnOut":[],"callerIds":[],"id":"6D39AF49-3461-46A9-B581-3C6287168570","createdAt":"2015-04-20T20:41:14.363Z","updatedAt":"2015-04-20T20:41:14.363Z"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 20 Apr 2015 20:41:14 GMT
|
51
|
+
- request:
|
52
|
+
method: delete
|
53
|
+
uri: https://api.respoke.io/v1/roles/6D39AF49-3461-46A9-B581-3C6287168570
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
App-Secret:
|
59
|
+
- "<APP_SECRET>"
|
60
|
+
User-Agent:
|
61
|
+
- Faraday v0.9.1
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- "*/*"
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 200
|
69
|
+
message: OK
|
70
|
+
headers:
|
71
|
+
Server:
|
72
|
+
- nginx
|
73
|
+
Date:
|
74
|
+
- Mon, 20 Apr 2015 20:41:14 GMT
|
75
|
+
Content-Type:
|
76
|
+
- application/json; charset=utf-8
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Connection:
|
80
|
+
- keep-alive
|
81
|
+
Vary:
|
82
|
+
- Accept-Encoding
|
83
|
+
- Accept-Encoding
|
84
|
+
Request-Id:
|
85
|
+
- 28df83d4-c754-4257-a74f-6c3612b14ed5
|
86
|
+
Ratelimit-Limit:
|
87
|
+
- '10'
|
88
|
+
Ratelimit-Time-Units:
|
89
|
+
- seconds
|
90
|
+
Ratelimit-Remaining:
|
91
|
+
- '19'
|
92
|
+
body:
|
93
|
+
encoding: ASCII-8BIT
|
94
|
+
string: '{"message":"Success"}'
|
95
|
+
http_version:
|
96
|
+
recorded_at: Mon, 20 Apr 2015 20:41:14 GMT
|
97
|
+
- request:
|
98
|
+
method: get
|
99
|
+
uri: https://api.respoke.io/v1/roles/6D39AF49-3461-46A9-B581-3C6287168570
|
100
|
+
body:
|
101
|
+
encoding: US-ASCII
|
102
|
+
string: ''
|
103
|
+
headers:
|
104
|
+
App-Secret:
|
105
|
+
- "<APP_SECRET>"
|
106
|
+
User-Agent:
|
107
|
+
- Faraday v0.9.1
|
108
|
+
Accept-Encoding:
|
109
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
110
|
+
Accept:
|
111
|
+
- "*/*"
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 404
|
115
|
+
message: Not Found
|
116
|
+
headers:
|
117
|
+
Server:
|
118
|
+
- nginx
|
119
|
+
Date:
|
120
|
+
- Mon, 20 Apr 2015 20:41:15 GMT
|
121
|
+
Content-Type:
|
122
|
+
- application/json; charset=utf-8
|
123
|
+
Transfer-Encoding:
|
124
|
+
- chunked
|
125
|
+
Connection:
|
126
|
+
- keep-alive
|
127
|
+
Vary:
|
128
|
+
- Accept-Encoding
|
129
|
+
- Accept-Encoding
|
130
|
+
Request-Id:
|
131
|
+
- 9518f7c8-4af5-406e-86f5-91e6545ee163
|
132
|
+
Ratelimit-Limit:
|
133
|
+
- '10'
|
134
|
+
Ratelimit-Time-Units:
|
135
|
+
- seconds
|
136
|
+
Ratelimit-Remaining:
|
137
|
+
- '19'
|
138
|
+
body:
|
139
|
+
encoding: ASCII-8BIT
|
140
|
+
string: '{"error":"Object ''Roles'' not found."}'
|
141
|
+
http_version:
|
142
|
+
recorded_at: Mon, 20 Apr 2015 20:41:15 GMT
|
143
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,97 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/roles
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"08e2faa1-87d5-4641-8331-54f06c2dac54"}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 20 Apr 2015 20:41:15 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- 128992d5-2a58-45b0-8c96-90d242951d89
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '19'
|
46
|
+
body:
|
47
|
+
encoding: ASCII-8BIT
|
48
|
+
string: '{"name":"08e2faa1-87d5-4641-8331-54f06c2dac54","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","groups":{},"events":{},"mediaRelay":false,"pstnOut":[],"callerIds":[],"id":"80A65F9F-143F-48DF-939B-B98F228F3C97","createdAt":"2015-04-20T20:41:15.515Z","updatedAt":"2015-04-20T20:41:15.515Z"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 20 Apr 2015 20:41:15 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: https://api.respoke.io/v1/roles/80A65F9F-143F-48DF-939B-B98F228F3C97
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
App-Secret:
|
59
|
+
- "<APP_SECRET>"
|
60
|
+
User-Agent:
|
61
|
+
- Faraday v0.9.1
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- "*/*"
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 200
|
69
|
+
message: OK
|
70
|
+
headers:
|
71
|
+
Server:
|
72
|
+
- nginx
|
73
|
+
Date:
|
74
|
+
- Mon, 20 Apr 2015 20:41:15 GMT
|
75
|
+
Content-Type:
|
76
|
+
- application/json; charset=utf-8
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Connection:
|
80
|
+
- keep-alive
|
81
|
+
Vary:
|
82
|
+
- Accept-Encoding
|
83
|
+
- Accept-Encoding
|
84
|
+
Request-Id:
|
85
|
+
- 46ed7ccb-d6a1-44e1-84e2-48616fc3f8fc
|
86
|
+
Ratelimit-Limit:
|
87
|
+
- '10'
|
88
|
+
Ratelimit-Time-Units:
|
89
|
+
- seconds
|
90
|
+
Ratelimit-Remaining:
|
91
|
+
- '19'
|
92
|
+
body:
|
93
|
+
encoding: ASCII-8BIT
|
94
|
+
string: '{"id":"80A65F9F-143F-48DF-939B-B98F228F3C97","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","name":"08e2faa1-87d5-4641-8331-54f06c2dac54","groups":{},"events":{},"mediaRelay":false,"pstnOut":[],"callerIds":[],"createdAt":"2015-04-20T20:41:15.000Z","updatedAt":"2015-04-20T20:41:15.000Z"}'
|
95
|
+
http_version:
|
96
|
+
recorded_at: Mon, 20 Apr 2015 20:41:15 GMT
|
97
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"appId":"0dfcfe78-c4af-497f-88f6-c6b3a8151fb3","endpointId":"foo-bar","roleId":"56BD864A-3474-4D41-A3E7-1577078B63D5","ttl":86400}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Fri, 02 Jan 2015 21:30:57 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- a0df2435-0923-4ea4-a70f-23eebef6551b
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '0'
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"appId":"0dfcfe78-c4af-497f-88f6-c6b3a8151fb3","endpointId":"foo-bar","roleId":"56BD864A-3474-4D41-A3E7-1577078B63D5","accountId":"9628FFD0-54E8-402C-A979-368B03EC63D9","createTime":1420234257,"expiryTime":1420320657,"id":"5F90B522-93CF-4CB1-A915-14B385CF0105","forDevelopment":false,"createdAt":"2015-01-02T21:30:57.714Z","tokenId":"5F90B522-93CF-4CB1-A915-14B385CF0105"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Fri, 02 Jan 2015 21:30:57 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/session-tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"appId":"0dfcfe78-c4af-497f-88f6-c6b3a8151fb3","tokenId":"5F90B522-93CF-4CB1-A915-14B385CF0105"}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Fri, 02 Jan 2015 21:30:58 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- f8b5663d-3ea6-413e-b409-aec2fd079db4
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '0'
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"message":"Authorization successful","token":"72868261-8212-4F87-91A5-6D7CB7DE6BDC"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Fri, 02 Jan 2015 21:30:58 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,145 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.respoke.io/v1/roles
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"f866474a-60d8-48a5-8de9-7e25fb997e77"}'
|
9
|
+
headers:
|
10
|
+
App-Secret:
|
11
|
+
- "<APP_SECRET>"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.9.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 20 Apr 2015 20:41:13 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
- Accept-Encoding
|
38
|
+
Request-Id:
|
39
|
+
- dda35023-b6f7-475e-bb71-884c9497fe14
|
40
|
+
Ratelimit-Limit:
|
41
|
+
- '10'
|
42
|
+
Ratelimit-Time-Units:
|
43
|
+
- seconds
|
44
|
+
Ratelimit-Remaining:
|
45
|
+
- '19'
|
46
|
+
body:
|
47
|
+
encoding: ASCII-8BIT
|
48
|
+
string: '{"name":"f866474a-60d8-48a5-8de9-7e25fb997e77","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","groups":{},"events":{},"mediaRelay":false,"pstnOut":[],"callerIds":[],"id":"4F3E7522-96D3-4170-9499-FF0CA63A4574","createdAt":"2015-04-20T20:41:13.208Z","updatedAt":"2015-04-20T20:41:13.208Z"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 20 Apr 2015 20:41:13 GMT
|
51
|
+
- request:
|
52
|
+
method: put
|
53
|
+
uri: https://api.respoke.io/v1/roles/4F3E7522-96D3-4170-9499-FF0CA63A4574
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","groups":{},"events":{},"mediaRelay":true,"pstnOut":[],"callerIds":[],"createdAt":"2015-04-20T20:41:13.208Z","updatedAt":"2015-04-20T20:41:13.208Z"}'
|
57
|
+
headers:
|
58
|
+
App-Secret:
|
59
|
+
- "<APP_SECRET>"
|
60
|
+
User-Agent:
|
61
|
+
- Faraday v0.9.1
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
Accept-Encoding:
|
65
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
66
|
+
Accept:
|
67
|
+
- "*/*"
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Server:
|
74
|
+
- nginx
|
75
|
+
Date:
|
76
|
+
- Mon, 20 Apr 2015 20:41:13 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
- Accept-Encoding
|
86
|
+
Request-Id:
|
87
|
+
- d70a4406-01aa-4880-953c-afc429bf803d
|
88
|
+
Ratelimit-Limit:
|
89
|
+
- '10'
|
90
|
+
Ratelimit-Time-Units:
|
91
|
+
- seconds
|
92
|
+
Ratelimit-Remaining:
|
93
|
+
- '19'
|
94
|
+
body:
|
95
|
+
encoding: ASCII-8BIT
|
96
|
+
string: '{"id":"4F3E7522-96D3-4170-9499-FF0CA63A4574","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","name":"f866474a-60d8-48a5-8de9-7e25fb997e77","groups":"{}","events":"{}","mediaRelay":1,"pstnOut":"[]","callerIds":"[]","createdAt":"2015-04-20T20:41:13.000Z","updatedAt":"2015-04-20T20:41:13.000Z"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 20 Apr 2015 20:41:13 GMT
|
99
|
+
- request:
|
100
|
+
method: get
|
101
|
+
uri: https://api.respoke.io/v1/roles/4F3E7522-96D3-4170-9499-FF0CA63A4574
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ''
|
105
|
+
headers:
|
106
|
+
App-Secret:
|
107
|
+
- "<APP_SECRET>"
|
108
|
+
User-Agent:
|
109
|
+
- Faraday v0.9.1
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- "*/*"
|
114
|
+
response:
|
115
|
+
status:
|
116
|
+
code: 200
|
117
|
+
message: OK
|
118
|
+
headers:
|
119
|
+
Server:
|
120
|
+
- nginx
|
121
|
+
Date:
|
122
|
+
- Mon, 20 Apr 2015 20:41:14 GMT
|
123
|
+
Content-Type:
|
124
|
+
- application/json; charset=utf-8
|
125
|
+
Transfer-Encoding:
|
126
|
+
- chunked
|
127
|
+
Connection:
|
128
|
+
- keep-alive
|
129
|
+
Vary:
|
130
|
+
- Accept-Encoding
|
131
|
+
- Accept-Encoding
|
132
|
+
Request-Id:
|
133
|
+
- 0a0d9d49-e35d-41c8-aa41-3456ca274ab4
|
134
|
+
Ratelimit-Limit:
|
135
|
+
- '10'
|
136
|
+
Ratelimit-Time-Units:
|
137
|
+
- seconds
|
138
|
+
Ratelimit-Remaining:
|
139
|
+
- '19'
|
140
|
+
body:
|
141
|
+
encoding: ASCII-8BIT
|
142
|
+
string: '{"id":"4F3E7522-96D3-4170-9499-FF0CA63A4574","accountId":"A8005425-48CB-4BBB-B76D-0A9523832C3C","appId":"3175e820-f127-49ba-a9fc-253a8ddb475b","name":"f866474a-60d8-48a5-8de9-7e25fb997e77","groups":{},"events":{},"mediaRelay":true,"pstnOut":[],"callerIds":[],"createdAt":"2015-04-20T20:41:13.000Z","updatedAt":"2015-04-20T20:41:13.000Z"}'
|
143
|
+
http_version:
|
144
|
+
recorded_at: Mon, 20 Apr 2015 20:41:14 GMT
|
145
|
+
recorded_with: VCR 2.9.3
|