bolognese 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +56 -0
  3. data/.travis.yml +23 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +118 -0
  6. data/LICENSE +21 -0
  7. data/README.md +3 -0
  8. data/Rakefile +12 -0
  9. data/bin/bolognese +5 -0
  10. data/bolognese.gemspec +40 -0
  11. data/lib/bolognese.rb +12 -0
  12. data/lib/bolognese/author_utils.rb +61 -0
  13. data/lib/bolognese/cli.rb +38 -0
  14. data/lib/bolognese/crossref.rb +202 -0
  15. data/lib/bolognese/datacite.rb +157 -0
  16. data/lib/bolognese/date_utils.rb +48 -0
  17. data/lib/bolognese/doi_utils.rb +48 -0
  18. data/lib/bolognese/github.rb +106 -0
  19. data/lib/bolognese/metadata.rb +30 -0
  20. data/lib/bolognese/orcid.rb +24 -0
  21. data/lib/bolognese/pid_utils.rb +23 -0
  22. data/lib/bolognese/pubmed.rb +34 -0
  23. data/lib/bolognese/string.rb +5 -0
  24. data/lib/bolognese/utils.rb +27 -0
  25. data/lib/bolognese/version.rb +3 -0
  26. data/spec/cli_spec.rb +37 -0
  27. data/spec/crossref_spec.rb +113 -0
  28. data/spec/datacite_spec.rb +49 -0
  29. data/spec/doi_spec.rb +89 -0
  30. data/spec/fixtures/crossref.xml +742 -0
  31. data/spec/fixtures/datacite.xml +40 -0
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml +760 -0
  33. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml +1476 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml +214 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml +384 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml +44 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml +44 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml +44 -0
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/not_found.yml +44 -0
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_test.yml +843 -0
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +277 -0
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +15755 -0
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +2691 -0
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +1857 -0
  45. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +93 -0
  46. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +5715 -0
  47. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml +307 -0
  48. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml +343 -0
  49. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml +44 -0
  50. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref_doi_not_url.yml +44 -0
  51. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite.yml +44 -0
  52. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite_doi_http.yml +44 -0
  53. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/orcid.yml +44 -0
  54. data/spec/metadata_spec.rb +35 -0
  55. data/spec/orcid_spec.rb +23 -0
  56. data/spec/spec_helper.rb +88 -0
  57. metadata +419 -0
