chartmogul-ruby 1.7.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +44 -0
  3. data/.rspec +0 -0
  4. data/2.0-Upgrade.md +9 -0
  5. data/README.md +8 -2
  6. data/changelog.md +14 -0
  7. data/chartmogul-ruby.gemspec +1 -1
  8. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +67 -119
  9. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +43 -0
  10. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +83 -0
  11. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +37 -0
  12. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +44 -0
  13. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +17 -14
  14. data/fixtures/vcr_cassettes/{ChartMogul_Metrics_Activity → ChartMogul_Metrics_Customers_Activity}/behaves_like_Pageable/should_be_pageable.yml +0 -0
  15. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +41 -0
  16. data/fixtures/vcr_cassettes/{ChartMogul_Metrics_Subscription → ChartMogul_Metrics_Customers_Subscription}/behaves_like_Pageable/should_be_pageable.yml +0 -0
  17. data/fixtures/vcr_cassettes/{ChartMogul_Metrics_Subscription → ChartMogul_Metrics_Customers_Subscription}/should_have_Subscription_entries.yml +0 -0
  18. data/lib/chartmogul.rb +10 -3
  19. data/lib/chartmogul/api/actions/all.rb +1 -1
  20. data/lib/chartmogul/api/actions/create.rb +2 -2
  21. data/lib/chartmogul/api/actions/custom.rb +1 -1
  22. data/lib/chartmogul/api/actions/retrieve.rb +2 -1
  23. data/lib/chartmogul/api/actions/update.rb +2 -2
  24. data/lib/chartmogul/api_resource.rb +8 -4
  25. data/lib/chartmogul/concerns/pageable_with_anchor.rb +14 -0
  26. data/lib/chartmogul/config_attributes.rb +17 -1
  27. data/lib/chartmogul/customer.rb +2 -2
  28. data/lib/chartmogul/metrics/activities_export.rb +38 -0
  29. data/lib/chartmogul/metrics/activity.rb +12 -8
  30. data/lib/chartmogul/metrics/customers/activity.rb +38 -0
  31. data/lib/chartmogul/metrics/customers/subscription.rb +41 -0
  32. data/lib/chartmogul/utils/hash_snake_caser.rb +9 -2
  33. data/lib/chartmogul/utils/json_parser.rb +2 -4
  34. data/lib/chartmogul/version.rb +1 -1
  35. data/pre-commit.example +0 -0
  36. metadata +18 -9
  37. data/.travis.yml +0 -25
  38. data/lib/chartmogul/metrics/subscription.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 121298d0201238ec46cdc41e17f1ac76712b8f11a5e3b5dc584d2e87ab0eebbd
4
- data.tar.gz: 2f14880133e609cd07c8ffa42cbc792e5bdd969adbb72eb0fd185fc157f670ef
3
+ metadata.gz: 33e208966c719bffc9d8d9d181e4644d65b46ec358874ecf2a81cfc1e8e048e6
4
+ data.tar.gz: 6cfac8ebad05c2f72de739dbf6658a08c19a49390690fb5cf606b8f7e30b7c92
5
5
  SHA512:
6
- metadata.gz: 19d2d3f23a6388c7c466a54102d3187abe88f63b2e543080288c28a9b66aaa2ae97ee6fc5a348dd56b392c424fe8e634d577098ccf32af509c1e43378c2af210
7
- data.tar.gz: 71cd95d2dd035e73923b44d5c09d1650367c16e1feb6edd217ad962ba6b3772819d5f0798b908d6e37793679572875ab6c802123bbce7a8360c010d99a1624f4
6
+ metadata.gz: b3a003808b751464816eae04ce90cfb84d131e3dca1542f2038399a6ed61e5cc1ab235342a563bce20ccfdfd66d2dd7a1f75d4e8dd52406c79acbf733ed5cc04
7
+ data.tar.gz: 9a1dbeb5328f677ffae281290c0fc278b82fdb86dfe05f3c562f8c509608b42fe717bd040361224e9eb1a82a01205674c49192d08945e2101521bbd58ad91dae
@@ -0,0 +1,44 @@
1
+ name: Run specs and generate Code Climate report
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7]
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Set up Ruby ${{ matrix.ruby-version }}
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby-version }}
19
+ bundler-cache: true
20
+ - name: Install dependencies
21
+ run: bundle install
22
+ - name: Set ENV for codeclimate (pull_request)
23
+ run: |
24
+ git fetch --no-tags --prune --depth=1 origin +refs/heads/$GITHUB_HEAD_REF:refs/remotes/origin/$GITHUB_HEAD_REF
25
+ echo "GIT_BRANCH=$GITHUB_HEAD_REF" >> $GITHUB_ENV
26
+ echo "GIT_COMMIT_SHA=$(git rev-parse origin/$GITHUB_HEAD_REF)" >> $GITHUB_ENV
27
+ if: github.event_name == 'pull_request'
28
+ - name: Set ENV for codeclimate (push)
29
+ run: |
30
+ echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
31
+ echo "GIT_COMMIT_SHA=$GITHUB_SHA" >> $GITHUB_ENV
32
+ if: github.event_name == 'push'
33
+ - name: Install Code Climate test report
34
+ run: |
35
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
36
+ chmod +x ./cc-test-reporter
37
+ ./cc-test-reporter before-build
38
+ - name: Run tests
39
+ run: bundle exec rake
40
+ - name: Send Report to Code Climate
41
+ env:
42
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
43
+ if: ${{ success() }}
44
+ run: ./cc-test-reporter after-build
data/.rspec CHANGED
File without changes
data/2.0-Upgrade.md ADDED
@@ -0,0 +1,9 @@
1
+ # Upgrading to chartmogul-ruby 2.0.0
2
+
3
+ The gem upgrade brings breaking changes to the Metrics API. All other APIs remain unaffected. Please note the following changes:
4
+
5
+ * If you used the Metrics API to get a customer's activities or subscriptions, make the following changes in the namespace
6
+ - `ChartMogul::Metrics::Activity.all('cus_58c7d166-3bd1-4c10-948e-e68bb0fa2478')` should be replaced with `ChartMogul::Metrics::Customers::Activity.all('cus_58c7d166-3bd1-4c10-948e-e68bb0fa2478')`
7
+ - `ChartMogul::Metrics::Subscription.all('cus_3f6f53d3-bca7-4fcd-ad47-345180ef329b')` should be replace with `ChartMogul::Metrics::Customers::Subscription.all('cus_3f6f53d3-bca7-4fcd-ad47-345180ef329b')`
8
+
9
+
data/README.md CHANGED
@@ -8,7 +8,6 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://badge.fury.io/rb/chartmogul-ruby"><img src="https://badge.fury.io/rb/chartmogul-ruby.svg" alt="Gem Version"></a>
11
- <a href="https://travis-ci.org/chartmogul/chartmogul-ruby"><img src="https://travis-ci.org/chartmogul/chartmogul-ruby.svg?branch=main" alt="Travis project"></a>
12
11
  <a href="https://codeclimate.com/github/chartmogul/chartmogul-ruby/test_coverage"><img src="https://api.codeclimate.com/v1/badges/40e8bdff4d1dbf2451de/test_coverage" /></a>
13
12
  </p>
14
13
 
@@ -53,13 +52,20 @@ This gem supports Ruby 2.3 and above.
53
52
  ## Configuration
54
53
 
55
54
  Configure `chartmogul-ruby` with your Account Token and Secret Key, available from the administration section of your ChartMogul account.
55
+ You can either do this in the global scope for the whole runtime (eg. in initializer):
56
56
 
57
+ ```ruby
58
+ ChartMogul.global_account_token = '<Account key goes here>'
59
+ ChartMogul.global_secret_key = '<Secret key goes here>'
60
+ ```
61
+
62
+ Or in a thread-safe scope for the current thread only (eg. different accounts in different async jobs):
57
63
  ```ruby
58
64
  ChartMogul.account_token = '<Account key goes here>'
59
65
  ChartMogul.secret_key = '<Secret key goes here>'
60
66
  ```
61
67
 
62
- Configuration is threadsafe and applied only to the current thread.
68
+ Thread-safe configuration is used if available, otherwise global is used.
63
69
 
64
70
  Test your authentication:
