tableau_rest_api 0.1.2

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 (68) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Guardfile +21 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +103 -0
  6. data/Rakefile +10 -0
  7. data/bin/console +14 -0
  8. data/bin/setup +8 -0
  9. data/fixtures/vcr_cassettes/add_user.yml +223 -0
  10. data/fixtures/vcr_cassettes/add_user_to_group.yml +451 -0
  11. data/fixtures/vcr_cassettes/add_user_to_group_through_site.yml +451 -0
  12. data/fixtures/vcr_cassettes/create_group.yml +224 -0
  13. data/fixtures/vcr_cassettes/create_group_through_site.yml +224 -0
  14. data/fixtures/vcr_cassettes/datasources.yml +234 -0
  15. data/fixtures/vcr_cassettes/datasources_through_site.yml +234 -0
  16. data/fixtures/vcr_cassettes/delete_datasource.yml +334 -0
  17. data/fixtures/vcr_cassettes/delete_group.yml +328 -0
  18. data/fixtures/vcr_cassettes/delete_group_through_site.yml +329 -0
  19. data/fixtures/vcr_cassettes/delete_schedule.yml +276 -0
  20. data/fixtures/vcr_cassettes/delete_site.yml +214 -0
  21. data/fixtures/vcr_cassettes/delete_subscription.yml +329 -0
  22. data/fixtures/vcr_cassettes/delete_workbook.yml +350 -0
  23. data/fixtures/vcr_cassettes/get_datasource.yml +673 -0
  24. data/fixtures/vcr_cassettes/get_workbook.yml +15044 -0
  25. data/fixtures/vcr_cassettes/groups.yml +229 -0
  26. data/fixtures/vcr_cassettes/groups_through_site.yml +230 -0
  27. data/fixtures/vcr_cassettes/projects_through_site.yml +230 -0
  28. data/fixtures/vcr_cassettes/query_workbooks.yml +250 -0
  29. data/fixtures/vcr_cassettes/remove_user_from_group_through_site.yml +440 -0
  30. data/fixtures/vcr_cassettes/remove_user_from_site_through_site.yml +329 -0
  31. data/fixtures/vcr_cassettes/schedules.yml +115 -0
  32. data/fixtures/vcr_cassettes/server_info.yml +53 -0
  33. data/fixtures/vcr_cassettes/signin.yml +57 -0
  34. data/fixtures/vcr_cassettes/signout.yml +102 -0
  35. data/fixtures/vcr_cassettes/sites.yml +118 -0
  36. data/fixtures/vcr_cassettes/subscriptions.yml +226 -0
  37. data/fixtures/vcr_cassettes/switch_site.yml +113 -0
  38. data/fixtures/vcr_cassettes/update_group_through_site.yml +343 -0
  39. data/fixtures/vcr_cassettes/update_user_through_site.yml +333 -0
  40. data/fixtures/vcr_cassettes/users_in_group.yml +339 -0
  41. data/fixtures/vcr_cassettes/users_on_site.yml +230 -0
  42. data/fixtures/vcr_cassettes/users_through_site.yml +230 -0
  43. data/fixtures/vcr_cassettes/workbooks_through_site.yml +250 -0
  44. data/lib/tableau_rest_api.rb +32 -0
  45. data/lib/tableau_rest_api/api_error.rb +7 -0
  46. data/lib/tableau_rest_api/area/schedule_subscription.rb +41 -0
  47. data/lib/tableau_rest_api/area/user_group.rb +72 -0
  48. data/lib/tableau_rest_api/area/workbook_datasource.rb +87 -0
  49. data/lib/tableau_rest_api/client.rb +65 -0
  50. data/lib/tableau_rest_api/helpers/helpers.rb +9 -0
  51. data/lib/tableau_rest_api/resource.rb +42 -0
  52. data/lib/tableau_rest_api/resources/base.rb +24 -0
  53. data/lib/tableau_rest_api/resources/datasource.rb +12 -0
  54. data/lib/tableau_rest_api/resources/group.rb +10 -0
  55. data/lib/tableau_rest_api/resources/project.rb +12 -0
  56. data/lib/tableau_rest_api/resources/schedule.rb +12 -0
  57. data/lib/tableau_rest_api/resources/server.rb +12 -0
  58. data/lib/tableau_rest_api/resources/site.rb +68 -0
  59. data/lib/tableau_rest_api/resources/subscription.rb +10 -0
  60. data/lib/tableau_rest_api/resources/user.rb +12 -0
  61. data/lib/tableau_rest_api/resources/workbook.rb +12 -0
  62. data/lib/tableau_rest_api/util/config.rb +22 -0
  63. data/lib/tableau_rest_api/util/response.rb +11 -0
  64. data/lib/tableau_rest_api/util/token.rb +16 -0
  65. data/lib/tableau_rest_api/util/upload.rb +29 -0
  66. data/lib/tableau_rest_api/version.rb +3 -0
  67. data/tableau_rest_api.gemspec +33 -0
  68. metadata +222 -0