@@ -0,0 +1,214 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.crossref.org/doiRA/10.5061/DRYAD.8515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - svc1-1
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
27
+ Content-Length:
28
+ - '56'
29
+ Date:
30
+ - Thu, 16 Feb 2017 22:30:15 GMT
31
+ Connection:
32
+ - close
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ [
37
+ {
38
+ "DOI": "10.5061/DRYAD.8515",
39
+ "RA": "DataCite"
40
+ }
41
+ ]
42
+ http_version:
43
+ recorded_at: Thu, 16 Feb 2017 22:30:16 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://doi.org/10.5061/dryad.8515
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Maremma - https://github.com/datacite/maremma
53
+ Accept:
54
+ - application/vnd.datacite.datacite+xml
55
+ response:
56
+ status:
57
+ code: 303
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - Accept
64
+ Location:
65
+ - http://data.datacite.org/10.5061%2Fdryad.8515
66
+ Expires:
67
+ - Thu, 16 Feb 2017 23:28:11 GMT
68
+ Content-Type:
69
+ - text/html;charset=utf-8
70
+ Content-Length:
71
+ - '175'
72
+ Date:
73
+ - Thu, 16 Feb 2017 22:30:15 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |-
77
+ <html><head><title>Handle Redirect</title></head>
78
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
+ http_version:
80
+ recorded_at: Thu, 16 Feb 2017 22:30:16 GMT
81
+ - request:
82
+ method: get
83
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ''
87
+ headers:
88
+ User-Agent:
89
+ - Maremma - https://github.com/datacite/maremma
90
+ Accept:
91
+ - application/vnd.datacite.datacite+xml
92
+ response:
93
+ status:
94
+ code: 301
95
+ message: ''
96
+ headers:
97
+ Server:
98
+ - openresty/1.11.2.2
99
+ Date:
100
+ - Thu, 16 Feb 2017 22:30:16 GMT
101
+ Content-Type:
102
+ - text/html
103
+ Content-Length:
104
+ - '191'
105
+ Connection:
106
+ - keep-alive
107
+ Location:
108
+ - https://data.datacite.org/10.5061%2Fdryad.8515
109
+ body:
110
+ encoding: UTF-8
111
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
113
+ http_version:
114
+ recorded_at: Thu, 16 Feb 2017 22:30:16 GMT
115
+ - request:
116
+ method: get
117
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ User-Agent:
123
+ - Maremma - https://github.com/datacite/maremma
124
+ Accept:
125
+ - application/vnd.datacite.datacite+xml
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: ''
130
+ headers:
131
+ Server:
132
+ - openresty/1.11.2.2
133
+ Date:
134
+ - Thu, 16 Feb 2017 22:30:16 GMT
135
+ Content-Type:
136
+ - application/vnd.datacite.datacite+xml
137
+ Content-Length:
138
+ - '2601'
139
+ Connection:
140
+ - keep-alive
141
+ Cache-Control:
142
+ - no-transform, max-age=3600
143
+ Last-Modified:
144
+ - Sat, 04 Feb 2017 17:54:37 GMT
145
+ Vary:
146
+ - Accept
147
+ Access-Control-Allow-Origin:
148
+ - "*"
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ body:
152
+ encoding: ASCII-8BIT
153
+ string: !binary |-
154
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
155
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwt
156
+ MyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVt
157
+ YS1pbnN0YW5jZSIgeG1sbnM6bWV0cz0iaHR0cDovL3d3dy5sb2MuZ292L01F
158
+ VFMvIiB4bWxuczpkc3BhY2U9Imh0dHA6Ly93d3cuZHNwYWNlLm9yZy94bWxu
159
+ cy9kc3BhY2UvZGltIiB4bWxuczpkaW09Imh0dHA6Ly93d3cuZHNwYWNlLm9y
160
+ Zy94bWxucy9kc3BhY2UvZGltIiB4bWxuczpkcnlhZD0iaHR0cDovL3B1cmwu
161
+ b3JnL2RyeWFkL3Rlcm1zLyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8v
162
+ ZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRh
163
+ dGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+ICA8aWRl
164
+ bnRpZmllciBpZGVudGlmaWVyVHlwZT0iRE9JIj4xMC41MDYxL0RSWUFELjg1
165
+ MTU8L2lkZW50aWZpZXI+ICA8dmVyc2lvbj4xPC92ZXJzaW9uPiAgPGNyZWF0
166
+ b3JzPiAgICA8Y3JlYXRvcj4gICAgICA8Y3JlYXRvck5hbWU+T2xsb21vLCBC
167
+ ZW5qYW1pbjwvY3JlYXRvck5hbWU+ICAgIDwvY3JlYXRvcj4gICAgPGNyZWF0
168
+ b3I+ICAgICAgPGNyZWF0b3JOYW1lPkR1cmFuZCwgUGF0cmljazwvY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ZpZXIgcmVsYXRlZElkZW50aWZpZXJUeXBlPSJET0ki
202
+ IHJlbGF0aW9uVHlwZT0iSGFzUGFydCI+MTAuNTA2MS9EUllBRC44NTE1LzI8
203
+ L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVs
204
+ YXRlZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSXNSZWZl
205
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
206
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
207
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
208
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
209
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
210
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
+ http_version:
213
+ recorded_at: Thu, 16 Feb 2017 22:30:16 GMT
214
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,384 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.crossref.org/doiRA/10.5061/DRYAD.8515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - svc1-1
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
27
+ Content-Length:
28
+ - '56'
29
+ Date:
30
+ - Thu, 16 Feb 2017 22:30:13 GMT
31
+ Connection:
32
+ - close
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ [
37
+ {
38
+ "DOI": "10.5061/DRYAD.8515",
39
+ "RA": "DataCite"
40
+ }
41
+ ]
42
+ http_version:
43
+ recorded_at: Thu, 16 Feb 2017 22:30:14 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://doi.org/10.5061/dryad.8515
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Maremma - https://github.com/datacite/maremma
53
+ Accept:
54
+ - application/vnd.datacite.datacite+xml
55
+ response:
56
+ status:
57
+ code: 303
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - Accept
64
+ Location:
65
+ - http://data.datacite.org/10.5061%2Fdryad.8515
66
+ Expires:
67
+ - Thu, 16 Feb 2017 23:28:11 GMT
68
+ Content-Type:
69
+ - text/html;charset=utf-8
70
+ Content-Length:
71
+ - '175'
72
+ Date:
73
+ - Thu, 16 Feb 2017 22:30:14 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |-
77
+ <html><head><title>Handle Redirect</title></head>
78
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
+ http_version:
80
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
81
+ - request:
82
+ method: get
83
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ''
87
+ headers:
88
+ User-Agent:
89
+ - Maremma - https://github.com/datacite/maremma
90
+ Accept:
91
+ - application/vnd.datacite.datacite+xml
92
+ response:
93
+ status:
94
+ code: 301
95
+ message: ''
96
+ headers:
97
+ Server:
98
+ - openresty/1.11.2.2
99
+ Date:
100
+ - Thu, 16 Feb 2017 22:30:15 GMT
101
+ Content-Type:
102
+ - text/html
103
+ Content-Length:
104
+ - '191'
105
+ Connection:
106
+ - keep-alive
107
+ Location:
108
+ - https://data.datacite.org/10.5061%2Fdryad.8515
109
+ body:
110
+ encoding: UTF-8
111
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
113
+ http_version:
114
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
115
+ - request:
116
+ method: get
117
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ User-Agent:
123
+ - Maremma - https://github.com/datacite/maremma
124
+ Accept:
125
+ - application/vnd.datacite.datacite+xml
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: ''
130
+ headers:
131
+ Server:
132
+ - openresty/1.11.2.2
133
+ Date:
134
+ - Thu, 16 Feb 2017 22:30:15 GMT
135
+ Content-Type:
136
+ - application/vnd.datacite.datacite+xml
137
+ Content-Length:
138
+ - '2601'
139
+ Connection:
140
+ - keep-alive
141
+ Cache-Control:
142
+ - no-transform, max-age=3600
143
+ Last-Modified:
144
+ - Sat, 04 Feb 2017 17:54:37 GMT
145
+ Vary:
146
+ - Accept
147
+ Access-Control-Allow-Origin:
148
+ - "*"
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ body:
152
+ encoding: ASCII-8BIT
153
+ string: !binary |-
154
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
155
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwt
156
+ MyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3Lncz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Sk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
206
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
207
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
208
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
209
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
210
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
+ http_version:
213
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
214
+ - request:
215
+ method: get
216
+ uri: https://doi.org/10.5061/dryad.8515
217
+ body:
218
+ encoding: US-ASCII
219
+ string: ''
220
+ headers:
221
+ User-Agent:
222
+ - Maremma - https://github.com/datacite/maremma
223
+ Accept:
224
+ - application/vnd.datacite.datacite+xml
225
+ response:
226
+ status:
227
+ code: 303
228
+ message: ''
229
+ headers:
230
+ Server:
231
+ - Apache-Coyote/1.1
232
+ Vary:
233
+ - Accept
234
+ Location:
235
+ - http://data.datacite.org/10.5061%2Fdryad.8515
236
+ Expires:
237
+ - Thu, 16 Feb 2017 23:28:11 GMT
238
+ Content-Type:
239
+ - text/html;charset=utf-8
240
+ Content-Length:
241
+ - '175'
242
+ Date:
243
+ - Thu, 16 Feb 2017 22:30:14 GMT
244
+ body:
245
+ encoding: UTF-8
246
+ string: |-
247
+ <html><head><title>Handle Redirect</title></head>
248
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
249
+ http_version:
250
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
251
+ - request:
252
+ method: get
253
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
254
+ body:
255
+ encoding: US-ASCII
256
+ string: ''
257
+ headers:
258
+ User-Agent:
259
+ - Maremma - https://github.com/datacite/maremma
260
+ Accept:
261
+ - application/vnd.datacite.datacite+xml
262
+ response:
263
+ status:
264
+ code: 301
265
+ message: ''
266
+ headers:
267
+ Server:
268
+ - openresty/1.11.2.2
269
+ Date:
270
+ - Thu, 16 Feb 2017 22:30:15 GMT
271
+ Content-Type:
272
+ - text/html
273
+ Content-Length:
274
+ - '191'
275
+ Connection:
276
+ - keep-alive
277
+ Location:
278
+ - https://data.datacite.org/10.5061%2Fdryad.8515
279
+ body:
280
+ encoding: UTF-8
281
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
282
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
283
+ http_version:
284
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
285
+ - request:
286
+ method: get
287
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
288
+ body:
289
+ encoding: US-ASCII
290
+ string: ''
291
+ headers:
292
+ User-Agent:
293
+ - Maremma - https://github.com/datacite/maremma
294
+ Accept:
295
+ - application/vnd.datacite.datacite+xml
296
+ response:
297
+ status:
298
+ code: 200
299
+ message: ''
300
+ headers:
301
+ Server:
302
+ - openresty/1.11.2.2
303
+ Date:
304
+ - Thu, 16 Feb 2017 22:30:15 GMT
305
+ Content-Type:
306
+ - application/vnd.datacite.datacite+xml
307
+ Content-Length:
308
+ - '2601'
309
+ Connection:
310
+ - keep-alive
311
+ Cache-Control:
312
+ - no-transform, max-age=3600
313
+ Last-Modified:
314
+ - Sat, 04 Feb 2017 17:54:37 GMT
315
+ Vary:
316
+ - Accept
317
+ Access-Control-Allow-Origin:
318
+ - "*"
319
+ Access-Control-Allow-Methods:
320
+ - GET, POST, OPTIONS
321
+ body:
322
+ encoding: ASCII-8BI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uNTA2MS9EUllBRC44NTE1LzI8
373
+ L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVs
374
+ YXRlZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSXNSZWZl
375
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
376
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
377
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
378
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
379
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
380
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
381
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
382
+ http_version:
383
+ recorded_at: Thu, 16 Feb 2017 22:30:15 GMT
384
+ recorded_with: VCR 3.0.3