mailchimp_api_v3 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -0
  3. data/.travis.yml +9 -2
  4. data/Gemfile +5 -1
  5. data/Guardfile +1 -0
  6. data/README.md +1 -1
  7. data/Rakefile +9 -0
  8. data/lib/mailchimp_api_v3.rb +9 -0
  9. data/lib/mailchimp_api_v3/account.rb +1 -0
  10. data/lib/mailchimp_api_v3/client.rb +2 -7
  11. data/lib/mailchimp_api_v3/client/remote.rb +1 -0
  12. data/lib/mailchimp_api_v3/collection.rb +1 -0
  13. data/lib/mailchimp_api_v3/collection/paging.rb +1 -0
  14. data/lib/mailchimp_api_v3/exception.rb +1 -0
  15. data/lib/mailchimp_api_v3/instance.rb +1 -0
  16. data/lib/mailchimp_api_v3/interest.rb +1 -0
  17. data/lib/mailchimp_api_v3/interest_category.rb +1 -0
  18. data/lib/mailchimp_api_v3/list.rb +1 -0
  19. data/lib/mailchimp_api_v3/member.rb +1 -0
  20. data/lib/mailchimp_api_v3/version.rb +2 -1
  21. data/mailchimp_api_v3.gemspec +3 -2
  22. metadata +14 -73
  23. data/spec/fixtures/cassettes/account.yml +0 -96
  24. data/spec/fixtures/cassettes/client.yml +0 -301
  25. data/spec/fixtures/cassettes/exception.yml +0 -189
  26. data/spec/fixtures/cassettes/interest.yml +0 -431
  27. data/spec/fixtures/cassettes/interest_categories.yml +0 -660
  28. data/spec/fixtures/cassettes/interest_category.yml +0 -436
  29. data/spec/fixtures/cassettes/interests.yml +0 -799
  30. data/spec/fixtures/cassettes/list.yml +0 -246
  31. data/spec/fixtures/cassettes/lists.yml +0 -158
  32. data/spec/fixtures/cassettes/mailchimp.yml +0 -96
  33. data/spec/fixtures/cassettes/member.yml +0 -298
  34. data/spec/fixtures/cassettes/members.yml +0 -808
  35. data/spec/fixtures/cassettes/members_create_or_update.yml +0 -817
  36. data/spec/fixtures/cassettes/members_paging.yml +0 -264
  37. data/spec/fixtures/cassettes/members_with_interest_categories.yml +0 -902
  38. data/spec/mailchimp_api_v3/account_spec.rb +0 -15
  39. data/spec/mailchimp_api_v3/client_spec.rb +0 -77
  40. data/spec/mailchimp_api_v3/exception_spec.rb +0 -55
  41. data/spec/mailchimp_api_v3/interest_categories_spec.rb +0 -41
  42. data/spec/mailchimp_api_v3/interest_category_spec.rb +0 -25
  43. data/spec/mailchimp_api_v3/interest_spec.rb +0 -23
  44. data/spec/mailchimp_api_v3/interests_spec.rb +0 -43
  45. data/spec/mailchimp_api_v3/list_spec.rb +0 -65
  46. data/spec/mailchimp_api_v3/lists_spec.rb +0 -21
  47. data/spec/mailchimp_api_v3/member_spec.rb +0 -58
  48. data/spec/mailchimp_api_v3/members_spec.rb +0 -132
  49. data/spec/mailchimp_spec.rb +0 -14
  50. data/spec/spec_helper.rb +0 -24
  51. data/spec/support/api_key.rb +0 -12
  52. data/spec/support/vcr_setup.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ef8fe15e4b2297789c26e643531ca514f50d110
4
- data.tar.gz: 93a6d9ef8c484687ff1c097046e7b229203662cf
3
+ metadata.gz: 611993bf5256a9930a1c92b6ffe4f1acb23c6c90
4
+ data.tar.gz: 663f2a0914dd7f8b308b92c8a13039e62a4f3e3f
5
5
  SHA512:
