leanplum_api 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -32
  3. data/lib/leanplum_api/api.rb +107 -156
  4. data/lib/leanplum_api/configuration.rb +9 -1
  5. data/lib/leanplum_api/connection.rb +2 -2
  6. data/lib/leanplum_api/data_export_api.rb +78 -0
  7. data/lib/leanplum_api/faraday_middleware/response_validation.rb +23 -19
  8. data/lib/leanplum_api/version.rb +1 -1
  9. data/spec/api_spec.rb +142 -98
  10. data/spec/configuration_spec.rb +2 -2
  11. data/spec/data_export_api_spec.rb +57 -0
  12. data/spec/fixtures/vcr/delete_user.yml +129 -0
  13. data/spec/fixtures/vcr/export_data.yml +5 -5
  14. data/spec/fixtures/vcr/export_data_dates.yml +6 -6
  15. data/spec/fixtures/vcr/export_user.yml +7 -7
  16. data/spec/fixtures/vcr/export_users.yml +44 -0
  17. data/spec/fixtures/vcr/get_ab_test.yml +5 -5
  18. data/spec/fixtures/vcr/get_ab_tests.yml +5 -5
  19. data/spec/fixtures/vcr/get_export_results.yml +5 -5
  20. data/spec/fixtures/vcr/get_messages.yml +5 -5
  21. data/spec/fixtures/vcr/get_vars.yml +5 -5
  22. data/spec/fixtures/vcr/missing_message.yml +4 -4
  23. data/spec/fixtures/vcr/reset_anomalous_user.yml +6 -6
  24. data/spec/fixtures/vcr/set_device_attributes.yml +46 -0
  25. data/spec/fixtures/vcr/set_user_attributes.yml +7 -7
  26. data/spec/fixtures/vcr/set_user_attributes_with_devices.yml +46 -0
  27. data/spec/fixtures/vcr/set_user_attributes_with_devices_and_events.yml +46 -0
  28. data/spec/fixtures/vcr/set_user_attributes_with_events.yml +46 -0
  29. data/spec/fixtures/vcr/track_events.yml +8 -8
  30. data/spec/fixtures/vcr/track_events_and_attributes.yml +9 -9
  31. data/spec/fixtures/vcr/track_events_anomaly_overrider.yml +20 -19
  32. data/spec/fixtures/vcr/track_offline_events.yml +8 -8
  33. data/spec/http_spec.rb +6 -5
  34. data/spec/spec_helper.rb +11 -8
  35. metadata +40 -3
@@ -23,22 +23,22 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json;charset=utf-8
25
25
  X-Cloud-Trace-Context:
26
- - c8b9d8cd7e5d05d04d44d147f7c3dd46
26
+ - 8a06dea209e2a68c90033ae1c05a1fdd
27
27
  Set-Cookie:
28
- - GOOGAPPUID=xCgsIAxDzBSDml-HNBQ; expires=Sun, 01-Nov-2020 17:04:38 GMT; path=/
28
+ - GOOGAPPUID=xCgsIAxDtASCa1-jNBQ; expires=Tue, 03-Nov-2020 03:11:22 GMT; path=/
29
29
  Date:
30
- - Tue, 12 Sep 2017 21:04:38 GMT
30
+ - Thu, 14 Sep 2017 07:11:22 GMT
31
31
  Server:
32
32
  - Google Frontend
33
33
  Content-Length:
34
34
  - '123'
35
35
  Expires:
36
- - Tue, 12 Sep 2017 21:04:38 GMT
36
+ - Thu, 14 Sep 2017 07:11:22 GMT
37
37
  Cache-Control:
38
38
  - private
39
39
  body:
40
40
  encoding: UTF-8
41
41
  string: '{"response":[{"regions":{},"success":true,"messages":{},"vars":{},"interfaceRules":[],"variants":[],"interfaceEvents":[]}]}'
42
42
  http_version:
43
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
43
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -23,11 +23,11 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json;charset=utf-8
25
25
  X-Cloud-Trace-Context:
26
- - 9dcf56897ff8e8ad7c535cbfd8b68a58
26
+ - 2e9040ec0527e13ed4cfd547d003578f
27
27
  Set-Cookie:
