active_campaign 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +4 -0
- data/.rspec +2 -1
- data/.rubocop.yml +19 -0
- data/.travis.yml +5 -7
- data/Gemfile +10 -11
- data/README.md +21 -6
- data/Rakefile +14 -1
- data/active_campaign.gemspec +13 -11
- data/circle.yml +16 -0
- data/lib/active_campaign.rb +26 -28
- data/lib/active_campaign/client.rb +75 -75
- data/lib/active_campaign/client/campaigns.rb +5 -20
- data/lib/active_campaign/client/contacts.rb +17 -26
- data/lib/active_campaign/client/lists.rb +6 -4
- data/lib/active_campaign/client/messages.rb +3 -19
- data/lib/active_campaign/configuration.rb +35 -0
- data/lib/active_campaign/error.rb +36 -26
- data/lib/active_campaign/version.rb +1 -1
- data/spec/active_campaign_spec.rb +6 -12
- data/spec/cassettes/ActiveCampaign_Client_Contacts/_contact_sync/when_successful/returns_1_for_result_code.json +1 -1
- data/spec/cassettes/ActiveCampaign_Client_Contacts/_contact_view/can_find_contact_by_id.json +1 -1
- data/spec/cassettes/ActiveCampaign_Client_Lists/_list_list/can_find_a_list_of_lists.json +1 -1
- data/spec/cassettes/ActiveCampaign_Client_Lists/_list_view/can_find_lists_by_id.json +1 -1
- data/spec/client/contacts_spec.rb +24 -23
- data/spec/client/lists_spec.rb +8 -10
- data/spec/client_spec.rb +1 -2
- data/spec/spec_helper.rb +14 -53
- data/spec/support/coverage.rb +12 -0
- data/spec/support/vcr.rb +27 -0
- data/spec/support/webmock.rb +2 -0
- metadata +41 -6
- data/lib/active_campaign/configurable.rb +0 -66
- data/lib/active_campaign/default.rb +0 -81
@@ -1,18 +1,19 @@
|
|
1
1
|
module ActiveCampaign
|
2
2
|
class Client
|
3
3
|
module Campaigns
|
4
|
-
CONTACT_METHODS = %w
|
4
|
+
CONTACT_METHODS = %w(
|
5
5
|
create delete_list delete list paginator report_bounce_list
|
6
6
|
report_bounce_totals report_forward_list report_forward_totals
|
7
7
|
report_link_list report_link_totals report_open_list report_open_totals
|
8
8
|
report_totals report_unopen_list report_unsubscription_list
|
9
9
|
report_unsubscription_totals send status
|
10
|
-
|
11
|
-
CONTACT_POST_METHODS = %w
|
10
|
+
)
|
11
|
+
CONTACT_POST_METHODS = %w(create)
|
12
12
|
|
13
13
|
extend ActiveSupport::Concern
|
14
14
|
|
15
|
-
# TODO: Create proper methods with parameter validation and possible
|
15
|
+
# TODO: Create proper methods with parameter validation and possible
|
16
|
+
# naming fixes since this is one the worst APIs I have ever worked with.
|
16
17
|
included do
|
17
18
|
CONTACT_METHODS.each do |method|
|
18
19
|
define_method "campaign_#{method}" do |options|
|
@@ -27,19 +28,3 @@ module ActiveCampaign
|
|
27
28
|
end
|
28
29
|
end
|
29
30
|
end
|
30
|
-
|
31
|
-
# contact_sync - parameters
|
32
|
-
# email - Email of the new subscriber. Example: 'test@example.com'
|
33
|
-
# first_name - First name of the subscriber. Example: 'FirstName'
|
34
|
-
# last_name - Last name of the subscriber. Example: 'LastName'
|
35
|
-
# ip4 - IP address of the subscriber. Example: '127.0.0.1' If not supplied, it will default to '127.0.0.1'
|
36
|
-
# field[345,0] - Custom field values. Example: field[345,0] = 'value'. In this example, "345" is the field ID. Leave 0 as is.
|
37
|
-
# field[%PERS_1%,0] - 'value' (You can also use the personalization tag to specify which field you want updated)
|
38
|
-
# - Assign to lists. List ID goes in brackets, as well as the value.
|
39
|
-
# status[123] - The status for each list the subscriber is added to. Examples: 1 = active, 2 = unsubscribed
|
40
|
-
# form - Optional subscription Form ID, to inherit those redirection settings. Example: 1001. This will allow you to mimic adding the subscriber through a subscription form, where you can take advantage of the redirection settings.
|
41
|
-
# noresponders[123] - Whether or not to set "do not send any future responders." Examples: 1 = yes, 0 = no.
|
42
|
-
# sdate[123] - Subscribe date for particular list - leave out to use current date/time. Example: '2009-12-07 06:00:00'
|
43
|
-
# instantresponders[123] Use only if status = 1. Whether or not to set "send instant responders." Examples: 1 = yes, 0 = no.
|
44
|
-
# lastmessage[123] - Whether or not to set "send the last broadcast campaign." Examples: 1 = yes, 0 = no.
|
45
|
-
# "field[%BALANCE%,0]": "100"
|
@@ -1,20 +1,27 @@
|
|
1
|
-
require 'active_support
|
1
|
+
require 'active_support'
|
2
|
+
|
2
3
|
module ActiveCampaign
|
3
4
|
class Client
|
4
5
|
module Contacts
|
5
|
-
CONTACT_METHODS = %w
|
6
|
-
|
6
|
+
CONTACT_METHODS = %w(
|
7
|
+
add automation_list delete_list delete edit list paginator
|
8
|
+
sync view view_email view_hash tag_add tag_remove
|
9
|
+
)
|
10
|
+
CONTACT_POST_METHODS = %w(add edit sync tag_add tag_remove)
|
7
11
|
|
8
12
|
extend ActiveSupport::Concern
|
9
13
|
|
10
|
-
# TODO: Create proper methods with parameter validation and possible naming
|
14
|
+
# TODO: Create proper methods with parameter validation and possible naming
|
15
|
+
# fixes since this is one the worst APIs I have ever worked with.
|
11
16
|
included do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
%w(contact subscriber).each do |name|
|
18
|
+
CONTACT_METHODS.each do |method|
|
19
|
+
define_method "#{name}_#{method}" do |options|
|
20
|
+
if CONTACT_POST_METHODS.include?(method)
|
21
|
+
post __method__, options
|
22
|
+
else
|
23
|
+
get __method__, options
|
24
|
+
end
|
18
25
|
end
|
19
26
|
end
|
20
27
|
end
|
@@ -22,19 +29,3 @@ module ActiveCampaign
|
|
22
29
|
end
|
23
30
|
end
|
24
31
|
end
|
25
|
-
|
26
|
-
# contact_sync - parameters
|
27
|
-
# email - Email of the new subscriber. Example: 'test@example.com'
|
28
|
-
# first_name - First name of the subscriber. Example: 'FirstName'
|
29
|
-
# last_name - Last name of the subscriber. Example: 'LastName'
|
30
|
-
# ip4 - IP address of the subscriber. Example: '127.0.0.1' If not supplied, it will default to '127.0.0.1'
|
31
|
-
# field[345,0] - Custom field values. Example: field[345,0] = 'value'. In this example, "345" is the field ID. Leave 0 as is.
|
32
|
-
# field[%PERS_1%,0] - 'value' (You can also use the personalization tag to specify which field you want updated)
|
33
|
-
# - Assign to lists. List ID goes in brackets, as well as the value.
|
34
|
-
# status[123] - The status for each list the subscriber is added to. Examples: 1 = active, 2 = unsubscribed
|
35
|
-
# form - Optional subscription Form ID, to inherit those redirection settings. Example: 1001. This will allow you to mimic adding the subscriber through a subscription form, where you can take advantage of the redirection settings.
|
36
|
-
# noresponders[123] - Whether or not to set "do not send any future responders." Examples: 1 = yes, 0 = no.
|
37
|
-
# sdate[123] - Subscribe date for particular list - leave out to use current date/time. Example: '2009-12-07 06:00:00'
|
38
|
-
# instantresponders[123] Use only if status = 1. Whether or not to set "send instant responders." Examples: 1 = yes, 0 = no.
|
39
|
-
# lastmessage[123] - Whether or not to set "send the last broadcast campaign." Examples: 1 = yes, 0 = no.
|
40
|
-
# "field[%BALANCE%,0]": "100"
|
@@ -1,12 +1,14 @@
|
|
1
1
|
module ActiveCampaign
|
2
2
|
class Client
|
3
3
|
module Lists
|
4
|
-
LIST_API_METHODS = %w
|
5
|
-
|
4
|
+
LIST_API_METHODS = %w(
|
5
|
+
add delete_list delete edit field_add field_delete
|
6
|
+
field_edit field_view list paginator view
|
7
|
+
)
|
8
|
+
LIST_POST_METHODS = %w(add edit)
|
6
9
|
|
7
10
|
extend ActiveSupport::Concern
|
8
11
|
|
9
|
-
# TODO: Create proper methods with parameter validation and possible naming conversion since this is one the worst APIs I have ever worked with.
|
10
12
|
included do
|
11
13
|
LIST_API_METHODS.each do |method|
|
12
14
|
define_method "list_#{method}" do |options|
|
@@ -20,4 +22,4 @@ module ActiveCampaign
|
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
23
|
-
end
|
25
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module ActiveCampaign
|
2
2
|
class Client
|
3
3
|
module Messages
|
4
|
-
CONTACT_METHODS = %w
|
4
|
+
CONTACT_METHODS = %w(
|
5
5
|
add delete_list delete edit list template_add template_delete_list
|
6
6
|
template_delete template_edit template_export template_import
|
7
7
|
template_list template_view view
|
8
|
-
|
9
|
-
CONTACT_POST_METHODS = %w
|
8
|
+
)
|
9
|
+
CONTACT_POST_METHODS = %w(add edit)
|
10
10
|
|
11
11
|
extend ActiveSupport::Concern
|
12
12
|
|
@@ -26,19 +26,3 @@ module ActiveCampaign
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
30
|
-
# contact_sync - parameters
|
31
|
-
# email - Email of the new subscriber. Example: 'test@example.com'
|
32
|
-
# first_name - First name of the subscriber. Example: 'FirstName'
|
33
|
-
# last_name - Last name of the subscriber. Example: 'LastName'
|
34
|
-
# ip4 - IP address of the subscriber. Example: '127.0.0.1' If not supplied, it will default to '127.0.0.1'
|
35
|
-
# field[345,0] - Custom field values. Example: field[345,0] = 'value'. In this example, "345" is the field ID. Leave 0 as is.
|
36
|
-
# field[%PERS_1%,0] - 'value' (You can also use the personalization tag to specify which field you want updated)
|
37
|
-
# - Assign to lists. List ID goes in brackets, as well as the value.
|
38
|
-
# status[123] - The status for each list the subscriber is added to. Examples: 1 = active, 2 = unsubscribed
|
39
|
-
# form - Optional subscription Form ID, to inherit those redirection settings. Example: 1001. This will allow you to mimic adding the subscriber through a subscription form, where you can take advantage of the redirection settings.
|
40
|
-
# noresponders[123] - Whether or not to set "do not send any future responders." Examples: 1 = yes, 0 = no.
|
41
|
-
# sdate[123] - Subscribe date for particular list - leave out to use current date/time. Example: '2009-12-07 06:00:00'
|
42
|
-
# instantresponders[123] Use only if status = 1. Whether or not to set "send instant responders." Examples: 1 = yes, 0 = no.
|
43
|
-
# lastmessage[123] - Whether or not to set "send the last broadcast campaign." Examples: 1 = yes, 0 = no.
|
44
|
-
# "field[%BALANCE%,0]": "100"
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Configuration
|
5
|
+
API_ENDPOINT = 'https://subdomain.activehosted.com/admin/api.php'.freeze
|
6
|
+
USER_AGENT = "ActiveCampaign Ruby Gem #{ActiveCampaign::VERSION}".freeze
|
7
|
+
API_OUTPUT = 'json'.freeze
|
8
|
+
|
9
|
+
def configuration
|
10
|
+
@configuration ||= default_config
|
11
|
+
end
|
12
|
+
alias_method :config, :configuration
|
13
|
+
|
14
|
+
def configure
|
15
|
+
yield configuration if block_given?
|
16
|
+
end
|
17
|
+
|
18
|
+
def default_config
|
19
|
+
OpenStruct.new(
|
20
|
+
api_key: nil,
|
21
|
+
api_endpoint: API_ENDPOINT,
|
22
|
+
api_output: API_OUTPUT,
|
23
|
+
user_agent: USER_AGENT,
|
24
|
+
log: false,
|
25
|
+
logger: nil,
|
26
|
+
log_level: :info,
|
27
|
+
mash: false,
|
28
|
+
debug: false)
|
29
|
+
end
|
30
|
+
|
31
|
+
def reset!
|
32
|
+
@configuration = default_config
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,40 +1,48 @@
|
|
1
1
|
module ActiveCampaign
|
2
2
|
# Custom error class for rescuing from all GitHub errors
|
3
3
|
class Error < StandardError
|
4
|
+
ERRORS = {
|
5
|
+
400 => ActiveCampaign::BadRequest,
|
6
|
+
401 => ActiveCampaign::Unauthorized,
|
7
|
+
403 => (lambda do |body|
|
8
|
+
if body =~ /rate limit exceeded/i
|
9
|
+
ActiveCampaign::TooManyRequests
|
10
|
+
elsif body =~ /login attempts exceeded/i
|
11
|
+
ActiveCampaign::TooManyLoginAttempts
|
12
|
+
else
|
13
|
+
ActiveCampaign::Forbidden
|
14
|
+
end
|
15
|
+
end),
|
16
|
+
404 => ActiveCampaign::NotFound,
|
17
|
+
406 => ActiveCampaign::NotAcceptable,
|
18
|
+
422 => ActiveCampaign::UnprocessableEntity,
|
19
|
+
500 => ActiveCampaign::InternalServerError,
|
20
|
+
501 => ActiveCampaign::NotImplemented,
|
21
|
+
502 => ActiveCampaign::BadGateway,
|
22
|
+
503 => ActiveCampaign::ServiceUnavailable
|
23
|
+
}
|
4
24
|
|
5
25
|
# Returns the appropriate ActiveCampaign::Error sublcass based
|
6
26
|
# on status and response message
|
7
27
|
#
|
8
28
|
# @param [Hash]
|
9
29
|
# @returns [ActiveCampaign::Error]
|
30
|
+
# rubocop:disable MethodLength
|
10
31
|
def self.from_response(response)
|
11
32
|
status = response[:status].to_i
|
12
33
|
body = response[:body].to_s
|
34
|
+
klass = error_class(status)
|
35
|
+
klass.new(response, body)
|
36
|
+
end
|
37
|
+
# rubocop:disable MethodLength
|
13
38
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
if body =~ /rate limit exceeded/i
|
19
|
-
ActiveCampaign::TooManyRequests
|
20
|
-
elsif body =~ /login attempts exceeded/i
|
21
|
-
ActiveCampaign::TooManyLoginAttempts
|
22
|
-
else
|
23
|
-
ActiveCampaign::Forbidden
|
24
|
-
end
|
25
|
-
when 404 then ActiveCampaign::NotFound
|
26
|
-
when 406 then ActiveCampaign::NotAcceptable
|
27
|
-
when 422 then ActiveCampaign::UnprocessableEntity
|
28
|
-
when 500 then ActiveCampaign::InternalServerError
|
29
|
-
when 501 then ActiveCampaign::NotImplemented
|
30
|
-
when 502 then ActiveCampaign::BadGateway
|
31
|
-
when 503 then ActiveCampaign::ServiceUnavailable
|
32
|
-
end
|
33
|
-
klass.new(response)
|
34
|
-
end
|
39
|
+
def self.error_class(status, body)
|
40
|
+
klass = ERRORS[status]
|
41
|
+
return klass[body] if status == 403
|
42
|
+
klass
|
35
43
|
end
|
36
44
|
|
37
|
-
def initialize(response=nil)
|
45
|
+
def initialize(response = nil)
|
38
46
|
@response = response
|
39
47
|
super(build_error_message)
|
40
48
|
end
|
@@ -49,13 +57,13 @@ module ActiveCampaign
|
|
49
57
|
body = @response[:body]
|
50
58
|
|
51
59
|
if body.present? && body.is_a?(String)
|
52
|
-
return Sawyer::Agent.serializer.decode(body) if
|
60
|
+
return Sawyer::Agent.serializer.decode(body) if json?
|
53
61
|
end
|
54
62
|
|
55
63
|
body
|
56
64
|
end
|
57
65
|
|
58
|
-
def
|
66
|
+
def json?
|
59
67
|
@response[:response_headers] && @response[:response_headers][:content_type] =~ /json/
|
60
68
|
end
|
61
69
|
|
@@ -77,23 +85,25 @@ module ActiveCampaign
|
|
77
85
|
|
78
86
|
summary = "\nError summary:\n"
|
79
87
|
summary << data[:errors].map do |hash|
|
80
|
-
hash.map { |k,v| " #{k}: #{v}" }
|
88
|
+
hash.map { |k, v| " #{k}: #{v}" }
|
81
89
|
end.join("\n")
|
82
90
|
|
83
91
|
summary
|
84
92
|
end
|
85
93
|
|
94
|
+
# rubocop:disable AbcSize
|
86
95
|
def build_error_message
|
87
96
|
return nil if @response.nil?
|
88
97
|
|
89
98
|
message = "#{@response[:method].to_s.upcase} "
|
90
|
-
message << "#{@response[:url]
|
99
|
+
message << "#{@response[:url]}: "
|
91
100
|
message << "#{@response[:status]} - "
|
92
101
|
message << "#{response_message}" unless response_message.nil?
|
93
102
|
message << "#{response_error}" unless response_error.nil?
|
94
103
|
message << "#{response_error_summary}" unless response_error_summary.nil?
|
95
104
|
message
|
96
105
|
end
|
106
|
+
# rubocop:enable AbcSize
|
97
107
|
end
|
98
108
|
|
99
109
|
# Raised when ActiveCampaign returns a 400 HTTP status code
|
@@ -9,12 +9,6 @@ describe ActiveCampaign do
|
|
9
9
|
ActiveCampaign.reset!
|
10
10
|
end
|
11
11
|
|
12
|
-
it 'sets defaults' do
|
13
|
-
ActiveCampaign::Configurable.keys.each do |key|
|
14
|
-
expect(ActiveCampaign.instance_variable_get(:"@#{key}")).to eq ActiveCampaign::Default.send(key)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
12
|
describe '.client' do
|
19
13
|
it 'creates an ActiveCampaign::Client' do
|
20
14
|
expect(ActiveCampaign.client).to be_kind_of ActiveCampaign::Client
|
@@ -26,22 +20,22 @@ describe ActiveCampaign do
|
|
26
20
|
|
27
21
|
it 'returns a fresh client when options are not the same' do
|
28
22
|
client = ActiveCampaign.client
|
29
|
-
ActiveCampaign.api_key = 'somekey'
|
23
|
+
ActiveCampaign.config.api_key = 'somekey'
|
30
24
|
client_two = ActiveCampaign.client
|
31
25
|
client_three = ActiveCampaign.client
|
32
|
-
expect(
|
33
|
-
expect(
|
26
|
+
expect(client_three).to eql client_two
|
27
|
+
expect(client).to_not eql client_two
|
34
28
|
end
|
35
29
|
end
|
36
30
|
|
37
31
|
describe '.configure' do
|
38
|
-
ActiveCampaign
|
32
|
+
ActiveCampaign.config.to_h.keys.each do |key|
|
39
33
|
it "sets the #{key.to_s.gsub('_', ' ')}" do
|
40
34
|
ActiveCampaign.configure do |config|
|
41
35
|
config.send("#{key}=", key)
|
42
36
|
end
|
43
|
-
expect(ActiveCampaign.
|
37
|
+
expect(ActiveCampaign.configuration[key]).to eq key
|
44
38
|
end
|
45
39
|
end
|
46
40
|
end
|
47
|
-
end
|
41
|
+
end
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"\
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"\u003cAPI_ENDPOINT\u003eadmin/api.php?api_action=contact_sync\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json","body":{"encoding":"US-ASCII","base64_string":"ZW1haWw9bWhlbnJpeG9uJTQwbWUuY29tJmZpcnN0X25hbWU9TWlrYWVsJmlk\nPTEmaW5zdGFudHJlc3BvbmRlcnMlNUIxJTVEPTEmaXA0PTEyNy4wLjAuMSZs\nYXN0X25hbWU9SGVucmlrc3NvbiZwJTVCMSU1RD0xJnF1ZXJ5JTVCbGlzdGlk\nJTVEPTEmc3RhdHVzJTVCMSU1RD0x\n"},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=eub036nutku58dgp7tctml34p4; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:30:10 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:30:11 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-3"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWJzY3JpYmVyX2lkIjoyLCJzZW5kbGFzdF9zaG91bGQiOjAsInNlbmRs\nYXN0X2RpZCI6MCwicmVzdWx0X2NvZGUiOjEsInJlc3VsdF9tZXNzYWdlIjoi\nQ29udGFjdCB1cGRhdGVkIiwicmVzdWx0X291dHB1dCI6Impzb24ifQ==\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:30:11 GMT"},{"request":{"method":"post","uri":"\u003cAPI_ENDPOINT\u003e?api_action=contact_sync\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json","body":{"encoding":"UTF-8","base64_string":"ZW1haWw9bWhlbnJpeG9uJTQwbWUuY29tJmZpcnN0X25hbWU9TWlrYWVsJmlk\nPTEmaW5zdGFudHJlc3BvbmRlcnMlNUIxJTVEPTEmaXA0PTEyNy4wLjAuMSZs\nYXN0X25hbWU9SGVucmlrc3NvbiZwJTVCMSU1RD0xJnF1ZXJ5JTVCbGlzdGlk\nJTVEPTEmc3RhdHVzJTVCMSU1RD0x\n"},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=fbvk5h0a2e8n79qnmrb4p6diq6; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 18:18:15 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 18:18:17 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWJzY3JpYmVyX2lkIjo1MjU0LCJzZW5kbGFzdF9zaG91bGQiOjAsInNl\nbmRsYXN0X2RpZCI6MCwicmVzdWx0X2NvZGUiOjEsInJlc3VsdF9tZXNzYWdl\nIjoiQ29udGFjdCB1cGRhdGVkIiwicmVzdWx0X291dHB1dCI6Impzb24ifQ==\n"},"http_version":null},"recorded_at":"Wed, 13 May 2015 18:18:17 GMT"}],"recorded_with":"VCR 2.9.3"}
|
data/spec/cassettes/ActiveCampaign_Client_Contacts/_contact_view/can_find_contact_by_id.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"\u003CAPI_ENDPOINT\u003Eadmin/api.php?api_action=contact_view\u0026api_key=\u003CAPI_KEY\u003E\u0026api_output=json\u0026id=2","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=3c8269482jo6boi8h2qik5s9b4; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:31:02 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:31:03 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-5"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjIiLCJzdWJzY3JpYmVyaWQiOiIyIiwibGlzdGlkIjoiMiIsImZv\ncm1pZCI6IjAiLCJzZGF0ZSI6IjIwMTMtMTAtMTYgMTM6MjQ6MDEiLCJ1ZGF0\nZSI6IjIwMTMtMTAtMTYgMTQ6MjA6NTciLCJzdGF0dXMiOiIyIiwicmVzcG9u\nZGVyIjoiMSIsInN5bmMiOiIwIiwidW5zdWJyZWFzb24iOm51bGwsInVuc3Vi\nY2FtcGFpZ25pZCI6IjAiLCJ1bnN1Ym1lc3NhZ2VpZCI6IjAiLCJmaXJzdF9u\nYW1lIjoiTWlrYWVsIiwibGFzdF9uYW1lIjoiSGVucmlrc3NvbiIsImlwNF9z\ndWIiOiIyMTMwNzA2NDMzIiwic291cmNlaWQiOiI0Iiwic291cmNlaWRfYXV0\nb3N5bmMiOiIwIiwiaXA0X2xhc3QiOiIyMTMwNzA2NDMzIiwiaXA0X3Vuc3Vi\nIjoiMCIsImNkYXRlIjoiMjAxMy0xMC0xNiAxMzoyMzo1OCIsImVtYWlsIjoi\nbWhlbnJpeG9uQG1lLmNvbSIsImJvdW5jZWRfaGFyZCI6IjAiLCJib3VuY2Vk\nX3NvZnQiOiIwIiwiYm91bmNlZF9kYXRlIjpudWxsLCJpcCI6IjAuMC4wLjAi\nLCJ1YSI6bnVsbCwiaGFzaCI6ImM1N2E3ZTNiYjNjOGE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c3NhZ2UiOiJTdWNjZXNzOiBTb21ldGhp\nbmcgaXMgcmV0dXJuZWQiLCJyZXN1bHRfb3V0cHV0IjoianNvbiJ9\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:31:03 GMT"}],"recorded_with":"VCR 2.6.0"}
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003eadmin/api.php?api_action=contact_view\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026id=2","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=3c8269482jo6boi8h2qik5s9b4; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:31:02 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:31:03 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-5"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjIiLCJzdWJzY3JpYmVyaWQiOiIyIiwibGlzdGlkIjoiMiIsImZv\ncm1pZCI6IjAiLCJzZGF0ZSI6IjIwMTMtMTAtMTYgMTM6MjQ6MDEiLCJ1ZGF0\nZSI6IjIwMTMtMTAtMTYgMTQ6MjA6NTciLCJzdGF0dXMiOiIyIiwicmVzcG9u\n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GFnIjoiJVRPVEFMTE9TUyUifSwiNyI6\neyJpZCI6IjciLCJ0aXRsZSI6IlhQIiwiZGVzY3JpcHQiOm51bGwsInR5cGUi\nOiJoaWRkZW4iLCJpc3JlcXVpcmVkIjoiMCIsInBlcnN0YWciOiJYUCIsImRl\nZnZhbCI6IiIsInNob3dfaW5fbGlzdCI6IjEiLCJyb3dzIjoiMCIsImNvbHMi\nOiIwIiwidmlzaWJsZSI6IjEiLCJzZXJ2aWNlIjoiIiwidmFsIjpudWxsLCJy\nZWxpZCI6IjAiLCJkYXRhaWQiOiIwIiwiZWxlbWVudCI6ImhpZGRlbiIsInRh\nZyI6IiVYUCUifX0sImFjdGlvbnMiOltdLCJjYW1wYWlnbl9oaXN0b3J5Ijpb\nXSwiYm91bmNlcyI6eyJtYWlsaW5nIjpbXSwibWFpbGluZ3MiOjAsInJlc3Bv\nbmRlciI6W10sInJlc3BvbmRlcnMiOjB9LCJib3VuY2VzY250IjowLCJyZXN1\nbHRfY29kZSI6MSwicmVzdWx0X21lc3NhZ2UiOiJTdWNjZXNzOiBTb21ldGhp\nbmcgaXMgcmV0dXJuZWQiLCJyZXN1bHRfb3V0cHV0IjoianNvbiJ9\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:31:03 GMT"},{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003e?api_action=contact_view\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026id=2","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=vvcmghh6pf3b9a962fv0roa3f6; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 17:56:26 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 17:56:27 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyJyZXN1bHRfY29kZSI6MCwicmVzdWx0X21lc3NhZ2UiOiJGYWlsZWQ6IE5v\ndGhpbmcgaXMgcmV0dXJuZWQiLCJyZXN1bHRfb3V0cHV0IjoianNvbiJ9\n"},"http_version":null},"recorded_at":"Wed, 13 May 2015 17:56:27 GMT"},{"request":{"method":"post","uri":"\u003cAPI_ENDPOINT\u003e?api_action=contact_sync\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json","body":{"encoding":"UTF-8","base64_string":"ZW1haWw9bWhlbnJpeG9uJTQwbWUuY29tJmZpcnN0X25hbWU9TWlrYWVsJmlk\nPTEmaW5zdGFudHJlc3BvbmRlcnMlNUIxJTVEPTEmaXA0PTEyNy4wLjAuMSZs\nYXN0X25hbWU9SGVucmlrc3NvbiZwJTVCMSU1RD0xJnF1ZXJ5JTVCbGlzdGlk\nJTVEPTEmc3RhdHVzJTVCMSU1RD0x\n"},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=ukef54m3dgt6r5lb6q1n7vv051; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 18:18:14 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 18:18:15 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWJzY3JpYmVyX2lkIjo1MjU0LCJzZW5kbGFzdF9zaG91bGQiOjAsInNl\nbmRsYXN0X2RpZCI6MCwicmVzdWx0X2NvZGUiOjEsInJlc3VsdF9tZXNzYWdl\nIjoiQ29udGFjdCB1cGRhdGVkIiwicmVzdWx0X291dHB1dCI6Impzb24ifQ==\n"},"http_version":null},"recorded_at":"Wed, 13 May 2015 18:18:15 GMT"},{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003e?api_action=contact_view\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026id=5254","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=201mdq488cuh7o1kaep8lkrc11; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 18:18:15 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 18:18:16 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjUyNTQiLCJzdWJzY3JpYmVyaWQiOiI1MjU0IiwibGlzdGlkIjoi\nMSIsImZ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I6bnVsbCwicmVsaWQiOiIwIiwiZGF0YWlkIjoiMCIs\nImVsZW1lbnQiOiJoaWRkZW4iLCJ0YWciOiIlVE9UQUxMT1NTJSJ9LCI3Ijp7\nImlkIjoiNyIsInRpdGxlIjoiWFAiLCJkZXNjcmlwdCI6bnVsbCwidHlwZSI6\nImhpZGRlbiIsImlzcmVxdWlyZWQiOiIwIiwicGVyc3RhZyI6IlhQIiwiZGVm\ndmFsIjoiIiwic2hvd19pbl9saXN0IjoiMSIsInJvd3MiOiIwIiwiY29scyI6\nIjAiLCJ2aXNpYmxlIjoiMSIsInNlcnZpY2UiOiIiLCJ2YWwiOm51bGwsInJl\nbGlkIjoiMCIsImRhdGFpZCI6IjAiLCJlbGVtZW50IjoiaGlkZGVuIiwidGFn\nIjoiJVhQJSJ9fSwiYWN0aW9ucyI6W10sImNhbXBhaWduX2hpc3RvcnkiOltd\nLCJib3VuY2VzIjp7Im1haWxpbmciOltdLCJtYWlsaW5ncyI6MCwicmVzcG9u\nZGVyIjpbXSwicmVzcG9uZGVycyI6MH0sImJvdW5jZXNjbnQiOjAsInRhZ3Mi\nOltdLCJyZXN1bHRfY29kZSI6MSwicmVzdWx0X21lc3NhZ2UiOiJTdWNjZXNz\nOiBTb21ldGhpbmcgaXMgcmV0dXJuZWQiLCJyZXN1bHRfb3V0cHV0IjoianNv\nbiJ9\n"},"http_version":null},"recorded_at":"Wed, 13 May 2015 18:18:16 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"\
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003eadmin/api.php?api_action=list_list\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026ids=all","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=0pelvglhm8t0n9ds59aemhu211; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:23:27 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:23:28 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-3"]},"body":{"encoding":"UTF-8","base64_string":"eyIwIjp7ImlkIjoiMSIsIm5hbWUiOiJwbGF5ZXJzX3N2IiwiY2RhdGUiOiIy\nMDEzLTEwLTE2IDA0OjMwOjAxIiwicHJpdmF0ZSI6IjAiLCJ1c2VyaWQiOiIx\nIiwic3Vic2NyaWJlcl9jb3VudCI6MX0sIjEiOnsiaWQiOiIyIiwibmFtZSI6\nInBsYXllcnNfbm8iLCJjZGF0ZSI6IjIwMTMtMTAtMTYgMDQ6MzA6NDMiLCJw\ncml2YXRlIjoiMCIsInVzZXJpZCI6IjEiLCJzdWJzY3JpYmVyX2NvdW50Ijow\nfSwiMiI6eyJpZCI6IjMiLCJuYW1lIjoicGxheWVyc19maSIsImNkYXRlIjoi\nMjAxMy0xMC0xNiAwNDozMToyMiIsInByaXZhdGUiOiIwIiwidXNlcmlkIjoi\nMSIsInN1YnNjcmliZXJfY291bnQiOjB9LCIzIjp7ImlkIjoiNCIsIm5hbWUi\nOiJwbGF5ZXJzX2VuIiwiY2RhdGUiOiIyMDEzLTEwLTE2IDA0OjMxOjQ4Iiwi\ncHJpdmF0ZSI6IjAiLCJ1c2VyaWQiOiIxIiwic3Vic2NyaWJlcl9jb3VudCI6\nMH0sInJlc3VsdF9jb2RlIjoxLCJyZXN1bHRfbWVzc2FnZSI6IlN1Y2Nlc3M6\nIFNvbWV0aGluZyBpcyByZXR1cm5lZCIsInJlc3VsdF9vdXRwdXQiOiJqc29u\nIn0=\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:23:28 GMT"},{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003e?api_action=list_list\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026ids=all","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=1i7u1nhlgiopknjbdkeq1729k5; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 18:18:16 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 18:18:17 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyIwIjp7ImlkIjoiMSIsIm5hbWUiOiJwbGF5ZXJzX3N2IiwiY2RhdGUiOiIy\nMDEzLTEwLTE2IDA0OjMwOjAxIiwicHJpdmF0ZSI6IjAiLCJ1c2VyaWQiOiIx\nIiwic3Vic2NyaWJlcl9jb3VudCI6MX0sIjEiOnsiaWQiOiIyIiwibmFtZSI6\nInBsYXllcnNfbm8iLCJjZGF0ZS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3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"\u003CAPI_ENDPOINT\u003Eadmin/api.php?api_action=list_view\u0026api_key=\u003CAPI_KEY\u003E\u0026api_output=json\u0026id=1","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=mll68on7a38r2sggkbpdck0ku0; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:23:25 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:23:26 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-2"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjEiLCJzdHJpbmdpZCI6InBsYXllcnNfc3YiLCJ1c2VyaWQiOiIx\nIiwibmFtZSI6InBsYXllcnNfc3YiLCJjZGF0ZSI6IjIwMTMtMTAtMTYgMDQ6\nMzA6MDEiLCJwX3VzZV90cmFja2luZyI6IjEiLCJwX3VzZV9hbmFseXRpY3Nf\ncmVhZCI6IjAiLCJwX3VzZV9hbmFseXRpY3NfbGluayI6IjAiLCJwX3VzZV90\nd2l0dGVyIjoiMCIsInBfdXNlX2ZhY2Vib29rIjoiMCIsInBfZW1iZWRfaW1h\nZ2UiOiIxIiwicF91c2V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va19vYXV0\naF9sb2dvdXRfdXJsIjoiIiwiZmFjZWJvb2tfb2F1dGhfbG9naW5fdXJsIjoi\naHR0cHM6XC9cL3d3dy5mYWNlYm9vay5jb21cL2RpYWxvZ1wvb2F1dGg/Y2xp\nZW50X2lkPTExODUwNjQ4MTU1NTA5MyZyZWRpcmVjdF91cmk9aHR0cHMlM0El\nMkYlMkZjYXNpbm9zYWdhLmFjdGl2ZWhvc3RlZC5jb20lMkZhZG1pbiUyRm1h\naW4ucGhwJTNGYWN0aW9uJTNEbGlzdCUyNmZvcm1pZCUzRDEmc2NvcGU9cHVi\nbGlzaF9zdHJlYW0sbWFuYWdlX3BhZ2VzIiwiZmFjZWJvb2tfb2F1dGhfbWUi\nOm51bGwsInJlc3VsdF9jb2RlIjoxLCJyZXN1bHRfbWVzc2FnZSI6IlN1Y2Nl\nc3M6IFNvbWV0aGluZyBpcyByZXR1cm5lZCIsInJlc3VsdF9vdXRwdXQiOiJq\nc29uIn0=\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:23:27 GMT"}],"recorded_with":"VCR 2.6.0"}
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003eadmin/api.php?api_action=list_view\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026id=1","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.3"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=mll68on7a38r2sggkbpdck0ku0; path=/; Secure","em_acp_globalauth_cookie=cdb9730a7400f13b7fc0e8e8a8689d611; path=/; domain=casinosaga.activehosted.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 16-Oct-2012 19:23:25 GMT; path=/; domain=casinosaga.activehosted.com; secure"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 16 Oct 2013 19:23:26 GMT"],"Server":["lighttpd/1.4.31"],"Connection":["Keep-alive"],"Keep-Alive":["timeout=15, max=100"],"Via":["1.1 ID-0001242756263011 uproxy-2"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjEiLCJzdHJpbmdpZCI6InBsYXllcnNfc3YiLCJ1c2VyaWQiOiIx\nIiwibmFtZSI6InBsYXllcnNfc3YiLCJjZGF0ZSI6IjIwMTMtMTAtMTYgMDQ6\nMzA6MDEiLCJwX3VzZV90cmFja2luZyI6IjEiLCJwX3VzZV9hbmFseXRpY3Nf\ncmVhZCI6IjAiLCJwX3VzZV9hbmFseXRpY3NfbGluayI6IjAiLCJwX3VzZV90\nd2l0dGVyIjoiMCIsInBfdXNlX2ZhY2Vib29rIjoiMCIsInBfZW1iZWRfaW1h\nZ2UiOiIxIiwicF91c2VfY2FwdGNoYSI6IjEiLCJzZW5kX2xhc3RfYnJvYWRj\nYXN0IjoiMCIsInByaXZhdGUiOiIwIiwiYW5hbHl0aWNzX2RvbWFpbnMiOm51\nbGwsImFuYWx5dGljc19zb3VyY2UiOiIiLCJhbmFseXRpY3NfdWEiOiIiLCJ0\nd2l0dGVyX3Rva2VuIjoiIiwidHdpdHRlcl90b2tlbl9zZWNyZXQiOiIiLCJm\nYWNlYm9va19zZXNzaW9uIjpudWxsLCJjYXJib25jb3B5IjpudWxsLCJzdWJz\nY3JpcHRpb25fbm90aWZ5IjpudWxsLCJ1bnN1YnNjcmlwdGlvbl9ub3RpZnki\nOm51bGwsInJlcXVpcmVfbmFtZSI6IjAiLCJnZXRfdW5zdWJzY3JpYmVfcmVh\nc29uIjoiMCIsInRvX25hbWUiOiJTdWJzY3JpYmVyIiwib3B0aW5vcHRvdXQi\nOiIxIiwic2VuZGVyX25hbWUiO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F9vdXRwdXQiOiJq\nc29uIn0=\n"},"http_version":null},"recorded_at":"Wed, 16 Oct 2013 19:23:27 GMT"},{"request":{"method":"get","uri":"\u003cAPI_ENDPOINT\u003e?api_action=list_view\u0026api_key=\u003cAPI_KEY\u003e\u0026api_output=json\u0026id=1","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["ActiveCampaign Ruby Gem 0.1.9"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],"Accept":["*/*"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"X-Powered-By":["PHP/5.3.3"],"Set-Cookie":["PHPSESSID=2r0vtcm8d1788hs37cff14e0r4; path=/","em_acp_globalauth_cookie=7e9ed9be8228ab696de58087eca2562b1; path=/; domain=casinosaga.api-us1.com; secure","em_acp_globalauth_cookie=deleted; expires=Tue, 13-May-2014 18:18:17 GMT; path=/; domain=casinosaga.api-us1.com"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Pragma":["no-cache"],"Content-Type":["application/json; charset=utf-8"],"Cache-Control":["no-store, max-age=0, must-revalidate"],"Transfer-Encoding":["chunked"],"Date":["Wed, 13 May 2015 18:18:18 GMT"],"Server":["lighttpd/1.4.35"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjEiLCJzdHJpbmdpZCI6InBsYXllcnNfc3YiLCJ1c2VyaWQiOiIx\nIiwibmFtZSI6InBsYXllcnNfc3YiLCJjZGF0ZSI6IjIwMTMtMTAtMTYgMDQ6\nMzA6MDEiLCJwX3VzZV90cmFja2luZyI6IjEiLCJwX3VzZV9hbmFseXRpY3Nf\ncmVhZCI6IjAiLCJwX3VzZV9hbmFseXRpY3NfbGluayI6IjAiLCJwX3VzZV90\nd2l0dGVyIjoiMCIsInBfdXNlX2ZhY2Vib29rIjoiMCIsInBfZW1iZWRfaW1h\nZ2UiOiIxIiwicF91c2VfY2FwdGNoYSI6IjEiLCJzZW5kX2xhc3RfYnJvYWRj\nYXN0IjoiM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X2xvZ2luX3VybCI6\nImh0dHBzOlwvXC93d3cuZmFjZWJvb2suY29tXC92Mi4wXC9kaWFsb2dcL29h\ndXRoP2NsaWVudF9pZD0xMTg1MDY0ODE1NTUwOTMmcmVkaXJlY3RfdXJpPWh0\ndHBzJTNBJTJGJTJGY2FzaW5vc2FnYS5hcGktdXMxLmNvbSUyRmFkbWluJTJG\nbWFpbi5waHAlM0ZhY3Rpb24lM0RsaXN0JTI2Zm9ybWlkJTNEMSZzY29wZT1w\ndWJsaXNoX2FjdGlvbnMsbWFuYWdlX3BhZ2VzIiwiZmFjZWJvb2tfb2F1dGhf\nbWUiOm51bGwsInJlc3VsdF9jb2RlIjoxLCJyZXN1bHRfbWVzc2FnZSI6IlN1\nY2Nlc3M6IFNvbWV0aGluZyBpcyByZXR1cm5lZCIsInJlc3VsdF9vdXRwdXQi\nOiJqc29uIn0=\n"},"http_version":null},"recorded_at":"Wed, 13 May 2015 18:18:18 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -2,38 +2,39 @@
|
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
4
|
describe ActiveCampaign::Client::Contacts, :vcr do
|
5
|
-
|
6
5
|
initialize_new_client
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}.stringify_keys
|
22
|
-
end
|
7
|
+
let(:params) do
|
8
|
+
{
|
9
|
+
'query' => { 'listid' => 1 },
|
10
|
+
'id' => 1,
|
11
|
+
'email' => 'mhenrixon@me.com',
|
12
|
+
'first_name' => 'Mikael',
|
13
|
+
'last_name' => 'Henriksson',
|
14
|
+
'p' => { 1 => 1 },
|
15
|
+
'status' => { 1 => 1 },
|
16
|
+
'instantresponders' => { 1 => 1 },
|
17
|
+
'ip4' => '127.0.0.1'
|
18
|
+
}
|
19
|
+
end
|
23
20
|
|
21
|
+
describe '.contact_sync' do
|
22
|
+
context 'when successful' do
|
24
23
|
subject(:response) { @client.contact_sync params }
|
25
24
|
|
26
|
-
it
|
25
|
+
it 'returns 1 for result_code' do
|
27
26
|
expect(response.result_code).to eq 1
|
28
27
|
end
|
29
28
|
end
|
30
29
|
end
|
31
30
|
|
32
|
-
describe
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
describe '.contact_view' do
|
32
|
+
let(:subscriber_id) { @client.contact_sync(params).subscriber_id }
|
33
|
+
|
34
|
+
it 'can find contact by id' do
|
35
|
+
contact = @client.contact_view id: subscriber_id
|
36
|
+
expect(contact.first_name).to eq 'Mikael'
|
37
|
+
expect(contact.last_name).to eq 'Henriksson'
|
37
38
|
end
|
38
39
|
end
|
39
|
-
end
|
40
|
+
end
|
data/spec/client/lists_spec.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
4
|
describe ActiveCampaign::Client::Lists, :vcr do
|
5
|
-
|
6
5
|
initialize_new_client
|
7
6
|
|
8
7
|
# it "add a list", :vcr do
|
@@ -23,18 +22,17 @@ describe ActiveCampaign::Client::Lists, :vcr do
|
|
23
22
|
# list = ActiveCampaign.list_add params
|
24
23
|
# end
|
25
24
|
|
26
|
-
describe
|
27
|
-
it
|
25
|
+
describe '.list_view' do
|
26
|
+
it 'can find lists by id' do
|
28
27
|
list = @client.list_view id: 1
|
29
|
-
expect(list.name).to eq
|
28
|
+
expect(list.name).to eq 'players_sv'
|
30
29
|
end
|
31
30
|
end
|
32
31
|
|
33
|
-
describe
|
34
|
-
it
|
35
|
-
|
36
|
-
lists
|
37
|
-
expect(lists.results[0].name).to eq "players_sv"
|
32
|
+
describe '.list_list' do
|
33
|
+
it 'can find a list of lists' do
|
34
|
+
lists = @client.list_list 'ids' => 'all'
|
35
|
+
expect(lists.results[0].name).to eq 'players_sv'
|
38
36
|
end
|
39
37
|
end
|
40
|
-
end
|
38
|
+
end
|