65
71
  ```ruby
data/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # chartmogul-ruby Change Log
2
2
 
3
+ ## Version 2.1.0 - 9 July 2021
4
+ - Adds ChartMogul::Metrics::ActivitiesExport class to support async activities export endpoint
5
+
6
+ ## Version 2.0.0 - 25 June 2021
7
+ - Moves customer scoped Metrics::Activities and Metrics::Subscriptions under Metrics::Customers namespace
8
+ - Adds unscoped activities API endpoint
9
+
10
+ ## Version 1.7.2 - 16 March 2021
11
+ - Fix bug preventing instantiating attributes on ChartMogul::Customers objects
12
+
13
+ ## Version 1.7.1 - 8 March 2021
14
+ - Adds amount_in_cents to payment for partial payments
15
+ - Adds account API endpoint
16
+
3
17
  ## Version 1.6.9 - 10 December 2020
4
18
  - Fix ChartMogul::Customers class
5
19
 
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'faraday', '~> 1.0.0'
24
+ spec.add_dependency 'faraday', '~> 1.0'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 2'
27
27
  spec.add_development_dependency 'pry', '~> 0.12.2'
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: '{"name":"Customer Test Data Source"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.9.2
11
+ - Faraday v1.0.1
12
12
  Content-Type:
13
13
  - application/json
14
14
  Authorization:
@@ -16,50 +16,38 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 201
19
- message:
19
+ message: Created
20
20
  headers:
21
21
  server:
22
22
  - nginx/1.10.1
23
23
  date:
24
- - Tue, 08 Nov 2016 08:57:33 GMT
24
+ - Tue, 16 Mar 2021 12:27:18 GMT
25
25
  content-type:
26
- - application/json; charset=utf-8
26
+ - application/json
27
27
  transfer-encoding:
28
28
  - chunked
29
29
  connection:
30
- - close
31
- x-frame-options:
32
- - SAMEORIGIN
33
- x-xss-protection:
34
- - 1; mode=block
35
- x-content-type-options:
36
- - nosniff
37
- etag:
38
- - W/"bcfee5f9180970835929930b05411ff4"
39
- cache-control:
40
- - max-age=0, private, must-revalidate
41
- x-request-id:
42
- - 9505cefe-9a7a-46af-a173-7a686cf46800
43
- x-runtime:
44
- - '0.461858'
45
- strict-transport-security:
46
- - max-age=15768000
30
+ - keep-alive
31
+ status:
32
+ - 201 Created
33
+ access-control-allow-credentials:
34
+ - 'true'
47
35
  body:
48
36
  encoding: UTF-8
49
- string: '{"uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","name":"Customer
50
- Test Data Source","created_at":"2016-11-08T08:57:33.304Z","status":"never_imported"}'
37
+ string: '{"uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","name":"Customer
38
+ Test Data Source","system":"Import API","created_at":"2021-03-16T12:27:18.630Z","status":"idle"}'
51
39
  http_version:
52
- recorded_at: Tue, 08 Nov 2016 08:57:33 GMT
40
+ recorded_at: Tue, 16 Mar 2021 12:27:18 GMT
53
41
  - request:
54
42
  method: post
55
43
  uri: https://api.chartmogul.com/v1/customers
56
44
  body:
57
45
  encoding: UTF-8
58
- string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","country":"DE","city":"Berlin","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","lead_created_at":"2016-10-01
46
+ string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","country":"DE","city":"Berlin","data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","lead_created_at":"2016-10-01
59
47
  23:55:00 UTC","free_trial_started_at":"2016-10-12 11:12:00 UTC"}'
60
48
  headers:
61
49
  User-Agent:
62
- - Faraday v0.9.2
50
+ - Faraday v1.0.1
63
51
  Content-Type:
64
52
  - application/json
65
53
  Authorization:
@@ -67,40 +55,29 @@ http_interactions:
67
55
  response:
68
56
  status:
69
57
  code: 201
70
- message:
58
+ message: Created
71
59
  headers:
72
60
  server:
73
61
  - nginx/1.10.1
74
62
  date:
75
- - Tue, 08 Nov 2016 08:57:33 GMT
63
+ - Tue, 16 Mar 2021 12:27:19 GMT
76
64
  content-type:
77
- - application/json; charset=utf-8
65
+ - application/json
78
66
  transfer-encoding:
79
67
  - chunked
80
68
  connection:
81
- - close
82
- x-frame-options:
83
- - SAMEORIGIN
84
- x-xss-protection:
85
- - 1; mode=block
86
- x-content-type-options:
87
- - nosniff
88
- etag:
89
- - W/"edb1e5e3324d47803eccb229a21363df"
90
- cache-control:
91
- - max-age=0, private, must-revalidate
92
- x-request-id:
93
- - bf049e2c-b057-4d90-85bf-f90c9ca98b31
94
- x-runtime:
95
- - '0.158973'
96
- strict-transport-security:
97
- - max-age=15768000
69
+ - keep-alive
70
+ status:
71
+ - 201 Created
72
+ access-control-allow-credentials:
73
+ - 'true'
98
74
  body:
99
75
  encoding: UTF-8
100
- string: '{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test
101
- Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}'
76
+ string: '{"id":93760512,"uuid":"cus_f340970a-8652-11eb-a9f8-cfc7971a103f","external_id":"X1234","name":"Test
77
+ Customer","email":"test@example.com","status":"Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","data_source_uuids":["ds_f2f67ad0-8652-11eb-a9f8-37471a677085"],"external_ids":["X1234"],"company":"","country":"DE","state":null,"city":"Berlin","zip":null,"lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","address":{"country":"Germany","state":null,"city":"Berlin","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/93760512-Test_Customer","billing-system-type":"Import
78
+ API","currency":"USD","currency-sign":"$"}'
102
79
  http_version:
103
- recorded_at: Tue, 08 Nov 2016 08:57:33 GMT
80
+ recorded_at: Tue, 16 Mar 2021 12:27:19 GMT
104
81
  - request:
105
82
  method: get
106
83
  uri: https://api.chartmogul.com/v1/customers
@@ -109,7 +86,7 @@ http_interactions:
109
86
  string: ''
110
87
  headers:
111
88
  User-Agent:
112
- - Faraday v0.9.2
89
+ - Faraday v1.0.1
113
90
  Content-Type:
114
91
  - application/json
115
92
  Authorization:
@@ -117,81 +94,62 @@ http_interactions:
117
94
  response:
118
95
  status:
119
96
  code: 200
120
- message:
97
+ message: OK
121
98
  headers:
122
99
  server:
123
100
  - nginx/1.10.1
124
101
  date:
125
- - Tue, 08 Nov 2016 08:57:34 GMT
102
+ - Tue, 16 Mar 2021 12:27:19 GMT
126
103
  content-type:
127
- - application/json; charset=utf-8
104
+ - application/json
128
105
  transfer-encoding:
129
106
  - chunked
130
107
  connection:
131
- - close
132
- x-frame-options:
133
- - SAMEORIGIN
134
- x-xss-protection:
135
- - 1; mode=block
136
- x-content-type-options:
137
- - nosniff
138
- etag:
139
- - W/"eb861872d3bd01a055485e96ccf38898"
140
- cache-control:
141
- - max-age=0, private, must-revalidate
142
- x-request-id:
143
- - 32f87d7c-f944-405d-a87c-2195f175940a
144
- x-runtime:
145
- - '0.022802'
146
- strict-transport-security:
147
- - max-age=15768000
108
+ - keep-alive
109
+ vary:
110
+ - Accept-Encoding, Accept-Encoding
111
+ status:
112
+ - 200 OK
113
+ access-control-allow-credentials:
114
+ - 'true'
148
115
  body:
149
- encoding: UTF-8
150
- string: '{"entries":[{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test
151
- Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":50,"page":1}'
116
+ encoding: ASCII-8BIT
117
+ string: '{"entries":[{"id":93760512,"uuid":"cus_f340970a-8652-11eb-a9f8-cfc7971a103f","external_id":"X1234","name":"Test
118
+ Customer","email":"test@example.com","status":"Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","data_source_uuids":["ds_f2f67ad0-8652-11eb-a9f8-37471a677085"],"external_ids":["X1234"],"company":"","country":"DE","state":null,"city":"Berlin","zip":null,"lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","address":{"country":"Germany","state":null,"city":"Berlin","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/93760512-Test_Customer","billing-system-type":"Import
119
+ API","currency":"USD","currency-sign":"$"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
152
120
  http_version:
153
- recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
121
+ recorded_at: Tue, 16 Mar 2021 12:27:19 GMT
154
122
  - request:
155
123
  method: delete
156
- uri: https://api.chartmogul.com/v1/customers/cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16
124
+ uri: https://api.chartmogul.com/v1/customers/cus_f340970a-8652-11eb-a9f8-cfc7971a103f
157
125
  body:
158
126
  encoding: US-ASCII
159
127
  string: ''
160
128
  headers:
161
129
  User-Agent:
162
- - Faraday v0.9.2
130
+ - Faraday v1.0.1
163
131
  Authorization:
164
132
  - Basic hidden
165
133
  response:
166
134
  status:
167
135
  code: 204
168
- message:
136
+ message: No Content
169
137
  headers:
170
138
  server:
171
139
  - nginx/1.10.1
172
140
  date:
173
- - Tue, 08 Nov 2016 08:57:34 GMT
141
+ - Tue, 16 Mar 2021 12:28:19 GMT
174
142
  connection:
175
- - close
176
- x-frame-options:
177
- - SAMEORIGIN
178
- x-xss-protection:
179
- - 1; mode=block
180
- x-content-type-options:
181
- - nosniff
182
- cache-control:
183
- - no-cache
184
- x-request-id:
185
- - f163488f-bbea-4937-897b-ee08b69a4560
186
- x-runtime:
187
- - '0.015696'
188
- strict-transport-security:
189
- - max-age=15768000
143
+ - keep-alive
144
+ status:
145
+ - 204 No Content
146
+ access-control-allow-credentials:
147
+ - 'true'
190
148
  body:
191
149
  encoding: UTF-8
192
150
  string: ''
193
151
  http_version:
194
- recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
152
+ recorded_at: Tue, 16 Mar 2021 12:28:19 GMT
195
153
  - request:
196
154
  method: get
197
155
  uri: https://api.chartmogul.com/v1/customers
@@ -200,7 +158,7 @@ http_interactions:
200
158
  string: ''
201
159
  headers:
202
160
  User-Agent:
203
- - Faraday v0.9.2
161
+ - Faraday v1.0.1
204
162
  Content-Type:
205
163
  - application/json
206
164
  Authorization:
@@ -208,37 +166,27 @@ http_interactions:
208
166
  response:
209
167
  status:
210
168
  code: 200
211
- message:
169
+ message: OK
212
170
  headers:
213
171
  server:
214
172
  - nginx/1.10.1
215
173
  date:
216
- - Tue, 08 Nov 2016 08:57:34 GMT
174
+ - Tue, 16 Mar 2021 12:28:20 GMT
217
175
  content-type:
218
- - application/json; charset=utf-8
176
+ - application/json
219
177
  transfer-encoding:
220
178
  - chunked
221
179
  connection:
222
- - close
223
- x-frame-options:
224
- - SAMEORIGIN
225
- x-xss-protection:
226
- - 1; mode=block
227
- x-content-type-options:
228
- - nosniff
229
- etag:
230
- - W/"82f80d77a5a88d6de206bb1feeb897cc"
231
- cache-control:
232
- - max-age=0, private, must-revalidate
233
- x-request-id:
234
- - 770d6629-03d8-4f55-8bec-dde047828e7e
235
- x-runtime:
236
- - '0.019712'
237
- strict-transport-security:
238
- - max-age=15768000
180
+ - keep-alive
181
+ vary:
182
+ - Accept-Encoding, Accept-Encoding
183
+ status:
184
+ - 200 OK
185
+ access-control-allow-credentials:
186
+ - 'true'
239
187
  body:
240
- encoding: UTF-8
241
- string: '{"customers":[],"current_page":1,"total_pages":0,"has_more":false,"per_page":50,"page":1}'
188
+ encoding: ASCII-8BIT
189
+ string: '{"entries":[],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
242
190
  http_version:
243
- recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
244
- recorded_with: VCR 3.0.3
191
+ recorded_at: Tue, 16 Mar 2021 12:28:20 GMT
192
+ recorded_with: VCR 5.1.0
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.chartmogul.com/v1/activities_export/44037b8f-4a89-4fc6-8114-2288c71a9518
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v1.0.1
12
+ Content-Type:
13
+ - application/json
14
+ Authorization:
15
+ - Basic hidden
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ server:
22
+ - nginx/1.10.1
23
+ date:
24
+ - Fri, 09 Jul 2021 14:06:07 GMT
25
+ content-type:
26
+ - application/json
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - keep-alive
31
+ vary:
32
+ - Accept-Encoding, Accept-Encoding
33
+ status:
34
+ - 200 OK
35
+ access-control-allow-credentials:
36
+ - 'true'
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"id":"44037b8f-4a89-4fc6-8114-2288c71a9518","status":"succeeded","file_url":"https://chartmogul-customer-export.s3.eu-west-1.amazonaws.com/activities-acme-corp-062ea48c-5d74-46dd-bd60-23206cdc241a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=123%2Feu-west-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20210709T135547Z\u0026X-Amz-Expires=604800\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=abc","params":{"kind":"activities","params":{"end_date":"2020-12-31
40
+ 00:00:00 +0000","start_date":"2020-01-01 00:00:00 +0000","activity_type":"new_biz"}},"expires_at":"2021-07-16T13:55:47+00:00","created_at":"2021-07-09T13:55:44+00:00"}'
41
+ http_version:
42
+ recorded_at: Fri, 09 Jul 2021 14:06:07 GMT
43
+ recorded_with: VCR 5.1.0