workarea-listrak 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.eslintrc.json +36 -0
- data/.esvmrc +5 -0
- data/.gitignore +32 -0
- data/CHANGELOG.md +322 -0
- data/Gemfile +14 -0
- data/README.md +130 -0
- data/Rakefile +53 -0
- data/app/assets/javascripts/workarea/admin/modules/listrak/list_events_select.js +83 -0
- data/app/assets/javascripts/workarea/storefront/listrak/adapters/listrak_adapter.js +110 -0
- data/app/assets/javascripts/workarea/storefront/listrak/listrak_config.js.erb +13 -0
- data/app/assets/javascripts/workarea/storefront/listrak/modules/listrak.js +64 -0
- data/app/controllers/workarea/admin/listrak/configurations_controller.rb +30 -0
- data/app/controllers/workarea/admin/listrak/events_controller.rb +17 -0
- data/app/helpers/workarea/listrak/analytics/helper.rb +44 -0
- data/app/models/workarea/listrak/configuration.rb +19 -0
- data/app/queries/workarea/categorization.decorator +7 -0
- data/app/services/workarea/listrak/data_api/customers.rb +26 -0
- data/app/services/workarea/listrak/data_api/orders.rb +26 -0
- data/app/services/workarea/listrak/data_api/products.rb +26 -0
- data/app/services/workarea/listrak/data_api.rb +63 -0
- data/app/services/workarea/listrak/email_api/contacts.rb +73 -0
- data/app/services/workarea/listrak/email_api/events.rb +44 -0
- data/app/services/workarea/listrak/email_api/lists.rb +21 -0
- data/app/services/workarea/listrak/email_api/messages.rb +50 -0
- data/app/services/workarea/listrak/email_api/transactional_messages.rb +32 -0
- data/app/services/workarea/listrak/email_api.rb +71 -0
- data/app/services/workarea/listrak/models/address.rb +83 -0
- data/app/services/workarea/listrak/models/contact.rb +67 -0
- data/app/services/workarea/listrak/models/contact_form.rb +24 -0
- data/app/services/workarea/listrak/models/customer_form.rb +209 -0
- data/app/services/workarea/listrak/models/event.rb +45 -0
- data/app/services/workarea/listrak/models/event_form.rb +25 -0
- data/app/services/workarea/listrak/models/list.rb +204 -0
- data/app/services/workarea/listrak/models/message_form.rb +147 -0
- data/app/services/workarea/listrak/models/order_form.rb +352 -0
- data/app/services/workarea/listrak/models/order_item.rb +197 -0
- data/app/services/workarea/listrak/models/product_form.rb +369 -0
- data/app/services/workarea/listrak/models/transactional_message_form.rb +21 -0
- data/app/services/workarea/listrak/oauth.rb +45 -0
- data/app/services/workarea/listrak/transactional_message.rb +83 -0
- data/app/view_models/workarea/admin/listrak_configuration_view_model.rb +17 -0
- data/app/views/workarea/admin/listrak/configurations/edit.html.haml +28 -0
- data/app/views/workarea/admin/listrak/events/index.json.jbuilder +4 -0
- data/app/views/workarea/admin/shared/_listrak_configuration_link.html.haml +1 -0
- data/app/views/workarea/storefront/checkouts/_listrak.html.haml +2 -0
- data/app/workers/workarea/listrak/customer_exporter.rb +22 -0
- data/app/workers/workarea/listrak/order_exporter.rb +22 -0
- data/app/workers/workarea/listrak/product_exporter.rb +50 -0
- data/app/workers/workarea/listrak/subscribe_email_signup.rb +34 -0
- data/app/workers/workarea/listrak/unsubscribe_email_signup.rb +27 -0
- data/bin/rails +18 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/rubocop +16 -0
- data/config/initializers/append_points.rb +28 -0
- data/config/initializers/configuration.rb +8 -0
- data/config/locales/en.yml +17 -0
- data/config/routes.rb +10 -0
- data/docs/Listrak Technical Integration Guide.docx +0 -0
- data/lib/generators/workarea/listrak/message/USAGE +9 -0
- data/lib/generators/workarea/listrak/message/message_generator.rb +15 -0
- data/lib/generators/workarea/listrak/message/templates/message.rb.erb +24 -0
- data/lib/workarea/listrak/analytics.rb +17 -0
- data/lib/workarea/listrak/bogus_data_api/customers.rb +9 -0
- data/lib/workarea/listrak/bogus_data_api/orders.rb +9 -0
- data/lib/workarea/listrak/bogus_data_api/products.rb +9 -0
- data/lib/workarea/listrak/bogus_data_api/proxy_client.rb +29 -0
- data/lib/workarea/listrak/bogus_data_api.rb +46 -0
- data/lib/workarea/listrak/bogus_email_api/contacts.rb +8 -0
- data/lib/workarea/listrak/bogus_email_api/events.rb +23 -0
- data/lib/workarea/listrak/bogus_email_api/lists.rb +63 -0
- data/lib/workarea/listrak/bogus_email_api/proxy_client.rb +29 -0
- data/lib/workarea/listrak/bogus_email_api/transactional_messages.rb +9 -0
- data/lib/workarea/listrak/bogus_email_api.rb +51 -0
- data/lib/workarea/listrak/engine.rb +12 -0
- data/lib/workarea/listrak/error.rb +39 -0
- data/lib/workarea/listrak/version.rb +5 -0
- data/lib/workarea/listrak.rb +57 -0
- data/readme/listrak-admin.png +0 -0
- data/script/admin_ci +9 -0
- data/script/ci +11 -0
- data/script/core_ci +9 -0
- data/script/plugins_ci +9 -0
- data/script/storefront_ci +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config/application.rb +18 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +38 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/factories/workarea/factories/listrak.rb +15 -0
- data/test/helpers/workarea/listrak/analytics/helper_test.rb +38 -0
- data/test/integration/workarea/admin/listrak/configuration_integration_test.rb +26 -0
- data/test/integration/workarea/admin/listrak/events_integration_test.rb +21 -0
- data/test/lib/generators/workarea/listrak/message_generator_test.rb +26 -0
- data/test/queries/workarea/categorization_test.decorator +15 -0
- data/test/services/workarea/listrak/data_api/customers_test.rb +35 -0
- data/test/services/workarea/listrak/data_api/orders_test.rb +24 -0
- data/test/services/workarea/listrak/data_api/products_test.rb +27 -0
- data/test/services/workarea/listrak/email_api/contacts_test.rb +55 -0
- data/test/services/workarea/listrak/email_api/events_test.rb +51 -0
- data/test/services/workarea/listrak/email_api/lists_test.rb +45 -0
- data/test/services/workarea/listrak/email_api/messages_test.rb +28 -0
- data/test/services/workarea/listrak/email_api/transactional_messages_test.rb +50 -0
- data/test/services/workarea/listrak/oauth_test.rb +27 -0
- data/test/services/workarea/listrak/transactional_message_test.rb +48 -0
- data/test/support/workarea/listrak/test_order_confirmation_email.rb +116 -0
- data/test/support/workarea/listrak/vcr_config.rb +31 -0
- data/test/system/workarea/listrak_system_test.rb +75 -0
- data/test/test_helper.rb +16 -0
- data/test/vcr_cassettes/listrak/data_api/customers_import-successful.yml +88 -0
- data/test/vcr_cassettes/listrak/data_api/orders_import-successful.yml +90 -0
- data/test/vcr_cassettes/listrak/data_api/products_import-successful.yml +88 -0
- data/test/vcr_cassettes/listrak/email_api/contacts_get-successful.yml +87 -0
- data/test/vcr_cassettes/listrak/email_api/contacts_upsert-already_unsubscribed.yml +90 -0
- data/test/vcr_cassettes/listrak/email_api/contacts_upsert-successful.yml +87 -0
- data/test/vcr_cassettes/listrak/email_api/events_create-invalid_parameter.yml +90 -0
- data/test/vcr_cassettes/listrak/email_api/events_create-successful.yml +87 -0
- data/test/vcr_cassettes/listrak/email_api/events_get-successful.yml +88 -0
- data/test/vcr_cassettes/listrak/email_api/lists_all-successful.yml +88 -0
- data/test/vcr_cassettes/listrak/email_api/messages_create-successful.yml +88 -0
- data/test/vcr_cassettes/listrak/email_api/transactional_messages_create-successful.yml +89 -0
- data/test/vcr_cassettes/listrak/oauth-successful.yml +44 -0
- data/test/vcr_cassettes/listrak/oauth-unsuccessful.yml +46 -0
- data/test/vcr_cassettes/listrak/system_tests/footer_email_signup-successful.yml +171 -0
- data/test/vcr_cassettes/listrak/system_tests/footer_email_signup_overrides_unsubscribe.yml +255 -0
- data/test/vcr_cassettes/listrak/system_tests/unsubscribing.yml +593 -0
- data/test/workers/workarea/listrak/order_exporter_test.rb +31 -0
- data/test/workers/workarea/listrak/product_exporter_test.rb +62 -0
- data/workarea-listrak.gemspec +16 -0
- metadata +223 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Expires:
|
30
|
+
- "-1"
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/8.5
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Mon, 17 Dec 2018 20:10:26 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '486'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"access_token":"aFp6_Q5HXG8rSGEwXSGtfngy-IjE9PwWbcQpJFhg3aSWch3A5lOWs7ZLbtPmMHx8kUZ3hJ-bqWABSpPgRO7Fh6RgEIHO2fnc2kF30HD_mpTMguFlAMk34T3FfnGYsRx0JFJU1mZWHfXjZAtp6D5Lf5EOhCZut3UNcAG6C71UIEA7cAT5z8uYKQu_Sz1DTnOzrUJ1HHAbkmr_Ae6W4BMZrAwObhdh2yV0xdsqGmbYh62m1Ny63GprL0i10Oq7_qRFsjSDVjLe1QsoYba3fAV7L7osclkzby2UR7bj4R21PUCqbShIrNVKKB0O0c3v6pQ44WypeXy5MVLkA05hWAm2CqAo0NX182znfQF6U3BHIMoR5yi9tKif8RSTND69epiocdB8NKUdyUe-KAVjNXldtQwnUq2UmOD3UeFp6PR1oF0","token_type":"bearer","expires_in":3599}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 17 Dec 2018 20:10:26 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://api.listrak.com/email/v1/List
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- application/json
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Authorization:
|
58
|
+
- Bearer aFp6_Q5HXG8rSGEwXSGtfngy-IjE9PwWbcQpJFhg3aSWch3A5lOWs7ZLbtPmMHx8kUZ3hJ-bqWABSpPgRO7Fh6RgEIHO2fnc2kF30HD_mpTMguFlAMk34T3FfnGYsRx0JFJU1mZWHfXjZAtp6D5Lf5EOhCZut3UNcAG6C71UIEA7cAT5z8uYKQu_Sz1DTnOzrUJ1HHAbkmr_Ae6W4BMZrAwObhdh2yV0xdsqGmbYh62m1Ny63GprL0i10Oq7_qRFsjSDVjLe1QsoYba3fAV7L7osclkzby2UR7bj4R21PUCqbShIrNVKKB0O0c3v6pQ44WypeXy5MVLkA05hWAm2CqAo0NX182znfQF6U3BHIMoR5yi9tKif8RSTND69epiocdB8NKUdyUe-KAVjNXldtQwnUq2UmOD3UeFp6PR1oF0
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Pragma:
|
69
|
+
- no-cache
|
70
|
+
Content-Length:
|
71
|
+
- '1301'
|
72
|
+
Content-Type:
|
73
|
+
- application/json; charset=utf-8
|
74
|
+
Expires:
|
75
|
+
- "-1"
|
76
|
+
Server:
|
77
|
+
- Microsoft-IIS/8.5
|
78
|
+
X-Powered-By:
|
79
|
+
- ASP.NET
|
80
|
+
Date:
|
81
|
+
- Mon, 17 Dec 2018 20:10:26 GMT
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"status":200,"data":[{"listId":349956,"listName":"My First List","folderId":0,"ipPoolId":11,"bounceDomainAlias":"","bounceHandling":"Standard","bounceUnsubscribeCount":5,"createDate":"2015-08-31T16:02:41.65","enableBrowserLink":false,"enableDoubleOptIn":false,"enableDynamicContent":false,"enableGoogleAnalytics":false,"enableInternationalization":false,"enableListHygiene":true,"enableListRemovalHeader":true,"enableListRemovalLink":true,"enableListrakAnalytics":false,"enableSpamScorePersonalization":false,"enableToNamePersonalization":false,"fromEmail":"","fromName":"","googleTrackingDomains":[],"linkDomainAlias":"","mediaDomainAlias":""},{"listId":349984,"listName":"gem-testing","folderId":0,"ipPoolId":11,"bounceDomainAlias":"","bounceHandling":"Standard","bounceUnsubscribeCount":5,"createDate":"2015-09-02T14:42:38.91","enableBrowserLink":false,"enableDoubleOptIn":false,"enableDynamicContent":false,"enableGoogleAnalytics":false,"enableInternationalization":false,"enableListHygiene":true,"enableListRemovalHeader":true,"enableListRemovalLink":true,"enableListrakAnalytics":false,"enableSpamScorePersonalization":false,"enableToNamePersonalization":false,"fromEmail":"mac@weblinc.com","fromName":"WebLinc
|
85
|
+
Developer","googleTrackingDomains":[],"linkDomainAlias":"","mediaDomainAlias":""}]}'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Mon, 17 Dec 2018 20:10:27 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Expires:
|
30
|
+
- "-1"
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/8.5
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Thu, 23 May 2019 13:34:43 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '507'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"access_token":"Oo_OgQYTzQ15r8q84037KKT2NMscsth3elbCNv3isgMOi2j0qDAPsPnDO89QEnzbhwI770e4VZeKDLPkF414ndl0D8CVb4zMRhxmxg1fNnL96NzsC-zQT75RCuWIC0f3xBbswEAm8BsjxIt6Xl-l0zgqxX2cRUKT9Ggt3V9TN_oRjE88mazyUcCxVHaerv4xkyVAIuwpW2udoP59QH-9jaKpXKtw_MpRVqMQIHX68RwFVeAHb41RWtaTsYSvx2ptuj_VfYHVQDxX9h__56il19XLsamxZ0A9jCHtKE2TLSFr3chIMarvrFzHrUP_xzRPta4YdV0PTbnEQ7SImu1SB5MTcRZ-PNep5LZ0O_r1X9XT2n63ld8caQkwhT5KDwOqCbj6F7gSeqTIP7ziJpIBVeahm1Fqd-03oP1EJeIJxOHF_u_KXrhl4VaW5OIe6sdV","token_type":"bearer","expires_in":3599}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 May 2019 13:34:44 GMT
|
44
|
+
- request:
|
45
|
+
method: post
|
46
|
+
uri: https://api.listrak.com/email/v1/List/349984/Message
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"bodyHtml":"This is the body","fromEmail":"plugins@workarea.com","fromName":"Plugins
|
50
|
+
@ Workarea.com","subject":"Testing creating a message"}'
|
51
|
+
headers:
|
52
|
+
Accept-Encoding:
|
53
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
54
|
+
Accept:
|
55
|
+
- application/json
|
56
|
+
User-Agent:
|
57
|
+
- Ruby
|
58
|
+
Authorization:
|
59
|
+
- Bearer Oo_OgQYTzQ15r8q84037KKT2NMscsth3elbCNv3isgMOi2j0qDAPsPnDO89QEnzbhwI770e4VZeKDLPkF414ndl0D8CVb4zMRhxmxg1fNnL96NzsC-zQT75RCuWIC0f3xBbswEAm8BsjxIt6Xl-l0zgqxX2cRUKT9Ggt3V9TN_oRjE88mazyUcCxVHaerv4xkyVAIuwpW2udoP59QH-9jaKpXKtw_MpRVqMQIHX68RwFVeAHb41RWtaTsYSvx2ptuj_VfYHVQDxX9h__56il19XLsamxZ0A9jCHtKE2TLSFr3chIMarvrFzHrUP_xzRPta4YdV0PTbnEQ7SImu1SB5MTcRZ-PNep5LZ0O_r1X9XT2n63ld8caQkwhT5KDwOqCbj6F7gSeqTIP7ziJpIBVeahm1Fqd-03oP1EJeIJxOHF_u_KXrhl4VaW5OIe6sdV
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 201
|
65
|
+
message: Created
|
66
|
+
headers:
|
67
|
+
Cache-Control:
|
68
|
+
- no-cache
|
69
|
+
Pragma:
|
70
|
+
- no-cache
|
71
|
+
Content-Length:
|
72
|
+
- '38'
|
73
|
+
Content-Type:
|
74
|
+
- application/json; charset=utf-8
|
75
|
+
Expires:
|
76
|
+
- "-1"
|
77
|
+
Server:
|
78
|
+
- Microsoft-IIS/8.5
|
79
|
+
X-Powered-By:
|
80
|
+
- ASP.NET
|
81
|
+
Date:
|
82
|
+
- Thu, 23 May 2019 13:34:43 GMT
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: '{"status":201,"resourceId":"11862792"}'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 23 May 2019 13:34:45 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Expires:
|
30
|
+
- "-1"
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/8.5
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Thu, 23 May 2019 14:05:15 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '507'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"access_token":"75H3MoFxRr0prmAIWGXEzyoTwJFxOY9HYVSAIy1aR1o5-mWVaoZi8FhbiiAui7Ky1o2irKzleS3IhsT2uOojfKqkfkiJVB-XrIGXAtIuEvu60UA44BonYq0Ge5b4NbmF0tp0xTfJrfB7nsf6beCO_nLw8Y7rgAVCXSeyNh8T20tZgbgjUdWZ78xDpHg9HQ7xm5hRC9hyAqKOnFkgZijDEVIqXIbZF7yu3oG-dNTbnKkVj0HZzdj6CCN3fG8pj0FeUlPM_oF-dl_SYbu3gsQPIkTn-5iu20Lx2PVKYjowv3wEqFNQTxUz9tTIDouzjbQnh7E9PkXv1yfMsQCX21c-LGGEqj_ltjF31OePa9UZ3EdAVxIH8toS3-qQJiIPsV3YshsooyxS6mvv44DwdwKoeTvc3BjPVO80UwLImD5Y11ET8IzMjCCKoCWPGHHElfco","token_type":"bearer","expires_in":3599}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 May 2019 14:05:16 GMT
|
44
|
+
- request:
|
45
|
+
method: post
|
46
|
+
uri: https://api.listrak.com/email/v1/List/349984/TransactionalMessage/11838256/Message
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"emailAddress":"plugins@workarea.com","segmentationFieldValues":[{"segmentationFieldId":2446151,"value":"Ben"},{"segmentationFieldId":2446152,"value":"Crouse"},{"segmentationFieldId":2446153,"value":"22
|
50
|
+
S. 3rd St."},{"segmentationFieldId":2446154,"value":"Second Floor"},{"segmentationFieldId":2446155,"value":"Philadelphia"},{"segmentationFieldId":2446156,"value":"PA"},{"segmentationFieldId":2446157,"value":"19106"},{"segmentationFieldId":2446158,"value":"US"},{"segmentationFieldId":2446159,"value":""},{"segmentationFieldId":2446169,"value":"1234"},{"segmentationFieldId":2446174,"value":""},{"segmentationFieldId":2446175,"value":"2019-05-23
|
51
|
+
14:05:16 UTC"},{"segmentationFieldId":2446179,"value":"10.00"},{"segmentationFieldId":2446180,"value":"0.00"},{"segmentationFieldId":2446181,"value":"1.00"},{"segmentationFieldId":2446182,"value":"0.00"},{"segmentationFieldId":2446183,"value":"11.00"},{"segmentationFieldId":2446184,"value":"1"}]}'
|
52
|
+
headers:
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- application/json
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
Authorization:
|
60
|
+
- Bearer 75H3MoFxRr0prmAIWGXEzyoTwJFxOY9HYVSAIy1aR1o5-mWVaoZi8FhbiiAui7Ky1o2irKzleS3IhsT2uOojfKqkfkiJVB-XrIGXAtIuEvu60UA44BonYq0Ge5b4NbmF0tp0xTfJrfB7nsf6beCO_nLw8Y7rgAVCXSeyNh8T20tZgbgjUdWZ78xDpHg9HQ7xm5hRC9hyAqKOnFkgZijDEVIqXIbZF7yu3oG-dNTbnKkVj0HZzdj6CCN3fG8pj0FeUlPM_oF-dl_SYbu3gsQPIkTn-5iu20Lx2PVKYjowv3wEqFNQTxUz9tTIDouzjbQnh7E9PkXv1yfMsQCX21c-LGGEqj_ltjF31OePa9UZ3EdAVxIH8toS3-qQJiIPsV3YshsooyxS6mvv44DwdwKoeTvc3BjPVO80UwLImD5Y11ET8IzMjCCKoCWPGHHElfco
|
61
|
+
Content-Type:
|
62
|
+
- application/json
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 201
|
66
|
+
message: Created
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- no-cache
|
70
|
+
Pragma:
|
71
|
+
- no-cache
|
72
|
+
Content-Length:
|
73
|
+
- '34'
|
74
|
+
Content-Type:
|
75
|
+
- application/json; charset=utf-8
|
76
|
+
Expires:
|
77
|
+
- "-1"
|
78
|
+
Server:
|
79
|
+
- Microsoft-IIS/8.5
|
80
|
+
X-Powered-By:
|
81
|
+
- ASP.NET
|
82
|
+
Date:
|
83
|
+
- Thu, 23 May 2019 14:05:15 GMT
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"status":201,"resourceId":"null"}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Thu, 23 May 2019 14:05:17 GMT
|
89
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Expires:
|
30
|
+
- "-1"
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/8.5
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Wed, 12 Dec 2018 15:35:37 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '486'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"access_token":"JEkV_LhrybMt8ej3i8mODP-IjeI7LfLQx44vE4_pVyiPxLtd1LhSCDNdT75DPOWICQSqA7obB3160Huabh0-ZwS0cAE8D4o1P9TtJoEGTWJkagYjvGK4ystPX-72fqiDNHt0XvcjMeBoYDGzFzJHE50lyH2yeLM0iYXOiF4c--FYTiy2ZZ8oxGIMqVs6-tS_hLShDWINQI8EWLHYeeEuy2PsWQGZ2nJeNNLrKdOWhenRSHlgGELUucmBp9d-6xohO9NDizUBvbZcEbWX_zwRqDOcDaYMjO0H_D3qoyvSTGXhKOKTZmq7GWiwQ8iOv0694lTwunjYJzJLt6GINJ_FzEMsHelIoqS2v-BG8_CO7br5mG2Nf1FO6gqi_raxNbzoG57-yFp7yaLRgiBO7oeb_i_UrxrKVqblO54cXSs7L2Q","token_type":"bearer","expires_in":3599}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 12 Dec 2018 15:35:38 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5J
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 400
|
21
|
+
message: Bad Request
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Microsoft-IIS/8.5
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Date:
|
30
|
+
- Wed, 12 Dec 2018 15:37:38 GMT
|
31
|
+
Expires:
|
32
|
+
- "-1"
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
X-Powered-By:
|
38
|
+
- ASP.NET
|
39
|
+
Content-Length:
|
40
|
+
- '31'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"error":"Invalid Credentials"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 12 Dec 2018 15:37:40 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,171 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Expires:
|
30
|
+
- "-1"
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/8.5
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Thu, 03 Jan 2019 15:42:33 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '507'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"access_token":"SLI6-PienBZnvaYgpf3gnuQDX2RqfcE6ubKr5i7sg-LGGMga5WI9eWTi-Rx-Xh77GPBmoWhQ4ZL-g8pRnZky7K8CY6qFhm7wE0xfHAhIUW8HfP7P8AT7QagPETU5ot774g8bNypLmEZkAPruk5acTbc8qI0-bBZS_SUzN1hfFjWqJyy6nXNe2Ki0Hk4qZZaL-YsXlhpApG9E0tm2svfLmFl6EYJakN_X_xMImg9j4fsyI1T28D_Dku-8pFLWauDQbcrd5Lbj4e8TrR5OMfwF30u-XEB4_eybxWLveh2pQCYbOKzXuhRozDz9-vSH0Z6W3ZC3MHs10eL-pegn5_V8oRZngqE59vUkHSABBsoNr9bT_oGeXH-DvFAXwKHbIbXziaGbH46co-84hcfq8WXPOqEnBqRtNrsIJMNsqx1C3fd6U0MQLFtJAZkDlTkXlkdX","token_type":"bearer","expires_in":3599}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 03 Jan 2019 15:42:34 GMT
|
44
|
+
- request:
|
45
|
+
method: post
|
46
|
+
uri: https://api.listrak.com/email/v1/List/349984/Contact?eventIds=12714&overrideUnsubscribe=true
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"emailAddress":"epigeon@weblinc.com","subscriptionState":"Subscribed","segmentationFieldValues":null}'
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- application/json
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Authorization:
|
58
|
+
- Bearer SLI6-PienBZnvaYgpf3gnuQDX2RqfcE6ubKr5i7sg-LGGMga5WI9eWTi-Rx-Xh77GPBmoWhQ4ZL-g8pRnZky7K8CY6qFhm7wE0xfHAhIUW8HfP7P8AT7QagPETU5ot774g8bNypLmEZkAPruk5acTbc8qI0-bBZS_SUzN1hfFjWqJyy6nXNe2Ki0Hk4qZZaL-YsXlhpApG9E0tm2svfLmFl6EYJakN_X_xMImg9j4fsyI1T28D_Dku-8pFLWauDQbcrd5Lbj4e8TrR5OMfwF30u-XEB4_eybxWLveh2pQCYbOKzXuhRozDz9-vSH0Z6W3ZC3MHs10eL-pegn5_V8oRZngqE59vUkHSABBsoNr9bT_oGeXH-DvFAXwKHbIbXziaGbH46co-84hcfq8WXPOqEnBqRtNrsIJMNsqx1C3fd6U0MQLFtJAZkDlTkXlkdX
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Pragma:
|
69
|
+
- no-cache
|
70
|
+
Content-Length:
|
71
|
+
- '49'
|
72
|
+
Content-Type:
|
73
|
+
- application/json; charset=utf-8
|
74
|
+
Expires:
|
75
|
+
- "-1"
|
76
|
+
Server:
|
77
|
+
- Microsoft-IIS/8.5
|
78
|
+
X-Powered-By:
|
79
|
+
- ASP.NET
|
80
|
+
Date:
|
81
|
+
- Thu, 03 Jan 2019 15:42:33 GMT
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"status":200,"resourceId":"epigeon@weblinc.com"}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 03 Jan 2019 15:42:34 GMT
|
87
|
+
- request:
|
88
|
+
method: post
|
89
|
+
uri: https://auth.listrak.com/OAuth2/Token
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: grant_type=client_credentials&client_id=doyfni0aw64ogd84ld6t&client_secret=LxdEE4Gu4aSJv5tS9osd8WudjGbJ%2BEIPYvZBS7bc5JU
|
93
|
+
headers:
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
User-Agent:
|
99
|
+
- Ruby
|
100
|
+
Content-Type:
|
101
|
+
- application/x-www-form-urlencoded
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Cache-Control:
|
108
|
+
- no-cache
|
109
|
+
Pragma:
|
110
|
+
- no-cache
|
111
|
+
Content-Type:
|
112
|
+
- application/json;charset=UTF-8
|
113
|
+
Expires:
|
114
|
+
- "-1"
|
115
|
+
Server:
|
116
|
+
- Microsoft-IIS/8.5
|
117
|
+
X-Powered-By:
|
118
|
+
- ASP.NET
|
119
|
+
Date:
|
120
|
+
- Thu, 03 Jan 2019 15:42:34 GMT
|
121
|
+
Content-Length:
|
122
|
+
- '507'
|
123
|
+
body:
|
124
|
+
encoding: UTF-8
|
125
|
+
string: '{"access_token":"tyuUeTULaD0ALcqjNfE5hKPrBfICJFtoiSXVwJVRoB-kzUjUj7tf5qiu3vmCSB0DdqHqWxicddFRzF745QNfUTdsFzkNGO-nGdYnwHxCotJeD6cDbeGEZohtXQZSeAty-xF56OzqEH4p1BO75x7AtAnLcN1ZWdTly4DowUfXvvCwrPcJJb_SDVvrBDInTGjkAH9H3HrUOZk13-y8UjeBLNna8oe2f3vv40E5fKaxlmFR568Hc66dT3Uv_Sw2P7VjQe4JxMUdlqj1ZUgsrKuzbmBk7Lh9WGx1TomTjzx4N8Pvaev1kfBmOKv0G25sgUlGp2p3fB_W_h1bCXKzaqpWZJ6EA8mjMMILTWETmnSibFV1O94ZPscO6exRawcU5lCTDHw3yoxIFm1v2eh28H6V9Vsg7_rH-rAjUH_nmqYMQgeONEGq3Yyyt6j2i_fDngsR","token_type":"bearer","expires_in":3599}'
|
126
|
+
http_version:
|
127
|
+
recorded_at: Thu, 03 Jan 2019 15:42:35 GMT
|
128
|
+
- request:
|
129
|
+
method: get
|
130
|
+
uri: https://api.listrak.com/email/v1/List/349984/Contact/epigeon@weblinc.com
|
131
|
+
body:
|
132
|
+
encoding: US-ASCII
|
133
|
+
string: ''
|
134
|
+
headers:
|
135
|
+
Accept-Encoding:
|
136
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
|
+
Accept:
|
138
|
+
- application/json
|
139
|
+
User-Agent:
|
140
|
+
- Ruby
|
141
|
+
Authorization:
|
142
|
+
- Bearer tyuUeTULaD0ALcqjNfE5hKPrBfICJFtoiSXVwJVRoB-kzUjUj7tf5qiu3vmCSB0DdqHqWxicddFRzF745QNfUTdsFzkNGO-nGdYnwHxCotJeD6cDbeGEZohtXQZSeAty-xF56OzqEH4p1BO75x7AtAnLcN1ZWdTly4DowUfXvvCwrPcJJb_SDVvrBDInTGjkAH9H3HrUOZk13-y8UjeBLNna8oe2f3vv40E5fKaxlmFR568Hc66dT3Uv_Sw2P7VjQe4JxMUdlqj1ZUgsrKuzbmBk7Lh9WGx1TomTjzx4N8Pvaev1kfBmOKv0G25sgUlGp2p3fB_W_h1bCXKzaqpWZJ6EA8mjMMILTWETmnSibFV1O94ZPscO6exRawcU5lCTDHw3yoxIFm1v2eh28H6V9Vsg7_rH-rAjUH_nmqYMQgeONEGq3Yyyt6j2i_fDngsR
|
143
|
+
Content-Type:
|
144
|
+
- application/json
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 200
|
148
|
+
message: OK
|
149
|
+
headers:
|
150
|
+
Cache-Control:
|
151
|
+
- no-cache
|
152
|
+
Pragma:
|
153
|
+
- no-cache
|
154
|
+
Content-Length:
|
155
|
+
- '282'
|
156
|
+
Content-Type:
|
157
|
+
- application/json; charset=utf-8
|
158
|
+
Expires:
|
159
|
+
- "-1"
|
160
|
+
Server:
|
161
|
+
- Microsoft-IIS/8.5
|
162
|
+
X-Powered-By:
|
163
|
+
- ASP.NET
|
164
|
+
Date:
|
165
|
+
- Thu, 03 Jan 2019 15:42:34 GMT
|
166
|
+
body:
|
167
|
+
encoding: UTF-8
|
168
|
+
string: '{"status":200,"data":{"emailAddress":"epigeon@weblinc.com","emailKey":"7425C5B02479E4B7C485A4BF8A","subscriptionState":"Subscribed","subscribeDate":"2018-12-14T14:45:04","subscribeMethod":"Administrator","unsubscribeDate":null,"unsubscribeMethod":null,"segmentationFieldValues":[]}}'
|
169
|
+
http_version:
|
170
|
+
recorded_at: Thu, 03 Jan 2019 15:42:35 GMT
|
171
|
+
recorded_with: VCR 2.9.3
|