namely 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +51 -0
  6. data/LICENSE +22 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +125 -0
  9. data/Rakefile +16 -0
  10. data/lib/namely.rb +114 -0
  11. data/lib/namely/authenticator.rb +164 -0
  12. data/lib/namely/country.rb +9 -0
  13. data/lib/namely/currency_type.rb +9 -0
  14. data/lib/namely/event.rb +9 -0
  15. data/lib/namely/exceptions.rb +13 -0
  16. data/lib/namely/field.rb +9 -0
  17. data/lib/namely/job_tier.rb +9 -0
  18. data/lib/namely/profile.rb +13 -0
  19. data/lib/namely/report.rb +9 -0
  20. data/lib/namely/resource_gateway.rb +81 -0
  21. data/lib/namely/restful_model.rb +150 -0
  22. data/lib/namely/version.rb +3 -0
  23. data/namely.gemspec +30 -0
  24. data/spec/fixtures/vcr_cassettes/country_head.yml +51 -0
  25. data/spec/fixtures/vcr_cassettes/country_head_missing.yml +50 -0
  26. data/spec/fixtures/vcr_cassettes/country_index.yml +121 -0
  27. data/spec/fixtures/vcr_cassettes/country_show.yml +68 -0
  28. data/spec/fixtures/vcr_cassettes/country_show_missing.yml +54 -0
  29. data/spec/fixtures/vcr_cassettes/currencytype_index.yml +64 -0
  30. data/spec/fixtures/vcr_cassettes/event_head.yml +51 -0
  31. data/spec/fixtures/vcr_cassettes/event_head_missing.yml +50 -0
  32. data/spec/fixtures/vcr_cassettes/event_index.yml +88 -0
  33. data/spec/fixtures/vcr_cassettes/event_show.yml +62 -0
  34. data/spec/fixtures/vcr_cassettes/event_show_missing.yml +54 -0
  35. data/spec/fixtures/vcr_cassettes/field_index.yml +207 -0
  36. data/spec/fixtures/vcr_cassettes/jobtier_index.yml +103 -0
  37. data/spec/fixtures/vcr_cassettes/profile_create.yml +85 -0
  38. data/spec/fixtures/vcr_cassettes/profile_create_failed.yml +54 -0
  39. data/spec/fixtures/vcr_cassettes/profile_head.yml +51 -0
  40. data/spec/fixtures/vcr_cassettes/profile_head_missing.yml +50 -0
  41. data/spec/fixtures/vcr_cassettes/profile_index.yml +979 -0
  42. data/spec/fixtures/vcr_cassettes/profile_show.yml +91 -0
  43. data/spec/fixtures/vcr_cassettes/profile_show_missing.yml +54 -0
  44. data/spec/fixtures/vcr_cassettes/profile_show_updated.yml +91 -0
  45. data/spec/fixtures/vcr_cassettes/profile_update.yml +95 -0
  46. data/spec/fixtures/vcr_cassettes/profile_update_revert.yml +95 -0
  47. data/spec/fixtures/vcr_cassettes/report_head.yml +51 -0
  48. data/spec/fixtures/vcr_cassettes/report_head_missing.yml +50 -0
  49. data/spec/fixtures/vcr_cassettes/report_show.yml +185 -0
  50. data/spec/fixtures/vcr_cassettes/report_show_missing.yml +54 -0
  51. data/spec/fixtures/vcr_cassettes/token.yml +57 -0
  52. data/spec/fixtures/vcr_cassettes/token_refresh.yml +57 -0
  53. data/spec/namely/authenticator_spec.rb +143 -0
  54. data/spec/namely/configuration_spec.rb +33 -0
  55. data/spec/namely/country_spec.rb +11 -0
  56. data/spec/namely/currency_type_spec.rb +5 -0
  57. data/spec/namely/event_spec.rb +11 -0
  58. data/spec/namely/field_spec.rb +5 -0
  59. data/spec/namely/job_tier_spec.rb +5 -0
  60. data/spec/namely/profile_spec.rb +25 -0
  61. data/spec/namely/report_spec.rb +8 -0
  62. data/spec/namely/resource_gateway_spec.rb +93 -0
  63. data/spec/shared_examples/a_model_with_a_create_action.rb +24 -0
  64. data/spec/shared_examples/a_model_with_a_show_action.rb +38 -0
  65. data/spec/shared_examples/a_model_with_an_index_action.rb +17 -0
  66. data/spec/shared_examples/a_model_with_an_update_action.rb +37 -0
  67. data/spec/spec_helper.rb +49 -0
  68. metadata +280 -0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/profiles/20332458-c1fe-412f-bcb8-01622f04a35d?access_token=<TEST_ACCESS_TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Tue, 04 Nov 2014 16:34:47 GMT