28
- - GOOGAPPUID=xCgsIAxD7AyDol-HNBQ; expires=Sun, 01-Nov-2020 17:04:40 GMT; path=/
28
+ - GOOGAPPUID=xCgsIAxDsASCb1-jNBQ; expires=Tue, 03-Nov-2020 03:11:23 GMT; path=/
29
29
  Date:
30
- - Tue, 12 Sep 2017 21:04:40 GMT
30
+ - Thu, 14 Sep 2017 07:11:23 GMT
31
31
  Server:
32
32
  - Google Frontend
33
33
  Content-Length:
@@ -36,5 +36,5 @@ http_interactions:
36
36
  encoding: UTF-8
37
37
  string: '{"response":[{"success":false,"error":{"message":"Message not found."}}]}'
38
38
  http_version:
39
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
39
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
40
40
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_DEVELOPMENT_KEY>&devMode=false&time=1505188800
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_DEVELOPMENT_KEY>&devMode=false&time=1505372950
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"data":[{"action":"setUserAttributes","resetAnomalies":true,"userId":123456}]}'
@@ -25,22 +25,22 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json;charset=utf-8
27
27
  X-Cloud-Trace-Context:
28
- - 1c1ef65d9076a3950fa6158b5a22cdad
28
+ - bac619b58601f8fce060b9398e5d0f2d
29
29
  Set-Cookie:
30
- - GOOGAPPUID=xCgsIAxDIBiDfl-HNBQ; expires=Sun, 01-Nov-2020 17:04:31 GMT; path=/
30
+ - GOOGAPPUID=xCgsIAxCaBCCY1-jNBQ; expires=Tue, 03-Nov-2020 03:11:20 GMT; path=/
31
31
  Date:
32
- - Tue, 12 Sep 2017 21:04:31 GMT
32
+ - Thu, 14 Sep 2017 07:11:20 GMT
33
33
  Server:
34
34
  - Google Frontend
35
35
  Content-Length:
36
36
  - '31'
37
37
  Expires:
38
- - Tue, 12 Sep 2017 21:04:31 GMT
38
+ - Thu, 14 Sep 2017 07:11:20 GMT
39
39
  Cache-Control:
40
40
  - private
41
41
  body:
42
42
  encoding: UTF-8
43
43
  string: '{"response":[{"success":true}]}'
44
44
  http_version:
45
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
46
  recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":[{"deviceId":"fu123","action":"setDeviceAttributes","deviceAttributes":{"appVersion":"x42x","deviceModel":"p0d","create_date":"2018-01-01"}}]}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.13.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ X-Cloud-Trace-Context:
28
+ - 19df8395ebe39d3624805c2c6ef4761f
29
+ Set-Cookie:
30
+ - GOOGAPPUID=xCgsIAxDXAyCW1-jNBQ; expires=Tue, 03-Nov-2020 03:11:18 GMT; path=/
31
+ Date:
32
+ - Thu, 14 Sep 2017 07:11:18 GMT
33
+ Server:
34
+ - Google Frontend
35
+ Content-Length:
36
+ - '31'
37
+ Expires:
38
+ - Thu, 14 Sep 2017 07:11:18 GMT
39
+ Cache-Control:
40
+ - private
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"response":[{"success":true}]}'
44
+ http_version:
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
+ recorded_with: VCR 3.0.3
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505188800
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":[{"userId":123456,"action":"setUserAttributes","userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true},"events":{"eventName1":{"count":1,"firstTime":1505102400,"lastTime":1505188800}}}]}'
8
+ string: '{"data":[{"userId":123456,"action":"setUserAttributes","userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true}}]}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - Faraday v0.13.1
@@ -25,22 +25,22 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json;charset=utf-8
27
27
  X-Cloud-Trace-Context:
28
- - 10338d882b43cc3fc371beeb52d6b40b
28
+ - f868cca8e145e3aaa8638a280531760b
29
29
  Set-Cookie:
30
- - GOOGAPPUID=xCgoIAxBHIN6X4c0F; expires=Sun, 01-Nov-2020 17:04:30 GMT; path=/
30
+ - GOOGAPPUID=xCgsIAxCXAiCW1-jNBQ; expires=Tue, 03-Nov-2020 03:11:18 GMT; path=/
31
31
  Date:
32
- - Tue, 12 Sep 2017 21:04:30 GMT
32
+ - Thu, 14 Sep 2017 07:11:18 GMT
33
33
  Server:
34
34
  - Google Frontend
35
35
  Content-Length:
36
36
  - '31'
37
37
  Expires:
38
- - Tue, 12 Sep 2017 21:04:30 GMT
38
+ - Thu, 14 Sep 2017 07:11:18 GMT
39
39
  Cache-Control:
40
40
  - private
41
41
  body:
42
42
  encoding: UTF-8
43
43
  string: '{"response":[{"success":true}]}'
44
44
  http_version:
45
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
46
  recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":[{"userId":123456,"action":"setUserAttributes","devices":[{"device_id":"fu123","appVersion":"x42x","deviceModel":"p0d","create_date":"2018-01-01"}],"userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true}}]}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.13.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ X-Cloud-Trace-Context:
28
+ - e9d6c2645e7c11202b66fa11c56bf7f4
29
+ Set-Cookie:
30
+ - GOOGAPPUID=xCgsIAxDjAiCX1-jNBQ; expires=Tue, 03-Nov-2020 03:11:19 GMT; path=/
31
+ Date:
32
+ - Thu, 14 Sep 2017 07:11:19 GMT
33
+ Server:
34
+ - Google Frontend
35
+ Content-Length:
36
+ - '31'
37
+ Expires:
38
+ - Thu, 14 Sep 2017 07:11:19 GMT
39
+ Cache-Control:
40
+ - private
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"response":[{"success":true}]}'
44
+ http_version:
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":[{"userId":123456,"action":"setUserAttributes","devices":[{"device_id":"fu123","appVersion":"x42x","deviceModel":"p0d","create_date":"2018-01-01"}],"events":{"eventName1":{"count":1,"firstTime":1505286550,"lastTime":1505372950}},"userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true}}]}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.13.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ X-Cloud-Trace-Context:
28
+ - b3c2b0e268a8b9d0b5b2a837220c047a
29
+ Set-Cookie:
30
+ - GOOGAPPUID=xCgsIAxCYBSCX1-jNBQ; expires=Tue, 03-Nov-2020 03:11:19 GMT; path=/
31
+ Date:
32
+ - Thu, 14 Sep 2017 07:11:19 GMT
33
+ Server:
34
+ - Google Frontend
35
+ Content-Length:
36
+ - '31'
37
+ Expires:
38
+ - Thu, 14 Sep 2017 07:11:19 GMT
39
+ Cache-Control:
40
+ - private
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"response":[{"success":true}]}'
44
+ http_version:
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":[{"userId":123456,"action":"setUserAttributes","events":{"eventName1":{"count":1,"firstTime":1505286550,"lastTime":1505372950}},"userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true}}]}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.13.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ X-Cloud-Trace-Context:
28
+ - 2ffc05d32bf3c768b79221261656cc89
29
+ Set-Cookie:
30
+ - GOOGAPPUID=xCgsIAxCMByCX1-jNBQ; expires=Tue, 03-Nov-2020 03:11:19 GMT; path=/
31
+ Date:
32
+ - Thu, 14 Sep 2017 07:11:19 GMT
33
+ Server:
34
+ - Google Frontend
35
+ Content-Length:
36
+ - '31'
37
+ Expires:
38
+ - Thu, 14 Sep 2017 07:11:19 GMT
39
+ Cache-Control:
40
+ - private
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"response":[{"success":true}]}'
44
+ http_version:
45
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
46
+ recorded_with: VCR 3.0.3
@@ -2,11 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505188800
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":[{"action":"track","event":"purchase","userId":123456,"time":1505188800,"params":{"some_timestamp":"2015-05-01
9
- 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1505188200}]}'
8
+ string: '{"data":[{"action":"track","event":"purchase","userId":123456,"time":1505372950,"params":{"some_timestamp":"2015-05-01
9
+ 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1505372350}]}'
10
10
  headers:
11
11
  User-Agent:
12
12
  - Faraday v0.13.1
@@ -26,22 +26,22 @@ http_interactions:
26
26
  Content-Type:
27
27
  - application/json;charset=utf-8