6
- metadata.gz: eb281848f01565727ebc04d5e906102d0619cc46851bacc3cb7efef7de048628e7d579a49a374aaae5be13933e9a63988caa5bff304fa76b296b443e5d0cb09f
7
- data.tar.gz: ae8cfc94a875a03b680dbec070feb658b24744be49b9a8cfe138083e316150a6d0d72a874cfd77e43362048d35c5d6ab698515b2f318e5a13354133e62c370ba
6
+ metadata.gz: ab20e3dcdaa2720aad93c6e0d5bb95b284ae7527e23f1483270ffc2a64a1cb287405f53400064fb148fb5f25707f83bc939a61a8001746a2f3fcd7296053d2ab
7
+ data.tar.gz: 715a2726becded962f7fe59e75766270b05d28eae75ade54d0fa0801cb46e42ace118db7aeafc345bdc3d214329b59da892a349f9eac7e0281f7a40036451059
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  AllCops:
3
+ TargetRubyVersion: 2.0
4
+ DisplayCopNames: true
3
5
  Exclude:
4
6
  - 'tmp/**/*'
5
7
 
@@ -46,3 +48,8 @@ Style/ExtraSpacing:
46
48
  Lint/LiteralInInterpolation:
47
49
  Description: 'Avoid interpolating literals in strings'
48
50
  AutoCorrect: true
51
+
52
+ Lint/AmbiguousBlockAssociation:
53
+ Exclude:
54
+ - 'spec/**/*.rb'
55
+
@@ -1,6 +1,13 @@
1
1
  ---
2
2
  language: ruby
3
+ dist: trusty
3
4
  rvm:
4
5
  - 2.4.0
5
- script:
6
- - rspec
6
+ - 2.3
7
+ - 2.2
8
+ - 2.1
9
+ - 2.0
10
+ before_install:
11
+ - gem update bundler
12
+ script: bundle exec rspec
13
+ after_success: bundle exec codeclimate-test-reporter
data/Gemfile CHANGED
@@ -1,22 +1,26 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'https://rubygems.org'
3
4
  gemspec
5
+ ruby RUBY_VERSION
4
6
 
5
7
  group :development do
6
8
  gem 'bundler'
7
9
  gem 'gem-release'
10
+ gem 'github_changelog_generator'
8
11
  gem 'guard'
9
12
  gem 'guard-rspec'
10
13
  gem 'guard-rubocop'
11
14
  end
12
15
 
13
16
  group :test do
17
+ gem 'codeclimate-test-reporter'
14
18
  gem 'coveralls'
15
19
  gem 'fuubar'
16
20
  gem 'rake' # Workaround for a bug in Rainbow 2.2.1 https://github.com/sickill/rainbow/issues/44
17
21
  gem 'rspec'
18
22
  gem 'rspec_junit_formatter'
19
- gem 'simplecov', '~> 0.13'
23
+ gem 'simplecov'
20
24
  gem 'vcr'
21
25
  gem 'webmock'
22
26
  end
data/Guardfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  guard :rubocop do
3
4
  watch(/.+\.rb$/)