29
+ Server:
30
+ - nginx
31
+ Status:
32
+ - 200 OK
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ - max-age=31536000; includeSubDomains;
36
+ Vary:
37
+ - Accept-Encoding
38
+ X-Rack-Cache:
39
+ - miss
40
+ X-Request-Id:
41
+ - 45076380-7ba4-49aa-b9b1-d717ffb69841
42
+ X-Runtime:
43
+ - '0.093650'
44
+ Content-Length:
45
+ - '1677'
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: ASCII-8BIT
50
+ string: !binary |-
51
+ H4sIAAAAAAAAA71X64/jthH/Vxb62pVX1MOP/ZTLpUULNG2AuwZIi4CgpJHN
52
+ LkWpJOVb5+D/vTOkJD+3XSBIABs2Z4ac4Tx+M/wa9aZrpAIbPf/rayTr6DlK
53
+ kyxL82IdV6yBOGdpE5dVuY4TtkzTJslFVtTRYwStkArFFcjtznX6G3gVba9g
54
+ UXUtshtprONatIAyfx1lkK7Eifw9gHVgkDpYMNw64QY0JBKVk3sgYalfkPA1
55
+ +ndXciedAlp4K8VymZarSsQrljdxXm5EvCmXIk7FuixWrEnWqwZPGDdFP/7w
56
+ +PBRSdDu4ROYvazwxsfjYyRbsUW+HpR6jFpZ1wom63B3b6ABY6A+o/02poRz
57
+ q53QW+AGhEVnjVahW4zjtXC0OWFPrHhKE8bwxBp6ZA0GJq4PS6+6AwD3prEg
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vJhuywA3q0mi2ighYIzi5k
75
+ O+ccIQwBi7oQVdoVP6L+fkPlPtjo2cCaBx2stjq0rXCzmfEFWxXiDzTYMgzs
76
+ 8SpktW8MQdLAf7ge7WuUFfPEFeq4lRdAgc3v9WI9+WzaVg41GovDIoakroJ7
77
+ qUn6QnEdYpka227fWemNCd6erEGHVr658maC13OiPwdzDKG+5Y7gvoE7YsRG
78
+ gCRDOjPL4RB7fu2uB32GF0Qi83DPiThbOXLK+aZSI0P4mggTwWjGLR1DLXp8
79
+ Y+wp1t4ZfjZEw/Z+CsRikbUfJ2j/G8ybQ+y+54BfbE9jRE6EG+HdgLYgolpE
80
+ 4GpCwSvixaax2aEP9YSO4+KOWAWjCfjnDpv6GL2vZItzjqPRLoO0rpolxM06
81
+ x+dVucY2XGZVvGqydN2USbpMV9H1RgINWG9YlkFcbKoizpd5Ga+zMonZKq+B
82
+ NTh1lWV0xPu24AQV/ZiBLAyKVFVpkhzPHlXT029x8aQZAWCm+cfJLDq+l2ax
83
+ 8HY8zsPlxWPt9KhMWbHO//cTCEcG46eahMbCMO7TVrYiAjZESmhBnghNt4jT
84
+ 5DMrnnP2nBSL9XKJA82zR4ahr6+Fl3G6/Jwmzyx9zrMFy4pZWFocDBoxKBRu
85
+ hLKAlxV+kBjtXqIDt8P7H3oUgqsX9btCF3aN78zPGP2/+MjzdPGq7GtEr1N8
86
+ 44xuxzRTshJUnU97XS+onF9bhbDRCmfj8Nyou2ogRFhYrCRR2x2Aa9XC/3p3
87
+ SxqkCJKevMFP77Hzqe6+aNUJP1BjFZXjsHl8HC/7zvy+f1n2+132PXa+edmf
88
+ j8f/AjJQ3/E7EQAA
89
+ http_version:
90
+ recorded_at: Tue, 04 Nov 2014 16:34:47 GMT
91
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/profiles/this-is-almost-certainly-not-the-id-of-any-model?access_token=<TEST_ACCESS_TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Cache-Control:
22
+ - no-cache
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Tue, 04 Nov 2014 16:34:47 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ Status:
32
+ - 404 Not Found
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ Vary:
36
+ - Accept-Encoding
37
+ X-Rack-Cache:
38
+ - miss
39
+ X-Request-Id:
40
+ - 8229a905-b915-446e-ad4c-9889724d96d9
41
+ X-Runtime:
42
+ - '0.015833'
43
+ Content-Length:
44
+ - '65'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: ASCII-8BIT
49
+ string: !binary |-
50
+ H4sIAAAAAAAAA6tWyk0tLk5MT1WyUgooyk/LzElVyMsvUUjLL81LUdJRSi0q
51
+ yi8qVrLKK83JqQUAmBVkdi0AAAA=
52
+ http_version:
53
+ recorded_at: Tue, 04 Nov 2014 16:34:47 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/profiles/20332458-c1fe-412f-bcb8-01622f04a35d?access_token=<TEST_ACCESS_TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Tue, 04 Nov 2014 16:34:49 GMT
29
+ Server:
30
+ - nginx
31
+ Status:
32
+ - 200 OK
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ - max-age=31536000; includeSubDomains;
36
+ Vary:
37
+ - Accept-Encoding
38
+ X-Rack-Cache:
39
+ - miss
40
+ X-Request-Id:
41
+ - b2ef76de-eff8-40b7-b378-52506053a04c
42
+ X-Runtime:
43
+ - '0.081152'
44
+ Content-Length:
45
+ - '1684'
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: ASCII-8BIT
50
+ string: !binary |-
51
+ H4sIAAAAAAAAA71X64/juA3/Vwb+2nHG8iOP+XS72ytaoNcesNsCbXEQZJtO
52
+ dCPLriRnJ7fI/15Ssp3ntAMcrkCCRCQlUnz8SH2LetM1UoGNnv/1LZJ19Byl
53
+ SZalebGOK9ZAnLO0icuqXMcJW6Zpk+QiK+roMYJWSIXiCuR25zr9HbyKtlew
54
+ qLoW2Y001nEtWkCZP48ySFfiRP4BwDowSB0sGG6dcAMaEonKyT2QsNQvSPgW
55
+ /dyV3EmngBbeSrFcpuWqEvGK5U2clxsRb8qliFOxLosVa5L1qsETxk3R3398
56
+ fPikJGj38BnMXlZ44+PxMZKt2CJfD0o9Rq2sawWTdR9BmNqqA57SG2jAGKgn
57
+ HtJ+G5PCudVO6C1wA8Ki00br0D3G8Vo42pywJ1Y8pQljeGINPbIGAxPXh6dX
58
+ 3QGAe9NYEOzB4IFC8Sl4E8GvpyiNYfmO7qoOYzxL2YWDu6ZBUzlu0FwPbYnx
59
+ e47yZL0oimLB0iw/ydTSQIUmS6HOZFCkOMn0u07Dm9xGvF5oRVt6oQ+87Uqp
60
+ zrcVy9UaxXZdezoS10FupmQsSVEBfkdZip2oawPWMuT/EUkP5KiRlk60FGmV
61
+ dIdp/Yn++5C40cOfPuD6F9nj302SsoQ2dIN25hD4f/tMwQ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oAkQzozy+EQe37trgd9hhdEIvNwz4k4WzlyyvmmUiND+JoIE8Fo
79
+ xi0dQy16fGvsKdbeGX42RMP2fgrEYpG1Hydo/xvMm0PsvueAX2xPY0ROhBvh
80
+ 3YC2IKJaROBqQsEr4sWmsdmhD/WEjuPijlgFown45w6b+hi9s2SLc46j0S6D
81
+ tK6aJcTNOsdnVrnGNlxmVbxqsnTdlEm6TFfR9UYCDVhvWJZBXGyqIs6XeRmv
82
+ szKJ2SqvgTU4dZVldMT7tuAEFf2YgSwMilRVaZIczx5X0xNwcfGkGQFgpvnH
83
+ ySw6vptmsfCGPM7D5cWj7fS4TFmxzv/7EwhHBuOnmoTGwjDu01a2IgI2REpo
84
+ QZ4ITbeI0+QLK55z9pwUi/VyiQPNs0eGoa+vhZdxuvySJs8sfc6zBcuKWVha
85
+ HAwaMSgUboSygJcVfpAY7V6iA7fD+x96FIKrl/W7Qhd2je/MLxj9P/nI83Tx
86
+ quxrRK9UfOOMbsc0U7ISVJ1Pe10vqJxfW4Ww0Qpn4/DcqLtqIERYWKwkUdsd
87
+ gGvVwv96d0sapAiSnrzBT++x86nuvmrVCT9QYxWV47B5fBwv+878vn9Z9v+7
88
+ 7HvsfPOyPx2P/wFOw5oeQxEAAA==
89
+ http_version:
90
+ recorded_at: Tue, 04 Nov 2014 16:34:49 GMT
91
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/profiles/20332458-c1fe-412f-bcb8-01622f04a35d
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"profiles":[{"middle_name":"Beardsly","email":"leighton@example.com"}],"access_token":"<TEST_ACCESS_TOKEN>"}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '122'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ Content-Encoding:
28
+ - gzip
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Date:
32
+ - Tue, 04 Nov 2014 16:34:48 GMT
33
+ Server:
34
+ - nginx/1.6.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ - max-age=31536000; includeSubDomains;
40
+ Vary:
41
+ - Accept-Encoding
42
+ X-Rack-Cache:
43
+ - invalidate, pass
44
+ X-Request-Id:
45
+ - 2d0e55f9-c3f8-4d5b-825d-9fa2b613f20c
46
+ X-Runtime:
47
+ - '0.221251'
48
+ Content-Length:
49
+ - '1684'
50
+ Connection:
51
+ - keep-alive
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: !binary |-
55
+ H4sIAAAAAAAAA71X64/juA3/Vwb+2nHG8iOP+XS72ytaoNcesNsCbXEQZJtO
56
+ dCPLriRnJ7fI/15Ssp3ntAMcrkCCRCQlUnz8SH2LetM1UoGNnv/1LZJ19Byl
57
+ SZalebGOK9ZAnLO0icuqXMcJW6Zpk+QiK+roMYJWSIXiCuR25zr9HbyKtlew
58
+ qLoW2Y001nEtWkCZP48ySFfiRP4BwDowSB0sGG6dcAMaEonKyT2QsNQvSPgW
59
+ /dyV3EmngBbeSrFcpuWqEvGK5U2clxsRb8qliFOxLosVa5L1qsETxk3R3398
60
+ fPikJGj38BnMXlZ44+PxMZKt2CJfD0o9Rq2sawWTdR9BmNqqA57SG2jAGKgn
61
+ HtJ+G5PCudVO6C1wA8Ki00br0D3G8Vo42pywJ1Y8pQljeGINPbIGAxPXh6dX
62
+ 3QGAe9NYEOzB4IFC8Sl4E8GvpyiNYfmO7qoOYzxL2YWDu6ZBUzlu0FwPbYnx
63
+ e47yZL0oimLB0iw/ydTSQIUmS6HOZFCkOMn0u07Dm9xGvF5oRVt6oQ+87Uqp
64
+ zrcV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JUXQIHN7/ViPfls2lYONRqL
81
+ wyKGpK6Ce6lJ+kJxHWKZGttu31npjQnenqxBh1a+ufJmgtdzoj8HcwyhvuWO
82
+ 4L6BO2LERoAkQzozy+EQe37trgd9hhdEIvNwz4k4WzlyyvmmUiND+JoIE8Fo
83
+ xi0dQy16fGvsKdbeGX42RMP2fgrEYpG1Hydo/xvMm0PsvueAX2xPY0ROhBvh
84
+ 3YC2IKJaROBqQsEr4sWmsdmhD/WEjuPijlgFown45w6b+hi9s2SLc46j0S6D
85
+ tK6aJcTNOsdnVrnGNlxmVbxqsnTdlEm6TFfR9UYCDVhvWJZBXGyqIs6XeRmv
86
+ szKJ2SqvgTU4dZVldMT7tuAEFf2YgSwMilRVaZIczx5X0xNwcfGkGQFgpvnH
87
+ ySw6vptmsfCGPM7D5cWj7fS4TFmxzv/7EwhHBuOnmoTGwjDu01a2IgI2REpo
88
+ QZ4ITbeI0+QLK55z9pwUi/VyiQPNs0eGoa+vhZdxuvySJs8sfc6zBcuKWVha
89
+ HAwaMSgUboSygJcVfpAY7V6iA7fD+x96FIKrl/W7Qhd2je/MLxj9P/nI83Tx
90
+ quxrRK9UfOOMbsc0U7ISVJ1Pe10vqJxfW4Ww0Qpn4/DcqLtqIERYWKwkUdsd
91
+ gGvVwv96d0sapAiSnrzBT++x86nuvmrVCT9QYxWV47B5fBwv+878vn9Z9v+7
92
+ 7HvsfPOyPx2P/wFOw5oeQxEAAA==
93
+ http_version:
94
+ recorded_at: Tue, 04 Nov 2014 16:34:49 GMT
95
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/profiles/20332458-c1fe-412f-bcb8-01622f04a35d
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"profiles":[{"middle_name":"","email":"leighton@example.com"}],"access_token":"<TEST_ACCESS_TOKEN>"}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '114'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ Content-Encoding:
28
+ - gzip
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Date:
32
+ - Tue, 04 Nov 2014 16:34:49 GMT
33
+ Server:
34
+ - nginx/1.6.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ - max-age=31536000; includeSubDomains;
40
+ Vary:
41
+ - Accept-Encoding
42
+ X-Rack-Cache:
43
+ - invalidate, pass
44
+ X-Request-Id:
45
+ - 0950f3b9-c16a-4b2b-b16d-20ef06e0102e
46
+ X-Runtime:
47
+ - '0.187326'
48
+ Content-Length:
49
+ - '1677'
50
+ Connection:
51
+ - keep-alive
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: !binary |-
55
+ H4sIAAAAAAAAA71X64/jthH/Vxb62pVX1MOP/ZTLpUULNG2AuwZIi4CgpJHN
56
+ LkWpJOVb5+D/vTOkJD+3XSBIABs2Z4ac4Tx+M/wa9aZrpAIbPf/rayTr6DlK
57
+ kyxL82IdV6yBOGdpE5dVuY4TtkzTJslFVtTRYwStkArFFcjtznX6G3gVba9g
58
+ UXUtshtprONatIAyfx1lkK7Eifw9gHVgkDpYMNw64QY0JBKVk3sgYalfkPA1
59
+ +ndXciedAlp4K8VymZarSsQrljdxXm5EvCmXIk7FuixWrEnWqwZPGDdFP/7w
60
+ +PBRSdDu4ROYvazwxsfjYyRbsUW+HpR6jFpZ1wom63B3b6ABY6A+o/02poRz
61
+ q53QW+AGhEVnjVahW4zjtXC0OWFPrHhKE8bwxBp6ZA0GJq4PS6+6AwD3prEg
62
+ 2IPBA4XiU9Amgl9P0RnD8Q3dVR3GOJayCwd3TYOmctyguR7a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jo2cCaBx2stjq0rXCzmfEFWxXiDzTYMgzs
80
+ 8SpktW8MQdLAf7ge7WuUFfPEFeq4lRdAgc3v9WI9+WzaVg41GovDIoakroJ7
81
+ qUn6QnEdYpka227fWemNCd6erEGHVr658maC13OiPwdzDKG+5Y7gvoE7YsRG
82
+ gCRDOjPL4RB7fu2uB32GF0Qi83DPiThbOXLK+aZSI0P4mggTwWjGLR1DLXp8
83
+ Y+wp1t4ZfjZEw/Z+CsRikbUfJ2j/G8ybQ+y+54BfbE9jRE6EG+HdgLYgolpE
84
+ 4GpCwSvixaax2aEP9YSO4+KOWAWjCfjnDpv6GL2vZItzjqPRLoO0rpolxM06
85
+ x+dVucY2XGZVvGqydN2USbpMV9H1RgINWG9YlkFcbKoizpd5Ga+zMonZKq+B
86
+ NTh1lWV0xPu24AQV/ZiBLAyKVFVpkhzPHlXT029x8aQZAWCm+cfJLDq+l2ax
87
+ 8HY8zsPlxWPt9KhMWbHO//cTCEcG46eahMbCMO7TVrYiAjZESmhBnghNt4jT
88
+ 5DMrnnP2nBSL9XKJA82zR4ahr6+Fl3G6/Jwmzyx9zrMFy4pZWFocDBoxKBRu
89
+ hLKAlxV+kBjtXqIDt8P7H3oUgqsX9btCF3aN78zPGP2/+MjzdPGq7GtEr1N8
90
+ 44xuxzRTshJUnU97XS+onF9bhbDRCmfj8Nyou2ogRFhYrCRR2x2Aa9XC/3p3
91
+ SxqkCJKevMFP77Hzqe6+aNUJP1BjFZXjsHl8HC/7zvy+f1n2+132PXa+edmf
92
+ j8f/AjJQ3/E7EQAA
93
+ http_version:
94
+ recorded_at: Tue, 04 Nov 2014 16:34:49 GMT
95
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/reports/bbf089f6-90c5-473c-8928-058014a462c9?access_token=<TEST_ACCESS_TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Tue, 04 Nov 2014 16:34:49 GMT
29
+ Server:
30
+ - nginx
31
+ Status:
32
+ - 200 OK
33
+ Strict-Transport-Security:
34
+ - max-age=31536000
35
+ - max-age=31536000; includeSubDomains;
36
+ Vary:
37
+ - Accept-Encoding
38
+ X-Rack-Cache:
39
+ - miss
40
+ X-Request-Id:
41
+ - 99be15ae-7b20-4872-b501-ffe7bfb3fdb5
42
+ X-Runtime:
43
+ - '0.069153'
44
+ Connection:
45
+ - keep-alive
46
+ body:
47
+ encoding: UTF-8
48
+ string: ''
49
+ http_version:
50
+ recorded_at: Tue, 04 Nov 2014 16:34:49 GMT
51
+ recorded_with: VCR 2.9.3