28
28
  X-Cloud-Trace-Context:
29
- - 8dc6623be625d67ff132d4c00264090a
29
+ - cf42a9b71fd66bdbb477cf565b11bc3e
30
30
  Set-Cookie:
31
- - GOOGAPPUID=xCgsIAxCtByDgl-HNBQ; expires=Sun, 01-Nov-2020 17:04:32 GMT; path=/
31
+ - GOOGAPPUID=xCgsIAxD7BCCZ1-jNBQ; expires=Tue, 03-Nov-2020 03:11:21 GMT; path=/
32
32
  Date:
33
- - Tue, 12 Sep 2017 21:04:32 GMT
33
+ - Thu, 14 Sep 2017 07:11:21 GMT
34
34
  Server:
35
35
  - Google Frontend
36
36
  Content-Length:
37
37
  - '82'
38
38
  Expires:
39
- - Tue, 12 Sep 2017 21:04:32 GMT
39
+ - Thu, 14 Sep 2017 07:11:21 GMT
40
40
  Cache-Control:
41
41
  - private
42
42
  body:
43
43
  encoding: UTF-8
44
44
  string: '{"response":[{"success":true,"isOffline":true},{"success":true,"isOffline":true}]}'
45
45
  http_version:
46
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
46
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
47
47
  recorded_with: VCR 3.0.3
@@ -2,11 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505188800
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":[{"userId":123456,"action":"setUserAttributes","userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true},"events":{"eventName1":{"count":1,"firstTime":1505102400,"lastTime":1505188800}}},{"action":"track","event":"purchase","userId":123456,"time":1505188800,"params":{"some_timestamp":"2015-05-01
9
- 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1505188200}]}'
8
+ string: '{"data":[{"action":"track","event":"purchase","userId":123456,"time":1505372950,"params":{"some_timestamp":"2015-05-01
9
+ 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1505372350},{"userId":123456,"action":"setUserAttributes","userAttributes":{"first_name":"Mike","last_name":"Jones","gender":"m","email":"still_tippin@test.com","create_date":"2010-01-01","is_tipping":true}}]}'
10
10
  headers:
11
11
  User-Agent:
12
12
  - Faraday v0.13.1
@@ -26,22 +26,22 @@ http_interactions:
26
26
  Content-Type:
27
27
  - application/json;charset=utf-8
28
28
  X-Cloud-Trace-Context:
29
- - e30df8f39eca3f77705e8ae2c82d76d8
29
+ - 370430d1328668596903479e939bd7b2
30
30
  Set-Cookie:
31
- - GOOGAPPUID=xCgsIAxDCByDil-HNBQ; expires=Sun, 01-Nov-2020 17:04:35 GMT; path=/
31
+ - GOOGAPPUID=xCgsIAxDKByCa1-jNBQ; expires=Tue, 03-Nov-2020 03:11:22 GMT; path=/
32
32
  Date:
33
- - Tue, 12 Sep 2017 21:04:35 GMT
33
+ - Thu, 14 Sep 2017 07:11:22 GMT
34
34
  Server:
35
35
  - Google Frontend
36
36
  Content-Length:
37
37
  - '99'
38
38
  Expires:
39
- - Tue, 12 Sep 2017 21:04:35 GMT
39
+ - Thu, 14 Sep 2017 07:11:22 GMT
40
40
  Cache-Control:
41
41
  - private
42
42
  body:
43
43
  encoding: UTF-8
44
- string: '{"response":[{"success":true},{"success":true,"isOffline":true},{"success":true,"isOffline":true}]}'
44
+ string: '{"response":[{"success":true,"isOffline":true},{"success":true,"isOffline":true},{"success":true}]}'
45
45
  http_version:
46
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
46
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
47
47
  recorded_with: VCR 3.0.3
@@ -2,11 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505188800
5
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_PRODUCTION_KEY>&devMode=false&time=1505372950
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"data":[{"action":"track","event":"purchase","userId":123456,"time":1473652800,"params":{"some_timestamp":"2015-05-01
9
- 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1473652200}]}'
8
+ string: '{"data":[{"action":"track","event":"purchase","userId":123456,"time":1442214550,"params":{"some_timestamp":"2015-05-01
9
+ 01:02:03"}},{"action":"track","event":"purchase_page_view","userId":54321,"time":1442213950}]}'
10
10
  headers:
11
11
  User-Agent:
12
12
  - Faraday v0.13.1
@@ -26,28 +26,29 @@ http_interactions:
26
26
  Content-Type:
27
27
  - application/json;charset=utf-8
28
28
  X-Cloud-Trace-Context:
29
- - 0b2d4c78bb712eb607f011ba61eb09cf
29
+ - b1c9217afa2cfbe6e0d7a021fa62cd1d
30
30
  Set-Cookie:
31
- - GOOGAPPUID=xCgoIAxAAIKGb4c0F; expires=Sun, 01-Nov-2020 17:12:02 GMT; path=/
31
+ - GOOGAPPUID=xCgsIAxClAyCZ1-jNBQ; expires=Tue, 03-Nov-2020 03:11:21 GMT; path=/
32
32
  Date:
33
- - Tue, 12 Sep 2017 21:12:02 GMT
33
+ - Thu, 14 Sep 2017 07:11:21 GMT
34
34
  Server:
35
35
  - Google Frontend
36
36
  Content-Length:
37
- - '163'
37
+ - '244'
38
38
  Expires:
39
- - Tue, 12 Sep 2017 21:12:02 GMT
39
+ - Thu, 14 Sep 2017 07:11:21 GMT
40
40
  Cache-Control:
41
41
  - private
42
42
  body:
43
43
  encoding: UTF-8
44
- string: '{"response":[{"success":true,"isOffline":true},{"success":true,"warning":{"message":"Past
45
- event detected (365 days ago). Rewriting timestamp."},"isOffline":true}]}'
46
- http_version:
47
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
44
+ string: '{"response":[{"success":true,"warning":{"message":"Past event detected
45
+ (731 days ago). Rewriting timestamp."},"isOffline":true},{"success":true,"warning":{"message":"Past
46
+ event detected (731 days ago). Rewriting timestamp."},"isOffline":true}]}'
47
+ http_version:
48
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
48
49
  - request:
49
50
  method: post
50
- uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_DEVELOPMENT_KEY>&devMode=false&time=1505188800
51
+ uri: https://www.leanplum.com/api?action=multi&apiVersion=1.0.6&appId=<LEANPLUM_APP_ID>&clientKey=<LEANPLUM_DEVELOPMENT_KEY>&devMode=false&time=1505372950
51
52
  body:
52
53
  encoding: UTF-8
53
54
  string: '{"data":[{"action":"setUserAttributes","resetAnomalies":true,"userId":123456},{"action":"setUserAttributes","resetAnomalies":true,"userId":54321}]}'
@@ -70,22 +71,22 @@ http_interactions:
70
71
  Content-Type:
71
72
  - application/json;charset=utf-8
72
73
  X-Cloud-Trace-Context:
73
- - b565a9236508b41e2842074ccb6c4422
74
+ - ca2ba028b6841f6b803f95b15e988e19
74
75
  Set-Cookie:
75
- - GOOGAPPUID=xCgsIAxDSAyCim-HNBQ; expires=Sun, 01-Nov-2020 17:12:02 GMT; path=/
76
+ - GOOGAPPUID=xCgsIAxD3BCCZ1-jNBQ; expires=Tue, 03-Nov-2020 03:11:22 GMT; path=/
76
77
  Date:
77
- - Tue, 12 Sep 2017 21:12:02 GMT
78
+ - Thu, 14 Sep 2017 07:11:22 GMT
78
79
  Server:
79
80
  - Google Frontend
80
81
  Content-Length:
81
82
  - '48'
82
83
  Expires:
83
- - Tue, 12 Sep 2017 21:12:02 GMT
84
+ - Thu, 14 Sep 2017 07:11:22 GMT
84
85
  Cache-Control:
85
86
  - private
86
87
  body:
87
88
  encoding: UTF-8
88
89
  string: '{"response":[{"success":true},{"success":true}]}'
89
- http_version:
90
- recorded_at: Tue, 12 Sep 2017 04:00:00 GMT
90
+ http_version:
91
+ recorded_at: Thu, 14 Sep 2017 07:09:10 GMT
91
92
  recorded_with: VCR 3.0.3