4
5
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Build status](https://img.shields.io/circleci/project/dominicsayers/mailchimp_api_v3/develop.svg)](https://circleci.com/gh/dominicsayers/mailchimp_api_v3)
5
5
  [![Code quality](http://img.shields.io/codeclimate/github/dominicsayers/mailchimp_api_v3.svg?style=flat)](https://codeclimate.com/github/dominicsayers/mailchimp_api_v3)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/dominicsayers/mailchimp_api_v3/badge.svg?branch=develop)](https://coveralls.io/github/dominicsayers/mailchimp_api_v3?branch=develop)
7
- [![Dependency Status](https://dependencyci.com/github/dominicsayers/mailchimp_api_v3/badge)](https://dependencyci.com/github/dominicsayers/mailchimp_api_v3)
7
+ [![Dependency Status](https://gemnasium.com/badges/github.com/dominicsayers/mailchimp_api_v3.svg)](https://gemnasium.com/github.com/dominicsayers/mailchimp_api_v3)
8
8
  [![Security](https://hakiri.io/github/dominicsayers/mailchimp_api_v3/develop.svg)](https://hakiri.io/github/dominicsayers/mailchimp_api_v3/develop)
9
9
 
10
10
  A simple gem to interact with Mailchimp through the Mailchimp API v3.
@@ -0,0 +1,9 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
7
+ rescue LoadError
8
+ puts 'rspec is not available'
9
+ end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'mailchimp_api_v3/version'
3
4
  require 'mailchimp_api_v3/collection/paging'
4
5
  require 'mailchimp_api_v3/collection'
@@ -47,3 +48,11 @@ class String
47
48
  OpenSSL::Digest.digest('MD5', downcase).unpack('H*').first
48
49
  end
49
50
  end
51
+
52
+ module YAML
53
+ unless respond_to?(:safe_load)
54
+ def self.safe_load(*args)
55
+ load(*args)
56
+ end
57
+ end
58
+ end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class Account < Instance
4
5
  def id
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class Client < Instance
4
5
  include Remote
@@ -23,13 +24,7 @@ module Mailchimp
23
24
 
24
25
  def initialize(api_key = nil, extra_headers = {})
25
26
  @api_key = api_key || ENV['MAILCHIMP_API_KEY']
26
-
27
- unless api_key_valid?
28
- raise(
29
- Mailchimp::Exception::APIKeyError,
30
- 'detail' => "Invalid API key format: #{@api_key}"
31
- )
32
- end
27
+ raise Mailchimp::Exception::APIKeyError, "Invalid API key format: #{@api_key}" unless api_key_valid?
33
28
 
34
29
  @extra_headers = extra_headers
35
30
  super self, { 'id' => '3.0' }
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'json'
3
4
  require 'yaml'
4
5
  require 'restclient'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class Collection < Array
4
5
  include Paging
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class Collection < Array
4
5
  module Paging
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  module Exception
4
5
  def self.parse_invalid_resource_exception(data)
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class Instance
4
5
  # Class methods
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class List
4
5
  class InterestCategory
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class List
4
5
  class InterestCategory < Instance
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class List < Instance
4
5
  def members(options = {})
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
4
  class List
4
5
  class Member < Instance
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Mailchimp
3
- VERSION = '0.2.17'.freeze
4
+ VERSION = '0.2.18'.freeze
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'mailchimp_api_v3/version'
@@ -13,9 +14,9 @@ Gem::Specification.new do |spec|
13
14
  spec.homepage = 'https://github.com/dominicsayers/mailchimp_api_v3'
14
15
  spec.license = 'BSD-2-Clause'
15
16
 
16
- spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).reject { |file| file =~ %r{^(spec|script)/} }
17
18
  spec.executables = spec.files.grep(%r{^bin\/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features|coverage)\/})
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features|coverage|script)/})
19
20
  spec.require_paths = ['lib']
20
21
 
21
22
  spec.add_runtime_dependency 'rest-client', '~> 2' # https://github.com/rest-client/rest-client/issues/369
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailchimp_api_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Sayers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2'
27
27
  description: A simple gem to interact with Mailchimp through their API v3
@@ -31,17 +31,18 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".gitignore"
35
- - ".hound.yml"
36
- - ".rspec"
37
- - ".rubocop.yml"
38
- - ".travis.yml"
34
+ - .gitignore
35
+ - .hound.yml
36
+ - .rspec
37
+ - .rubocop.yml
38
+ - .travis.yml
39
39
  - CODE_OF_CONDUCT.md
40
40
  - Gemfile
41
41
  - Guardfile
42
42
  - HISTORY.md
43
43
  - LICENSE
44
44
  - README.md
45
+ - Rakefile
45
46
  - circle.yml
46
47
  - lib/mailchimp_api_v3.rb
47
48
  - lib/mailchimp_api_v3/account.rb
@@ -57,36 +58,6 @@ files:
57
58
  - lib/mailchimp_api_v3/member.rb
58
59
  - lib/mailchimp_api_v3/version.rb
59
60
  - mailchimp_api_v3.gemspec
60
- - spec/fixtures/cassettes/account.yml
61
- - spec/fixtures/cassettes/client.yml
62
- - spec/fixtures/cassettes/exception.yml
63
- - spec/fixtures/cassettes/interest.yml
64
- - spec/fixtures/cassettes/interest_categories.yml
65
- - spec/fixtures/cassettes/interest_category.yml
66
- - spec/fixtures/cassettes/interests.yml
67
- - spec/fixtures/cassettes/list.yml
68
- - spec/fixtures/cassettes/lists.yml
69
- - spec/fixtures/cassettes/mailchimp.yml
70
- - spec/fixtures/cassettes/member.yml
71
- - spec/fixtures/cassettes/members.yml
72
- - spec/fixtures/cassettes/members_create_or_update.yml
73
- - spec/fixtures/cassettes/members_paging.yml
74
- - spec/fixtures/cassettes/members_with_interest_categories.yml
75
- - spec/mailchimp_api_v3/account_spec.rb
76
- - spec/mailchimp_api_v3/client_spec.rb
77
- - spec/mailchimp_api_v3/exception_spec.rb
78
- - spec/mailchimp_api_v3/interest_categories_spec.rb
79
- - spec/mailchimp_api_v3/interest_category_spec.rb
80
- - spec/mailchimp_api_v3/interest_spec.rb
81
- - spec/mailchimp_api_v3/interests_spec.rb
82
- - spec/mailchimp_api_v3/list_spec.rb
83
- - spec/mailchimp_api_v3/lists_spec.rb
84
- - spec/mailchimp_api_v3/member_spec.rb
85
- - spec/mailchimp_api_v3/members_spec.rb
86
- - spec/mailchimp_spec.rb
87
- - spec/spec_helper.rb
88
- - spec/support/api_key.rb
89
- - spec/support/vcr_setup.rb
90
61
  homepage: https://github.com/dominicsayers/mailchimp_api_v3
91
62
  licenses:
92
63
  - BSD-2-Clause
@@ -97,48 +68,18 @@ require_paths:
97
68
  - lib
98
69
  required_ruby_version: !ruby/object:Gem::Requirement
99
70
  requirements:
100
- - - ">="
71
+ - - '>='
101
72
  - !ruby/object:Gem::Version
102
73
  version: '0'
103
74
  required_rubygems_version: !ruby/object:Gem::Requirement
104
75
  requirements:
105
- - - ">="
76
+ - - '>='
106
77
  - !ruby/object:Gem::Version
107
78
  version: '0'
108
79
  requirements: []
109
80
  rubyforge_project:
110
- rubygems_version: 2.6.10
81
+ rubygems_version: 2.6.11
111
82
  signing_key:
112
83
  specification_version: 4
113
84
  summary: 'Example: mailchimp.lists("My first list").member("ann@example.com")'
114
- test_files:
115
- - spec/fixtures/cassettes/account.yml
116
- - spec/fixtures/cassettes/client.yml
117
- - spec/fixtures/cassettes/exception.yml
118
- - spec/fixtures/cassettes/interest.yml
119
- - spec/fixtures/cassettes/interest_categories.yml
120
- - spec/fixtures/cassettes/interest_category.yml
121
- - spec/fixtures/cassettes/interests.yml
122
- - spec/fixtures/cassettes/list.yml
123
- - spec/fixtures/cassettes/lists.yml
124
- - spec/fixtures/cassettes/mailchimp.yml
125
- - spec/fixtures/cassettes/member.yml
126
- - spec/fixtures/cassettes/members.yml
127
- - spec/fixtures/cassettes/members_create_or_update.yml
128
- - spec/fixtures/cassettes/members_paging.yml
129
- - spec/fixtures/cassettes/members_with_interest_categories.yml
130
- - spec/mailchimp_api_v3/account_spec.rb
131
- - spec/mailchimp_api_v3/client_spec.rb
132
- - spec/mailchimp_api_v3/exception_spec.rb
133
- - spec/mailchimp_api_v3/interest_categories_spec.rb
134
- - spec/mailchimp_api_v3/interest_category_spec.rb
135
- - spec/mailchimp_api_v3/interest_spec.rb
136
- - spec/mailchimp_api_v3/interests_spec.rb
137
- - spec/mailchimp_api_v3/list_spec.rb
138
- - spec/mailchimp_api_v3/lists_spec.rb
139
- - spec/mailchimp_api_v3/member_spec.rb
140
- - spec/mailchimp_api_v3/members_spec.rb
141
- - spec/mailchimp_spec.rb
142
- - spec/spec_helper.rb
143
- - spec/support/api_key.rb
144
- - spec/support/vcr_setup.rb
85
+ test_files: []
@@ -1,96 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
16
- Authorization:
17
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
18
- Host:
19
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
20
- response:
21
- status:
22
- code: 301
23
- message: Moved Permanently
24
- headers:
25
- Server:
26
- - nginx
27
- Content-Type:
28
- - text/html; charset=iso-8859-1
29
- Content-Length:
30
- - '242'
31
- Location:
32
- - http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
33
- Date:
34
- - Thu, 04 Aug 2016 14:25:59 GMT
35
- Connection:
36
- - keep-alive
37
- body:
38
- encoding: UTF-8
39
- string: |
40
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
41
- <html><head>
42
- <title>301 Moved Permanently</title>
43
- </head><body>
44
- <h1>Moved Permanently</h1>
45
- <p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
46
- </body></html>
47
- http_version:
48
- recorded_at: Thu, 04 Aug 2016 14:25:59 GMT
49
- - request:
50
- method: get
51
- uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
52
- body:
53
- encoding: US-ASCII
54
- string: ''
55
- headers:
56
- Accept:
57
- - "*/*; q=0.5, application/xml"
58
- Accept-Encoding:
59
- - gzip, deflate
60
- User-Agent:
61
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
- Authorization:
63
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
64
- Host:
65
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
66
- response:
67
- status:
68
- code: 200
69
- message: OK
70
- headers:
71
- Server:
72
- - nginx
73
- Content-Type:
74
- - application/json; charset=utf-8
75
- Content-Length:
76
- - '3269'
77
- X-Request-Id:
78
- - a4254ba5-c5e9-48fb-84a5-9857c659ccc2
79
- Link:
80
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
81
- Vary:
82
- - Accept-Encoding
83
- Date:
84
- - Thu, 04 Aug 2016 14:26:00 GMT
85
- Connection:
86
- - keep-alive
87
- Set-Cookie:
88
- - _AVESTA_ENVIRONMENT=prod; path=/
89
- body:
90
- encoding: ASCII-8BIT
91
- string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
92
- Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
93
- 7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":8,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists.json"},{"rel":"reports","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Conversations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Conversations.json"},{"rel":"campaigns","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Automations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Automations.json"},{"rel":"templates","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Templates/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Templates.json"},{"rel":"file-manager","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"},{"rel":"batches","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/batches","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Batches/Collection.json"},{"rel":"template-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/template-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/TemplateFolders/Collection.json"},{"rel":"campaign-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaign-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CampaignFolders/Collection.json"},{"rel":"ecommerce","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/ecommerce","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Ecommerce/Namespace.json"}]}'
94
- http_version:
95
- recorded_at: Thu, 04 Aug 2016 14:26:00 GMT
96
- recorded_with: VCR 3.0.3