@@ -0,0 +1,451 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '94'
20
+ Host:
21
+ - tableau.lvh.me
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 26 Jun 2017 11:04:37 GMT
29
+ Server:
30
+ - Tableau
31
+ Content-Type:
32
+ - application/json;charset=utf-8
33
+ Vary:
34
+ - Accept-Encoding
35
+ Content-Encoding:
36
+ - gzip
37
+ P3p:
38
+ - CP="NON"
39
+ X-Ua-Compatible:
40
+ - IE=Edge
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ Content-Length:
46
+ - '191'
47
+ body:
48
+ encoding: ASCII-8BIT
49
+ string: !binary |-
50
+ H4sIAAAAAAAAAz2Muw6CMBRA/+XONLltESibiYsxPonPrZQWsQiRIoPIvwuL
51
+ 01nOOT2oRme6agtZOoh7cEWrJxYZxEAlRTNLBUEmUuJz7RMZMCRhyDMaCOQ8
52
+ UuCBqqt2XBybcmxg8ODtdPOfsJRSIZggGTcz4huMiBSKEoaotM9NGEbpFLW1
53
+ 1dXoPzemSPavKMFg8Qksdu6+tvNvPadWlavly106KW4HRjfa5qdz/thdtzsj
54
+ YRh+idagZ80AAAA=
55
+ http_version:
56
+ recorded_at: Mon, 26 Jun 2017 11:04:40 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://tableau.lvh.me/api/2.6/sites
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers:
64
+ Accept:
65
+ - application/json
66
+ Accept-Encoding:
67
+ - gzip, deflate
68
+ User-Agent:
69
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
70
+ Content-Type:
71
+ - application/json
72
+ X-Tableau-Auth:
73
+ - mNfiSQq8S06Dz6k0vshMkA|oA1kclKIqsXva9ZR21NekgVWgjPYOPfa
74
+ Host:
75
+ - tableau.lvh.me
76
+ response:
77
+ status:
78
+ code: 200
79
+ message: OK
80
+ headers:
81
+ Date:
82
+ - Mon, 26 Jun 2017 11:04:37 GMT
83
+ Server:
84
+ - Tableau
85
+ Content-Type:
86
+ - application/json;charset=utf-8
87
+ Vary:
88
+ - Accept-Encoding
89
+ Content-Encoding:
90
+ - gzip
91
+ P3p:
92
+ - CP="NON"
93
+ X-Ua-Compatible:
94
+ - IE=Edge
95
+ X-Content-Type-Options:
96
+ - nosniff
97
+ X-Xss-Protection:
98
+ - 1; mode=block
99
+ Content-Length:
100
+ - '521'
101
+ body:
102
+ encoding: ASCII-8BIT
103
+ string: !binary |-
104
+ H4sIAAAAAAAAA92VS2sbMRDHv0rYcwb0Wj1yM22hhz4OaeihlKDHyBHY67CS
105
+ A23wd++oCZjY8SmH4t52/n/NSPoxo30c7v2yTL6VzTRcPfYIv2zXAefhauDD
106
+ 5V/huvzGHjJGQts0v1o8+LLyYdVlO+wuh1oa1l6gfwxXPx6HknqK5yyPwQET
107
+ LoCSqMBrwcAYmbh2TEobqebk173Se8x+u2okxM3UcGo384pkin1al+nzJvVV
108
+ 7568xZRuKs6V3Np833RYxFYekIQZH0qlG30stW3mXx+mflQ6T5u3uHc/lXVp
109
+ lCbGXmMbapxLwK/tjqoepCy3WNsiRqx7J/tVJSv6eIff/bze3r9I2l0+M7DC
110
+ SAzKgDZRgRrFCJ55A6OMiRtnMaPZM/hGG10TQ3FIwXv/T0E8X/ctJLSVNqGK
111
+ gFlJUMEKcIxZUFp6HS1qpdUxCXlIgjqt1WdEZ82D5ei1zQo4z5k6w3CaDgqF
112
+ cNl46WhoXuGhT/HQ584jcO6iiCPEmCIoZyUElT1oDCJIF6RIYc9jcdGJlGl5
113
+ 0akcjctte3Jv65N71mTYGJNmHIFj0tQp0kCI0oIMMmiT2IjcveyUV6F0JP8J
114
+ D0QntQMv6GGlHtH0khgEpmLOIotAP5ljHqdwnDuNFBTnnJ7UrCwDpZwGO6oR
115
+ Riu7TkOF+YjGCRjnyuLnbvcHHjntMMwIAAA=
116
+ http_version:
117
+ recorded_at: Mon, 26 Jun 2017 11:04:40 GMT
118
+ - request:
119
+ method: post
120
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ User-Agent:
130
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
131
+ Content-Type:
132
+ - application/json
133
+ X-Tableau-Auth:
134
+ - mNfiSQq8S06Dz6k0vshMkA|oA1kclKIqsXva9ZR21NekgVWgjPYOPfa
135
+ Content-Length:
136
+ - '94'
137
+ Host:
138
+ - tableau.lvh.me
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Date:
145
+ - Mon, 26 Jun 2017 11:04:37 GMT
146
+ Server:
147
+ - Tableau
148
+ Content-Type:
149
+ - application/json;charset=utf-8
150
+ Vary:
151
+ - Accept-Encoding
152
+ Content-Encoding:
153
+ - gzip
154
+ P3p:
155
+ - CP="NON"
156
+ X-Ua-Compatible:
157
+ - IE=Edge
158
+ X-Content-Type-Options:
159
+ - nosniff
160
+ X-Xss-Protection:
161
+ - 1; mode=block
162
+ Content-Length:
163
+ - '191'
164
+ body:
165
+ encoding: ASCII-8BIT
166
+ string: !binary |-
167
+ H4sIAAAAAAAAAz2MuQ6CQBQA/+XVbLIHCzxLiReNYjRquRcJiqALqIny72Jj
168
+ Nc3MvMF4Z13dlapqYfKGtuzcj6WFCTDFaCE1EspRk1C4kKiIUxLHwrIIqRCJ
169
+ gQBMU3fjYu+rsYEhgL51/j/hmjFEjsSKQpKwoAlRaBjhlBoXiiKOE/2Luubi
170
+ 6tEvM39ezftpnkWJkDd9atPc5R+J19l607/u5+VxLVV62O5OT9o8PGY38Zgt
171
+ YBi+jvHHbM0AAAA=
172
+ http_version:
173
+ recorded_at: Mon, 26 Jun 2017 11:04:41 GMT
174
+ - request:
175
+ method: get
176
+ uri: https://tableau.lvh.me/api/2.6/sites/1a10f5b9-029b-43e4-a620-773d1690338c/groups
177
+ body:
178
+ encoding: US-ASCII
179
+ string: ''
180
+ headers:
181
+ Accept:
182
+ - application/json
183
+ Accept-Encoding:
184
+ - gzip, deflate
185
+ User-Agent:
186
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
187
+ Content-Type:
188
+ - application/json
189
+ X-Tableau-Auth:
190
+ - iJrjIFuBQJ6835pbYsCQeQ|59mEOPuxqjHXO5aCWRTYw0ovr9Jp3vEG
191
+ Host:
192
+ - tableau.lvh.me
193
+ response:
194
+ status:
195
+ code: 200
196
+ message: OK
197
+ headers:
198
+ Date:
199
+ - Mon, 26 Jun 2017 11:04:37 GMT
200
+ Server:
201
+ - Tableau
202
+ Content-Type:
203
+ - application/json;charset=utf-8
204
+ Vary:
205
+ - Accept-Encoding
206
+ Content-Encoding:
207
+ - gzip
208
+ P3p:
209
+ - CP="NON"
210
+ X-Ua-Compatible:
211
+ - IE=Edge
212
+ X-Content-Type-Options:
213
+ - nosniff
214
+ X-Xss-Protection:
215
+ - 1; mode=block
216
+ Content-Length:
217
+ - '246'
218
+ body:
219
+ encoding: ASCII-8BIT
220
+ string: !binary |-
221
+ H4sIAAAAAAAAA42PO2+EMBCE/wpyfSv5Aba57pqkS5FHFaVY2wuyZPAJuBRB
222
+ /PdgEinpkm5mNPuNdmVX7OOIS8wjO6/F0cNtcDSxMxPsdARP8YOK5XwPlrxg
223
+ urxjTOhSiRXbTqyf8u06F8Kh2Pl1ZSEPGA/qiENppuwxlXYMu3Od8go1gu9s
224
+ A7UQGiznGoSsSRuptQ5u3/u+vVT3BVzd5al6pnmJY7+T/hxRjnsZGg51qzwI
225
+ QRpQSwnYkWmNQWUl/zWSUvUy0zT/B914F6xpCaQVEmrb7lRDFmRjnbbEaxTN
226
+ D/qRighfX7Dtbds+AW2Mu8Z7AQAA
227
+ http_version:
228
+ recorded_at: Mon, 26 Jun 2017 11:04:41 GMT
229
+ - request:
230
+ method: post
231
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
232
+ body:
233
+ encoding: UTF-8
234
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
235
+ headers:
236
+ Accept:
237
+ - application/json
238
+ Accept-Encoding:
239
+ - gzip, deflate
240
+ User-Agent:
241
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
242
+ Content-Type:
243
+ - application/json
244
+ X-Tableau-Auth:
245
+ - iJrjIFuBQJ6835pbYsCQeQ|59mEOPuxqjHXO5aCWRTYw0ovr9Jp3vEG
246
+ Content-Length:
247
+ - '94'
248
+ Host:
249
+ - tableau.lvh.me
250
+ response:
251
+ status:
252
+ code: 200
253
+ message: OK
254
+ headers:
255
+ Date:
256
+ - Mon, 26 Jun 2017 11:04:37 GMT
257
+ Server:
258
+ - Tableau
259
+ Content-Type:
260
+ - application/json;charset=utf-8
261
+ Vary:
262
+ - Accept-Encoding
263
+ Content-Encoding:
264
+ - gzip
265
+ P3p:
266
+ - CP="NON"
267
+ X-Ua-Compatible:
268
+ - IE=Edge
269
+ X-Content-Type-Options:
270
+ - nosniff
271
+ X-Xss-Protection:
272
+ - 1; mode=block
273
+ Content-Length:
274
+ - '191'
275
+ body:
276
+ encoding: ASCII-8BIT
277
+ string: !binary |-
278
+ H4sIAAAAAAAAAz2MywqCQBRA/+WuG5iXjdddCQUJRZAL2zkPYcqm0CkJ89+z
279
+ TauzOeeMYDpnXYi+bnvIRuh9dD96CxmwmtEm0UgoR02kcJLUS06JUsKyJVIh
280
+ UgMLMPcQ50XZtXMD0wKevev+E64ZQ+RIrGgSIhuakhoNI5xS46RolEr1L4r3
281
+ qwuzXxaHc97K9enk6Ubud0Xlk/z4ubwGs/aPNw6xtMHnSVpdW62wCExftqsb
282
+ TNMXoKYNQ80AAAA=
283
+ http_version:
284
+ recorded_at: Mon, 26 Jun 2017 11:04:41 GMT
285
+ - request:
286
+ method: get
287
+ uri: https://tableau.lvh.me/api/2.6/sites/1a10f5b9-029b-43e4-a620-773d1690338c/users
288
+ body:
289
+ encoding: US-ASCII
290
+ string: ''
291
+ headers:
292
+ Accept:
293
+ - application/json
294
+ Accept-Encoding:
295
+ - gzip, deflate
296
+ User-Agent:
297
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
298
+ Content-Type:
299
+ - application/json
300
+ X-Tableau-Auth:
301
+ - UKOZCl4BTTi0F4NJKYi5CQ|jvwcBipy9wtUdniC58Yklb79Kn1bjGAm
302
+ Host:
303
+ - tableau.lvh.me
304
+ response:
305
+ status:
306
+ code: 200
307
+ message: OK
308
+ headers:
309
+ Date:
310
+ - Mon, 26 Jun 2017 11:04:39 GMT
311
+ Server:
312
+ - Tableau
313
+ Content-Type:
314
+ - application/json;charset=utf-8
315
+ Vary:
316
+ - Accept-Encoding
317
+ Content-Encoding:
318
+ - gzip
319
+ P3p:
320
+ - CP="NON"
321
+ X-Ua-Compatible:
322
+ - IE=Edge
323
+ X-Content-Type-Options:
324
+ - nosniff
325
+ X-Xss-Protection:
326
+ - 1; mode=block
327
+ Content-Length:
328
+ - '298'
329
+ body:
330
+ encoding: ASCII-8BIT
331
+ string: !binary |-
332
+ H4sIAAAAAAAAA43Oy2oDIRQG4HdxHcHjZUZnl2WhdNGkXbR0oc6ZVJhLUZNe
333
+ Qt69Ggqh0EDBhf4e/vMdyZvdhdnmsMykO9YX3u0nh5F0BMjqHGzCF9YnYyXI
334
+ S7bj+mDDaN1YY0FOK7JPGFMtqBfSPR9J6MsfdwDGcEN7MSgqB6apNR4oZ8yj
335
+ FEPbalc6ZzvVJpsSTm78LEkKGe+Xc/8G4wHjup/CHFKONi+xDIw25dul0OsW
336
+ Bi1lDeXNFqBjshP6qYzgR8Y4F+w+vz4U1k0VFeyPTfDGGwVATd8PVHrlqGbS
337
+ UdNKVE4r47252GrJb9djwHf8mwJnStuVw8U/KK2HRhhhqOA9UAkNo8ZbTd1g
338
+ B9VoJcHjhbLFlGvJFc6VXS+n0zderWJD7QEAAA==
339
+ http_version:
340
+ recorded_at: Mon, 26 Jun 2017 11:04:41 GMT
341
+ - request:
342
+ method: post
343
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
344
+ body:
345
+ encoding: UTF-8
346
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
347
+ headers:
348
+ Accept:
349
+ - application/json
350
+ Accept-Encoding:
351
+ - gzip, deflate
352
+ User-Agent:
353
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
354
+ Content-Type:
355
+ - application/json
356
+ X-Tableau-Auth:
357
+ - UKOZCl4BTTi0F4NJKYi5CQ|jvwcBipy9wtUdniC58Yklb79Kn1bjGAm
358
+ Content-Length:
359
+ - '94'
360
+ Host:
361
+ - tableau.lvh.me
362
+ response:
363
+ status:
364
+ code: 200
365
+ message: OK
366
+ headers:
367
+ Date:
368
+ - Mon, 26 Jun 2017 11:04:39 GMT
369
+ Server:
370
+ - Tableau
371
+ Content-Type:
372
+ - application/json;charset=utf-8
373
+ Vary:
374
+ - Accept-Encoding
375
+ Content-Encoding:
376
+ - gzip
377
+ P3p:
378
+ - CP="NON"
379
+ X-Ua-Compatible:
380
+ - IE=Edge
381
+ X-Content-Type-Options:
382
+ - nosniff
383
+ X-Xss-Protection:
384
+ - 1; mode=block
385
+ Content-Length:
386
+ - '190'
387
+ body:
388
+ encoding: ASCII-8BIT
389
+ string: !binary |-
390
+ H4sIAAAAAAAAAz2MuQ6CQBQA/+XVvmQvWZ6doTLxFhK1Yw8SAkI41sQo/y42
391
+ VtPMzBts751vxjKvB1i9YShH/2PpYAU856xYGkImyKCSXmEeCYZaS8cjYlLG
392
+ FhZg22acF1lfzw1MCwiD7/8TYTgnEoROFktUBYsxJ8tRMGa9koXWsflFY1v5
393
+ ZvYpSfdtSoeTjNLM3Z9tdw64/rxslYTN9XHZyp3amb5b6zCocDtm21PU6Q1M
394
+ 0xcz03f0zQAAAA==
395
+ http_version:
396
+ recorded_at: Mon, 26 Jun 2017 11:04:41 GMT
397
+ - request:
398
+ method: post
399
+ uri: https://tableau.lvh.me/api/2.6/sites/1a10f5b9-029b-43e4-a620-773d1690338c/groups/5cbd879e-2812-4892-a7e8-258b68e04a15/users
400
+ body:
401
+ encoding: UTF-8
402
+ string: '{"user":{"id":"7c163939-32d1-4160-9ca8-bfaf568541ce"}}'
403
+ headers:
404
+ Accept:
405
+ - application/json
406
+ Accept-Encoding:
407
+ - gzip, deflate
408
+ User-Agent:
409
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
410
+ Content-Type:
411
+ - application/json
412
+ X-Tableau-Auth:
413
+ - 9CTNoT9OQ36TUdZvoqRu-A|yckCuIXmSL3M4MbrqA7us4uYPULQ6q7I
414
+ Content-Length:
415
+ - '54'
416
+ Host:
417
+ - tableau.lvh.me
418
+ response:
419
+ status:
420
+ code: 200
421
+ message: OK
422
+ headers:
423
+ Date:
424
+ - Mon, 26 Jun 2017 11:04:39 GMT
425
+ Server:
426
+ - Tableau
427
+ Content-Type:
428
+ - application/json;charset=utf-8
429
+ Vary:
430
+ - Accept-Encoding
431
+ Content-Encoding:
432
+ - gzip
433
+ P3p:
434
+ - CP="NON"
435
+ X-Ua-Compatible:
436
+ - IE=Edge
437
+ X-Content-Type-Options:
438
+ - nosniff
439
+ X-Xss-Protection:
440
+ - 1; mode=block
441
+ Content-Length:
442
+ - '124'
443
+ body:
444
+ encoding: ASCII-8BIT
445
+ string: !binary |-
446
+ H4sIAAAAAAAAA6tWKi1OLVKyqlbKTFGyUjJPNjQztjS21DU2SjHUNTE0M9C1
447
+ TE600E1KS0wzNbMwNTFMTlXSUcpLzE0Fqg5JLS4JBWnXUSrOLEkNys8BiYZl
448
+ ppaDxVIrSlKL8hJzHEtLMkDKPEE2KNXWAgDLim8cdAAAAA==
449
+ http_version:
450
+ recorded_at: Mon, 26 Jun 2017 11:04:42 GMT
451
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,224 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '94'
20
+ Host:
21
+ - tableau.lvh.me
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 26 Jun 2017 10:50:04 GMT
29
+ Server:
30
+ - Tableau
31
+ Content-Type:
32
+ - application/json;charset=utf-8
33
+ Vary:
34
+ - Accept-Encoding
35
+ Content-Encoding:
36
+ - gzip
37
+ P3p:
38
+ - CP="NON"
39
+ X-Ua-Compatible:
40
+ - IE=Edge
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ Content-Length:
46
+ - '192'
47
+ body:
48
+ encoding: ASCII-8BIT
49
+ string: !binary |-
50
+ H4sIAAAAAAAAAz2Muw6CMBRA/+XO3KQvKXXURKMxMagQ41baQggPtdRF5d+F
51
+ xeks55wPGO+s60Ot2wGWHxjq4GbWFpZANSXlolBImCpQcCdQx4yglNzSWBHO
52
+ EwMRmHsfpkXm26mBMYLX4Px/wgpKlWIKLS8XKEqSoFaGIiPEOMFLKZNijsK9
53
+ cf3k2zc21/y0Sb1e35J9Uwm2f6TfyyMWq8Ph3ZHnsbtVz6OveHve5rvMyLUI
54
+ VxjHH0cugHvNAAAA
55
+ http_version:
56
+ recorded_at: Mon, 26 Jun 2017 10:50:08 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://tableau.lvh.me/api/2.6/sites
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers:
64
+ Accept:
65
+ - application/json
66
+ Accept-Encoding:
67
+ - gzip, deflate
68
+ User-Agent:
69
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
70
+ Content-Type:
71
+ - application/json
72
+ X-Tableau-Auth:
73
+ - dz-kXVRFQraCZ8Jkg42JpQ|Tp64BLLzm0qOmZgqOrg3lSGVIUc7C4tX
74
+ Host:
75
+ - tableau.lvh.me
76
+ response:
77
+ status:
78
+ code: 200
79
+ message: OK
80
+ headers:
81
+ Date:
82
+ - Mon, 26 Jun 2017 10:50:05 GMT
83
+ Server:
84
+ - Tableau
85
+ Content-Type:
86
+ - application/json;charset=utf-8
87
+ Vary:
88
+ - Accept-Encoding
89
+ Content-Encoding:
90
+ - gzip
91
+ P3p:
92
+ - CP="NON"
93
+ X-Ua-Compatible:
94
+ - IE=Edge
95
+ X-Content-Type-Options:
96
+ - nosniff
97
+ X-Xss-Protection:
98
+ - 1; mode=block
99
+ Content-Length:
100
+ - '521'
101
+ body:
102
+ encoding: ASCII-8BIT
103
+ string: !binary |-
104
+ H4sIAAAAAAAAA92VS2sbMRDHv0rYcwb0Wj1yM22hhz4OaeihlKDHyBHY67CS
105
+ A23wd++oCZjY8SmH4t52/n/NSPoxo30c7v2yTL6VzTRcPfYIv2zXAefhauDD
106
+ 5V/huvzGHjJGQts0v1o8+LLyYdVlO+wuh1oa1l6gfwxXPx6HknqK5yyPwQET
107
+ LoCSqMBrwcAYmbh2TEobqebk173Se8x+u2okxM3UcGo384pkin1al+nzJvVV
108
+ 7568xZRuKs6V3Np833RYxFYekIQZH0qlG30stW3mXx+mflQ6T5u3uHc/lXVp
109
+ lCbGXmMbapxLwK/tjqoepCy3WNsiRqx7J/tVJSv6eIff/bze3r9I2l0+M7DC
110
+ SAzKgDZRgRrFCJ55A6OMiRtnMaPZM/hGG10TQ3FIwXv/T0E8X/ctJLSVNqGK
111
+ gFlJUMEKcIxZUFp6HS1qpdUxCXlIgjqt1WdEZ82D5ei1zQo4z5k6w3CaDgqF
112
+ cNl46WhoXuGhT/HQ584jcO6iiCPEmCIoZyUElT1oDCJIF6RIYc9jcdGJlGl5
113
+ 0akcjctte3Jv65N71mTYGJNmHIFj0tQp0kCI0oIMMmiT2IjcveyUV6F0JP8J
114
+ D0QntQMv6GGlHtH0khgEpmLOIotAP5ljHqdwnDuNFBTnnJ7UrCwDpZwGO6oR
115
+ Riu7TkOF+YjGCRjnyuLnbvcHHjntMMwIAAA=
116
+ http_version:
117
+ recorded_at: Mon, 26 Jun 2017 10:50:08 GMT
118
+ - request:
119
+ method: post
120
+ uri: https://tableau.lvh.me/api/2.6/auth/signin
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"credentials":{"name":"<TABLEAU_USERNAME>","password":"<TABLEAU_PASSWORD>","site":{"contentUrl":""}}}'
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ User-Agent:
130
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
131
+ Content-Type:
132
+ - application/json
133
+ X-Tableau-Auth:
134
+ - dz-kXVRFQraCZ8Jkg42JpQ|Tp64BLLzm0qOmZgqOrg3lSGVIUc7C4tX
135
+ Content-Length:
136
+ - '94'
137
+ Host:
138
+ - tableau.lvh.me
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Date:
145
+ - Mon, 26 Jun 2017 10:50:05 GMT
146
+ Server:
147
+ - Tableau
148
+ Content-Type:
149
+ - application/json;charset=utf-8
150
+ Vary:
151
+ - Accept-Encoding
152
+ Content-Encoding:
153
+ - gzip
154
+ P3p:
155
+ - CP="NON"
156
+ X-Ua-Compatible:
157
+ - IE=Edge
158
+ X-Content-Type-Options:
159
+ - nosniff
160
+ X-Xss-Protection:
161
+ - 1; mode=block
162
+ Content-Length:
163
+ - '192'
164
+ body:
165
+ encoding: ASCII-8BIT
166
+ string: !binary |-
167
+ H4sIAAAAAAAAAz2Muw6CMBRA/+XONukLy2VTowwmPjAQdWtLMQ0EImBiRP5d
168
+ WJzOcs4ZwLYud3XvddVBNEDnezfT5xAB04wWgUFCORoihZNELzklSomcLZEK
169
+ EVpYgG3qflqkbTU1MC7g1bn2P+GGMUSOJBdFQGRBQ6LRMsIptU6KQqnQzFHf
170
+ lK6efNyvbjqWPsGNZFdzOGTZU5y/8fOhd1tU7Ud2pT+ZW31fn5rjOzF4Sc8q
171
+ gHH8AQNfkTLNAAAA
172
+ http_version:
173
+ recorded_at: Mon, 26 Jun 2017 10:50:08 GMT
174
+ - request:
175
+ method: post
176
+ uri: https://tableau.lvh.me/api/2.6/sites/1a10f5b9-029b-43e4-a620-773d1690338c/groups
177
+ body:
178
+ encoding: UTF-8
179
+ string: '{"group":{"name":"A Group For Testing"}}'
180
+ headers:
181
+ Accept:
182
+ - application/json
183
+ Accept-Encoding:
184
+ - gzip, deflate
185
+ User-Agent:
186
+ - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
187
+ Content-Type:
188
+ - application/json
189
+ X-Tableau-Auth:
190
+ - 9KAYaG4iR9C41XbNNVVq3Q|GqgaFE97rz4skiPbYnZBPoOxRb9SUQ75
191
+ Content-Length:
192
+ - '40'
193
+ Host:
194
+ - tableau.lvh.me
195
+ response:
196
+ status:
197
+ code: 201
198
+ message: Created
199
+ headers:
200
+ Date:
201
+ - Mon, 26 Jun 2017 10:50:05 GMT
202
+ Server:
203
+ - Tableau
204
+ Location:
205
+ - "/api/2.6/sites/1a10f5b9-029b-43e4-a620-773d1690338c/groups/bf3c3a6a-cf85-4116-8006-124e672666db"
206
+ Content-Type:
207
+ - application/json;charset=utf-8
208
+ Content-Length:
209
+ - '84'
210
+ P3p:
211
+ - CP="NON"
212
+ X-Ua-Compatible:
213
+ - IE=Edge
214
+ X-Content-Type-Options:
215
+ - nosniff
216
+ X-Xss-Protection:
217
+ - 1; mode=block
218
+ body:
219
+ encoding: UTF-8
220
+ string: '{"group":{"id":"bf3c3a6a-cf85-4116-8006-124e672666db","name":"A Group
221
+ For Testing"}}'
222
+ http_version:
223
+ recorded_at: Mon, 26 Jun 2017 10:50:09 GMT
224
+ recorded_with: VCR 3.0.3