contentful 1.2.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/LICENSE.txt +1 -0
- data/README.md +8 -0
- data/contentful.gemspec +2 -1
- data/examples/custom_classes.rb +23 -26
- data/examples/raise_errors.rb +2 -2
- data/lib/contentful.rb +0 -1
- data/lib/contentful/array.rb +27 -19
- data/lib/contentful/array_like.rb +51 -0
- data/lib/contentful/asset.rb +43 -11
- data/lib/contentful/base_resource.rb +87 -0
- data/lib/contentful/client.rb +43 -34
- data/lib/contentful/coercions.rb +116 -0
- data/lib/contentful/content_type.rb +23 -8
- data/lib/contentful/content_type_cache.rb +26 -0
- data/lib/contentful/deleted_asset.rb +2 -5
- data/lib/contentful/deleted_entry.rb +2 -5
- data/lib/contentful/entry.rb +55 -33
- data/lib/contentful/error.rb +1 -1
- data/lib/contentful/field.rb +37 -9
- data/lib/contentful/fields_resource.rb +115 -0
- data/lib/contentful/file.rb +7 -8
- data/lib/contentful/link.rb +3 -6
- data/lib/contentful/locale.rb +6 -6
- data/lib/contentful/location.rb +7 -5
- data/lib/contentful/resource_builder.rb +72 -226
- data/lib/contentful/space.rb +16 -6
- data/lib/contentful/support.rb +41 -3
- data/lib/contentful/sync_page.rb +17 -10
- data/lib/contentful/version.rb +1 -1
- data/spec/array_spec.rb +4 -8
- data/spec/client_class_spec.rb +12 -23
- data/spec/client_configuration_spec.rb +13 -23
- data/spec/content_type_spec.rb +0 -5
- data/spec/entry_spec.rb +130 -125
- data/spec/error_requests_spec.rb +1 -1
- data/spec/field_spec.rb +0 -5
- data/spec/file_spec.rb +0 -5
- data/spec/fixtures/vcr_cassettes/entry.yml +54 -64
- data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +101 -0
- data/spec/fixtures/vcr_cassettes/entry/marshall.yml +227 -251
- data/spec/fixtures/vcr_cassettes/entry/raw.yml +88 -124
- data/spec/fixtures/vcr_cassettes/entry_locales.yml +56 -74
- data/spec/fixtures/vcr_cassettes/human.yml +63 -40
- data/spec/fixtures/vcr_cassettes/location.yml +99 -211
- data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +12 -16
- data/spec/fixtures/vcr_cassettes/not_found.yml +26 -21
- data/spec/fixtures/vcr_cassettes/nyancat.yml +53 -63
- data/spec/fixtures/vcr_cassettes/ratelimit.yml +1 -1
- data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +54 -64
- data/spec/fixtures/vcr_cassettes/unauthorized.yml +1 -1
- data/spec/fixtures/vcr_cassettes/unavailable.yml +27 -15
- data/spec/link_spec.rb +3 -2
- data/spec/locale_spec.rb +0 -5
- data/spec/location_spec.rb +1 -6
- data/spec/request_spec.rb +3 -2
- data/spec/resource_building_spec.rb +10 -7
- data/spec/response_spec.rb +1 -1
- data/spec/space_spec.rb +0 -5
- data/spec/spec_helper.rb +3 -0
- data/spec/support/json_responses.rb +3 -3
- data/spec/sync_page_spec.rb +1 -6
- data/spec/sync_spec.rb +11 -7
- metadata +69 -20
- data/examples/dynamic_entries.rb +0 -124
- data/examples/resource_mapping.rb +0 -32
- data/lib/contentful/constants.rb +0 -504
- data/lib/contentful/dynamic_entry.rb +0 -57
- data/lib/contentful/resource.rb +0 -239
- data/lib/contentful/resource/array_like.rb +0 -39
- data/lib/contentful/resource/asset_fields.rb +0 -58
- data/lib/contentful/resource/custom_resource.rb +0 -29
- data/lib/contentful/resource/fields.rb +0 -73
- data/lib/contentful/resource/system_properties.rb +0 -55
- data/spec/coercions_spec.rb +0 -23
- data/spec/dynamic_entry_spec.rb +0 -75
- data/spec/resource_spec.rb +0 -79
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?sys.id=nyancat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- RubyContentfulGem/
|
11
|
+
- RubyContentfulGem/1.2.0
|
12
12
|
Authorization:
|
13
13
|
- Bearer b4c0n73n7fu1
|
14
14
|
Content-Type:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Access-Control-Allow-Headers:
|
28
|
-
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
|
28
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
|
29
29
|
Access-Control-Allow-Methods:
|
30
30
|
- GET,HEAD,OPTIONS
|
31
31
|
Access-Control-Allow-Origin:
|
@@ -36,96 +36,78 @@ http_interactions:
|
|
36
36
|
- '86400'
|
37
37
|
Cache-Control:
|
38
38
|
- max-age=0
|
39
|
+
Content-Encoding:
|
40
|
+
- gzip
|
39
41
|
Content-Type:
|
40
42
|
- application/vnd.contentful.delivery.v1+json
|
41
43
|
Etag:
|
42
|
-
-
|
44
|
+
- W/"9707115047cc402819250f844939b2aa"
|
43
45
|
Server:
|
44
|
-
-
|
46
|
+
- Contentful
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
- nosniff
|
45
50
|
X-Contentful-Request-Id:
|
46
|
-
-
|
51
|
+
- 5d8c70a35f32dff1f29bff44068b19df
|
47
52
|
Content-Length:
|
48
|
-
- '
|
53
|
+
- '1034'
|
49
54
|
Accept-Ranges:
|
50
55
|
- bytes
|
51
56
|
Date:
|
52
|
-
-
|
57
|
+
- Tue, 20 Dec 2016 15:27:45 GMT
|
53
58
|
Via:
|
54
59
|
- 1.1 varnish
|
55
60
|
Age:
|
56
|
-
- '
|
61
|
+
- '171'
|
57
62
|
Connection:
|
58
63
|
- close
|
59
64
|
X-Served-By:
|
60
|
-
- cache-
|
65
|
+
- cache-fra1246-FRA
|
61
66
|
X-Cache:
|
62
67
|
- HIT
|
63
68
|
X-Cache-Hits:
|
64
69
|
- '1'
|
70
|
+
X-Timer:
|
71
|
+
- S1482247665.377533,VS0,VE0
|
65
72
|
Vary:
|
66
73
|
- Accept-Encoding
|
67
74
|
body:
|
68
|
-
encoding:
|
69
|
-
string:
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
}
|
94
|
-
},
|
95
|
-
"sys": {
|
96
|
-
"space": {
|
97
|
-
"sys": {
|
98
|
-
"type": "Link",
|
99
|
-
"linkType": "Space",
|
100
|
-
"id": "cfexampleapi"
|
101
|
-
}
|
102
|
-
},
|
103
|
-
"type": "Entry",
|
104
|
-
"contentType": {
|
105
|
-
"sys": {
|
106
|
-
"type": "Link",
|
107
|
-
"linkType": "ContentType",
|
108
|
-
"id": "cat"
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"id": "nyancat",
|
112
|
-
"revision": 5,
|
113
|
-
"createdAt": "2013-06-27T22:46:19.513Z",
|
114
|
-
"updatedAt": "2013-09-04T09:19:39.027Z",
|
115
|
-
"locale": "en-US"
|
116
|
-
}
|
117
|
-
}
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+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+YapbLwak85Wshy3HYTJ7a7vVxM0xE6+5
|
93
|
+
ox8GDv7z8a/i+XF1X++X9/f74/FQ39W1g0NE3DDdEJSsoZ+4ARFvAdoEa4TX
|
94
|
+
GxA5XY6+2M/l1lAJ4UBKOWGZWTu1clazr9JjL4pwpKPUcH2SbarrhaV8JwxR
|
95
|
+
gIdmondH2XYnC1wcBdqBJi31A85QVjWtBPBjW9RdDMk8VyyFrPNc0u1MbdRV
|
96
|
+
D52z5y0yLjUdKhMXjmvIzNS1o5eZ9xcF4+uHmLS/no0Kru8goAverAlaAvac
|
97
|
+
HZloBFR3we6xrkHAiYq/TZ8f45+7LX1Oli9/u3f5w/aY/4fo/lPuRCkBSQoj
|
98
|
+
7IcBXIdpgLCLaRh5BIDUh9CR/jyJ0vwJeaD88rSpRBLbZfEOKkI0wakmwUeh
|
99
|
+
Kc70VPTUrdp8zlQUjr2bit8b3SQrJQp6VTt3Vor215vXm/8BI5JeymkQAAA=
|
118
100
|
http_version:
|
119
|
-
recorded_at:
|
101
|
+
recorded_at: Tue, 20 Dec 2016 15:27:44 GMT
|
120
102
|
- request:
|
121
103
|
method: get
|
122
|
-
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries
|
104
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?sys.id=nyancat
|
123
105
|
body:
|
124
106
|
encoding: US-ASCII
|
125
107
|
string: ''
|
126
108
|
headers:
|
127
109
|
User-Agent:
|
128
|
-
- RubyContentfulGem/
|
110
|
+
- RubyContentfulGem/1.2.0
|
129
111
|
Authorization:
|
130
112
|
- Bearer b4c0n73n7fu1
|
131
113
|
Content-Type:
|
@@ -142,7 +124,7 @@ http_interactions:
|
|
142
124
|
message: OK
|
143
125
|
headers:
|
144
126
|
Access-Control-Allow-Headers:
|
145
|
-
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
|
127
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
|
146
128
|
Access-Control-Allow-Methods:
|
147
129
|
- GET,HEAD,OPTIONS
|
148
130
|
Access-Control-Allow-Origin:
|
@@ -153,85 +135,67 @@ http_interactions:
|
|
153
135
|
- '86400'
|
154
136
|
Cache-Control:
|
155
137
|
- max-age=0
|
138
|
+
Content-Encoding:
|
139
|
+
- gzip
|
156
140
|
Content-Type:
|
157
141
|
- application/vnd.contentful.delivery.v1+json
|
158
142
|
Etag:
|
159
|
-
-
|
143
|
+
- W/"9707115047cc402819250f844939b2aa"
|
160
144
|
Server:
|
161
|
-
-
|
145
|
+
- Contentful
|
146
|
+
X-Content-Type-Options:
|
147
|
+
- nosniff
|
148
|
+
- nosniff
|
162
149
|
X-Contentful-Request-Id:
|
163
|
-
-
|
150
|
+
- 5d8c70a35f32dff1f29bff44068b19df
|
164
151
|
Content-Length:
|
165
|
-
- '
|
152
|
+
- '1034'
|
166
153
|
Accept-Ranges:
|
167
154
|
- bytes
|
168
155
|
Date:
|
169
|
-
-
|
156
|
+
- Tue, 20 Dec 2016 15:27:45 GMT
|
170
157
|
Via:
|
171
158
|
- 1.1 varnish
|
172
159
|
Age:
|
173
|
-
- '
|
160
|
+
- '171'
|
174
161
|
Connection:
|
175
162
|
- close
|
176
163
|
X-Served-By:
|
177
|
-
- cache-
|
164
|
+
- cache-fra1229-FRA
|
178
165
|
X-Cache:
|
179
166
|
- HIT
|
180
167
|
X-Cache-Hits:
|
181
|
-
- '
|
168
|
+
- '1'
|
169
|
+
X-Timer:
|
170
|
+
- S1482247665.468279,VS0,VE0
|
182
171
|
Vary:
|
183
172
|
- Accept-Encoding
|
184
173
|
body:
|
185
|
-
encoding:
|
186
|
-
string:
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
}
|
211
|
-
},
|
212
|
-
"sys": {
|
213
|
-
"space": {
|
214
|
-
"sys": {
|
215
|
-
"type": "Link",
|
216
|
-
"linkType": "Space",
|
217
|
-
"id": "cfexampleapi"
|
218
|
-
}
|
219
|
-
},
|
220
|
-
"type": "Entry",
|
221
|
-
"contentType": {
|
222
|
-
"sys": {
|
223
|
-
"type": "Link",
|
224
|
-
"linkType": "ContentType",
|
225
|
-
"id": "cat"
|
226
|
-
}
|
227
|
-
},
|
228
|
-
"id": "nyancat",
|
229
|
-
"revision": 5,
|
230
|
-
"createdAt": "2013-06-27T22:46:19.513Z",
|
231
|
-
"updatedAt": "2013-09-04T09:19:39.027Z",
|
232
|
-
"locale": "en-US"
|
233
|
-
}
|
234
|
-
}
|
174
|
+
encoding: ASCII-8BIT
|
175
|
+
string: !binary |-
|
176
|
+
H4sIAAAAAAAAA+VX227jNhB9z1cEet1a4kX3NyNo0QDtokC8KJCiCGiJthlL
|
177
|
+
sirRm/Uu8u8lqYtJXZxF1m8rBI5EcsiZwzmHw283t7dWfaqt+PabeBUf/FRS
|
178
|
+
8WUtq4qcLNH2+oscww+cZKIdqq96z0rxAdRHxnLGZRdovhmnuZzwHzVhM+1g
|
179
|
+
FbVSXZJELtWNaBo1X2SDaux8+oMVe0uueX7E6sV+1fr8oGYcDGCpDCfZ0C8k
|
180
|
+
LzNK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kru8goAverAlaAvac
|
196
|
+
HZloBFR3we6xrkHAiYq/TZ8f45+7LX1Oli9/u3f5w/aY/4fo/lPuRCkBSQoj
|
197
|
+
7IcBXIdpgLCLaRh5BIDUh9CR/jyJ0vwJeaD88rSpRBLbZfEOKkI0wakmwUeh
|
198
|
+
Kc70VPTUrdp8zlQUjr2bit8b3SQrJQp6VTt3Vor215vXm/8BI5JeymkQAAA=
|
235
199
|
http_version:
|
236
|
-
recorded_at:
|
237
|
-
recorded_with: VCR
|
200
|
+
recorded_at: Tue, 20 Dec 2016 15:27:44 GMT
|
201
|
+
recorded_with: VCR 3.0.3
|
@@ -2,17 +2,21 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?locale
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?locale=*&sys.id=nyancat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- RubyContentfulGem/
|
11
|
+
- RubyContentfulGem/1.2.2
|
12
12
|
Authorization:
|
13
13
|
- Bearer b4c0n73n7fu1
|
14
14
|
Content-Type:
|
15
15
|
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Connection:
|
19
|
+
- close
|
16
20
|
Host:
|
17
21
|
- cdn.contentful.com
|
18
22
|
response:
|
@@ -20,103 +24,81 @@ http_interactions:
|
|
20
24
|
code: 200
|
21
25
|
message: OK
|
22
26
|
headers:
|
23
|
-
Date:
|
24
|
-
- Wed, 16 Apr 2014 09:00:23 GMT
|
25
|
-
Server:
|
26
|
-
- nginx/1.1.19
|
27
27
|
Access-Control-Allow-Headers:
|
28
|
-
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization
|
28
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
|
29
29
|
Access-Control-Allow-Methods:
|
30
30
|
- GET,HEAD,OPTIONS
|
31
31
|
Access-Control-Allow-Origin:
|
32
32
|
- "*"
|
33
|
+
Access-Control-Expose-Headers:
|
34
|
+
- Etag
|
33
35
|
Access-Control-Max-Age:
|
34
36
|
- '86400'
|
35
37
|
Cache-Control:
|
36
38
|
- max-age=0
|
39
|
+
Content-Encoding:
|
40
|
+
- gzip
|
37
41
|
Content-Type:
|
38
42
|
- application/vnd.contentful.delivery.v1+json
|
39
43
|
Etag:
|
40
|
-
- "
|
44
|
+
- W/"124a54e4a3072cd55acbc29108bc34d7"
|
45
|
+
Server:
|
46
|
+
- Contentful
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
- nosniff
|
41
50
|
X-Contentful-Request-Id:
|
42
|
-
-
|
51
|
+
- 8810dc608c80de2e6645bdc900ee7718
|
43
52
|
Content-Length:
|
44
|
-
- '
|
53
|
+
- '1124'
|
45
54
|
Accept-Ranges:
|
46
55
|
- bytes
|
56
|
+
Date:
|
57
|
+
- Thu, 05 Jan 2017 20:42:42 GMT
|
47
58
|
Via:
|
48
59
|
- 1.1 varnish
|
49
60
|
Age:
|
50
|
-
- '
|
61
|
+
- '581'
|
62
|
+
Connection:
|
63
|
+
- close
|
51
64
|
X-Served-By:
|
52
|
-
- cache-
|
65
|
+
- cache-gru7120-GRU
|
53
66
|
X-Cache:
|
54
67
|
- HIT
|
55
68
|
X-Cache-Hits:
|
56
69
|
- '1'
|
70
|
+
X-Timer:
|
71
|
+
- S1483648962.295214,VS0,VE0
|
57
72
|
Vary:
|
58
73
|
- Accept-Encoding
|
59
74
|
body:
|
60
|
-
encoding:
|
61
|
-
string:
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
"image": {
|
88
|
-
"sys": {
|
89
|
-
"type": "Link",
|
90
|
-
"linkType": "Asset",
|
91
|
-
"id": "nyancat"
|
92
|
-
}
|
93
|
-
}
|
94
|
-
},
|
95
|
-
"sys": {
|
96
|
-
"space": {
|
97
|
-
"sys": {
|
98
|
-
"type": "Link",
|
99
|
-
"linkType": "Space",
|
100
|
-
"id": "cfexampleapi"
|
101
|
-
}
|
102
|
-
},
|
103
|
-
"type": "Entry",
|
104
|
-
"contentType": {
|
105
|
-
"sys": {
|
106
|
-
"type": "Link",
|
107
|
-
"linkType": "ContentType",
|
108
|
-
"id": "cat"
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"id": "nyancat",
|
112
|
-
"revision": 5,
|
113
|
-
"createdAt": "2013-06-27T22:46:19.513Z",
|
114
|
-
"updatedAt": "2013-09-04T09:19:39.027Z",
|
115
|
-
"locale": "en-US"
|
116
|
-
}
|
117
|
-
}
|
118
|
-
]
|
119
|
-
}
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: !binary |-
|
77
|
+
H4sIAAAAAAAAA+VYXW/bNhR9z68w9LKHzjJJSdbHmxG0aICt2BAXAzIUAS3R
|
78
|
+
NmNZ1iQ5qVvkv+9Sn6REOW6RohgmBIlI8V5eHt5zeJmvV5OJkZ9yI5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lfwIu7XDDI5Ovkbzek1P+dhIBrHTFyhjNms5EJu
|
95
|
+
1ifJ+hjD634m31Fm1u93fyQPd8ubfLe4udkdj4f8Os9nlkeo7UVrSsIVnoe2
|
96
|
+
S+HNJWt3RazVGvmzJqWfzId00ytqYXURKyiP+8VxpWBGzr8IQBzft3y15i9z
|
97
|
+
W8/g2vaJR4Uoz4lrDU3BeMv4ZituR5bflXCNcsplpuhTlKOcWyD9oboyGC8s
|
98
|
+
UT2fq6hnDynbXFTaNqxuFtFtokbz/2ul1vBGC9C2N/5BWXsBf230YqVV87el
|
99
|
+
/MBE4m93fMj3ue/jb3uJ/Bn0tTfpvKCLp7/s6/3t5rj/h7Ddx/3MjygKI+xb
|
100
|
+
c8/FKy9yiWVbzPMdilA0x3gmgr6Ha9g9cVD6+X6dQc6bafKdTMZES8cLmeyU
|
101
|
+
/8/pPx2TIcTB929j8uWr1ZJa4KJEMHJdbThd/hVl5PPV89W/uoVgxfsSAAA=
|
120
102
|
http_version:
|
121
|
-
recorded_at:
|
122
|
-
recorded_with: VCR
|
103
|
+
recorded_at: Thu, 05 Jan 2017 20:42:42 GMT
|
104
|
+
recorded_with: VCR 3.0.3
|