monkey_party 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +16 -2
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +9 -0
- data/Guardfile +9 -0
- data/LICENSE +4 -2
- data/README.md +44 -0
- data/Rakefile +7 -56
- data/lib/monkey_party/base.rb +8 -4
- data/lib/monkey_party/error.rb +1 -0
- data/lib/monkey_party/list.rb +6 -5
- data/lib/monkey_party/subscriber.rb +1 -0
- data/lib/monkey_party/version.rb +4 -0
- data/lib/monkey_party.rb +26 -7
- data/monkey_party.gemspec +20 -80
- data/spec/cassettes/MonkeyParty_List/subscribing/handles_errors_gracefully.yml +135 -0
- data/spec/cassettes/MonkeyParty_List/subscribing/subscribes_someone_successfully.yml +205 -0
- data/spec/cassettes/MonkeyParty_List/unsubscribing/should_have_valid_subscribers.yml +205 -0
- data/spec/monkey_party/list_spec.rb +43 -0
- data/spec/monkey_party/subscriber_spec.rb +12 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/support/credentials.rb.example +3 -0
- data/spec/support/vcr.rb +28 -0
- metadata +124 -117
- data/README.rdoc +0 -26
- data/VERSION.yml +0 -5
- data/features/create_and_add_api_key.feature +0 -21
- data/features/list_subscribe.feature +0 -13
- data/features/list_unsubscribe.feature +0 -14
- data/features/step_definitions/create_and_add_api_key_steps.rb +0 -45
- data/features/step_definitions/list_steps.rb +0 -17
- data/features/step_definitions/list_unsubscribe_steps.rb +0 -17
- data/features/support/env.rb +0 -4
- data/features/support/mailchimp/account.rb +0 -8
- data/features/support/mailchimp/account.yml.example +0 -2
- data/features/support/mailchimp/cleaner.rb +0 -3
- data/lib/monkey_party/account.rb +0 -48
- data/test/fixtures/batch_subscribe_failed.xml +0 -28
- data/test/fixtures/batch_subscribe_successful.xml +0 -12
- data/test/fixtures/batch_unsubscribe_failed.xml +0 -19
- data/test/fixtures/batch_unsubscribe_successful.xml +0 -12
- data/test/fixtures/lists_failed.xml +0 -11
- data/test/fixtures/lists_successful.xml +0 -16
- data/test/fixtures/login_failed.xml +0 -11
- data/test/fixtures/login_successful.xml +0 -8
- data/test/monkey_party/account_test.rb +0 -91
- data/test/monkey_party/error_test.rb +0 -18
- data/test/monkey_party/list_test.rb +0 -173
- data/test/monkey_party/subscriber_test.rb +0 -44
- data/test/test_helper.rb +0 -31
metadata
CHANGED
@@ -1,153 +1,160 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: monkey_party
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Dan Pickett
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-03-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: httparty
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2151858200 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 5
|
33
|
-
- 2
|
34
|
-
version: 0.5.2
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: happymapper
|
39
23
|
prerelease: false
|
40
|
-
|
24
|
+
version_requirements: *2151858200
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: happymapper
|
27
|
+
requirement: &2151856100 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 3
|
49
|
-
- 0
|
50
|
-
version: 0.3.0
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.4.0
|
51
33
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: configatron
|
55
34
|
prerelease: false
|
56
|
-
|
35
|
+
version_requirements: *2151856100
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rake
|
38
|
+
requirement: &2151870260 !ruby/object:Gem::Requirement
|
57
39
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2151870260
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: &2151868780 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2151868780
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: fakeweb
|
60
|
+
requirement: &2151867840 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2151867840
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: &2151867100 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2151867100
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: guard-rspec
|
82
|
+
requirement: &2151866460 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2151866460
|
91
|
+
description: A web wrapper for mailchimp
|
92
|
+
email:
|
93
|
+
- dan.pickett@launchware.com
|
71
94
|
executables: []
|
72
|
-
|
73
95
|
extensions: []
|
74
|
-
|
75
|
-
|
76
|
-
- LICENSE
|
77
|
-
- README.rdoc
|
78
|
-
files:
|
96
|
+
extra_rdoc_files: []
|
97
|
+
files:
|
79
98
|
- .gitignore
|
99
|
+
- .rspec
|
100
|
+
- .rvmrc
|
101
|
+
- .travis.yml
|
102
|
+
- Gemfile
|
103
|
+
- Guardfile
|
80
104
|
- LICENSE
|
81
|
-
- README.
|
105
|
+
- README.md
|
82
106
|
- Rakefile
|
83
|
-
- VERSION.yml
|
84
|
-
- features/create_and_add_api_key.feature
|
85
|
-
- features/list_subscribe.feature
|
86
|
-
- features/list_unsubscribe.feature
|
87
|
-
- features/step_definitions/create_and_add_api_key_steps.rb
|
88
|
-
- features/step_definitions/list_steps.rb
|
89
|
-
- features/step_definitions/list_unsubscribe_steps.rb
|
90
|
-
- features/support/env.rb
|
91
|
-
- features/support/mailchimp/account.rb
|
92
|
-
- features/support/mailchimp/account.yml.example
|
93
|
-
- features/support/mailchimp/cleaner.rb
|
94
107
|
- lib/monkey_party.rb
|
95
|
-
- lib/monkey_party/account.rb
|
96
108
|
- lib/monkey_party/base.rb
|
97
109
|
- lib/monkey_party/error.rb
|
98
110
|
- lib/monkey_party/list.rb
|
99
111
|
- lib/monkey_party/subscriber.rb
|
112
|
+
- lib/monkey_party/version.rb
|
100
113
|
- monkey_party.gemspec
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
|
110
|
-
- test/monkey_party/error_test.rb
|
111
|
-
- test/monkey_party/list_test.rb
|
112
|
-
- test/monkey_party/subscriber_test.rb
|
113
|
-
- test/test_helper.rb
|
114
|
-
has_rdoc: true
|
115
|
-
homepage: http://github.com/dpickett/monkey_party
|
114
|
+
- spec/cassettes/MonkeyParty_List/subscribing/handles_errors_gracefully.yml
|
115
|
+
- spec/cassettes/MonkeyParty_List/subscribing/subscribes_someone_successfully.yml
|
116
|
+
- spec/cassettes/MonkeyParty_List/unsubscribing/should_have_valid_subscribers.yml
|
117
|
+
- spec/monkey_party/list_spec.rb
|
118
|
+
- spec/monkey_party/subscriber_spec.rb
|
119
|
+
- spec/spec_helper.rb
|
120
|
+
- spec/support/credentials.rb.example
|
121
|
+
- spec/support/vcr.rb
|
122
|
+
homepage: ''
|
116
123
|
licenses: []
|
117
|
-
|
118
124
|
post_install_message:
|
119
|
-
rdoc_options:
|
120
|
-
|
121
|
-
require_paths:
|
125
|
+
rdoc_options: []
|
126
|
+
require_paths:
|
122
127
|
- lib
|
123
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
129
|
none: false
|
125
|
-
requirements:
|
126
|
-
- -
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
|
129
|
-
segments:
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
segments:
|
130
135
|
- 0
|
131
|
-
|
132
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
hash: -1872632580927280923
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
138
|
none: false
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
segments:
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
segments:
|
139
144
|
- 0
|
140
|
-
|
145
|
+
hash: -1872632580927280923
|
141
146
|
requirements: []
|
142
|
-
|
143
147
|
rubyforge_project:
|
144
|
-
rubygems_version: 1.
|
148
|
+
rubygems_version: 1.8.15
|
145
149
|
signing_key:
|
146
150
|
specification_version: 3
|
147
|
-
summary:
|
148
|
-
test_files:
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
151
|
+
summary: A web wrapper for mailchimp
|
152
|
+
test_files:
|
153
|
+
- spec/cassettes/MonkeyParty_List/subscribing/handles_errors_gracefully.yml
|
154
|
+
- spec/cassettes/MonkeyParty_List/subscribing/subscribes_someone_successfully.yml
|
155
|
+
- spec/cassettes/MonkeyParty_List/unsubscribing/should_have_valid_subscribers.yml
|
156
|
+
- spec/monkey_party/list_spec.rb
|
157
|
+
- spec/monkey_party/subscriber_spec.rb
|
158
|
+
- spec/spec_helper.rb
|
159
|
+
- spec/support/credentials.rb.example
|
160
|
+
- spec/support/vcr.rb
|
data/README.rdoc
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
= monkey_party
|
2
|
-
|
3
|
-
An extremely young API for interacting with the MailChimp API
|
4
|
-
|
5
|
-
Uses the excellent HTTParty and HappyMapper tools and is well tested
|
6
|
-
|
7
|
-
Currently only supports
|
8
|
-
|
9
|
-
* adding api keys
|
10
|
-
* finding lists by name
|
11
|
-
* batch subscribing
|
12
|
-
* unsubscribing
|
13
|
-
|
14
|
-
== Example Usage
|
15
|
-
|
16
|
-
account = MonkeyParty::Account.login("monkey_username", "party_password")
|
17
|
-
list = MonkeyParty::List.find_by_name("list_name")
|
18
|
-
list.create_subscribers([MonkeyParty::Subscriber.new("user@example.com")])
|
19
|
-
|
20
|
-
== TODO
|
21
|
-
* Batch subscribe does not allow you to resubscribe members - implement individual subscribe method
|
22
|
-
* Clean up after cucumber features are run
|
23
|
-
|
24
|
-
== Copyright
|
25
|
-
|
26
|
-
Copyright (c) 2009 Dan Pickett. See LICENSE for details.
|
data/VERSION.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
Feature: Create an api key
|
2
|
-
In order to interact with the MailChimp Service
|
3
|
-
As a developer
|
4
|
-
I want to login and generate an api key
|
5
|
-
|
6
|
-
Scenario: Successful Login
|
7
|
-
Given I have a valid mailchimp account
|
8
|
-
When I attempt to login with the proper credentials
|
9
|
-
Then I should get an api key
|
10
|
-
|
11
|
-
Scenario: Failed Login
|
12
|
-
Given I have a valid mailchimp account
|
13
|
-
When I attempt to login with incorrect credentials
|
14
|
-
Then I should get an error
|
15
|
-
|
16
|
-
Scenario: Add a key
|
17
|
-
Given I have a valid mailchimp account
|
18
|
-
And I have logged in
|
19
|
-
When I attempt to add an api key
|
20
|
-
Then I should be successful
|
21
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
Feature: Subscribe to a list
|
2
|
-
In order to send mass mailings in the future
|
3
|
-
As a developer
|
4
|
-
I want to subscribe given email addresses to a list
|
5
|
-
And I also want to potentially pass merge variables
|
6
|
-
|
7
|
-
Scenario: Email subscription
|
8
|
-
Given I have a valid mailchimp account
|
9
|
-
And a list named "Testing"
|
10
|
-
And I have logged in
|
11
|
-
When I attempt to subscribe "user@enlightsolutions.com" to the "Testing" list
|
12
|
-
Then the subscription should submit successfully
|
13
|
-
|
@@ -1,14 +0,0 @@
|
|
1
|
-
Feature: Unsubscription from a list
|
2
|
-
In order to comply with policies
|
3
|
-
And to provide a pleasurable experience for users
|
4
|
-
As a developer
|
5
|
-
I want to unsubscribe given email addresses from a list
|
6
|
-
|
7
|
-
Scenario: Email unsubscription
|
8
|
-
Given I have a valid mailchimp account
|
9
|
-
And a list named "Testing"
|
10
|
-
And I have logged in
|
11
|
-
And "user@enlightsolutions.com" is a subscriber to the "Testing" list
|
12
|
-
When I attempt to unsubscribe "user@enlightsolutions.com" from the "Testing" list
|
13
|
-
Then the unsubscription should be successful
|
14
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
Given /^I have a valid mailchimp account$/ do
|
2
|
-
assert_not_nil configatron.mailchimp.user_name
|
3
|
-
assert_not_nil configatron.mailchimp.password
|
4
|
-
|
5
|
-
@mailchimp_user_name = configatron.mailchimp.user_name
|
6
|
-
@mailchimp_password = configatron.mailchimp.password
|
7
|
-
end
|
8
|
-
|
9
|
-
When /^I attempt to login with the proper credentials$/ do
|
10
|
-
@account = MonkeyParty::Account.login(@mailchimp_user_name,
|
11
|
-
@mailchimp_password)
|
12
|
-
end
|
13
|
-
|
14
|
-
When /^I attempt to login with incorrect credentials$/ do
|
15
|
-
begin
|
16
|
-
@account = MonkeyParty::Account.login(@mailchimp_user_name,
|
17
|
-
"FAIL")
|
18
|
-
rescue MonkeyParty::Error => @exception
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
Then /^I should get an error$/ do
|
23
|
-
assert_not_nil @exception
|
24
|
-
end
|
25
|
-
|
26
|
-
Then /^I should get an api key$/ do
|
27
|
-
assert @account.keys.size == 1
|
28
|
-
end
|
29
|
-
|
30
|
-
Given /^I have logged in$/ do
|
31
|
-
@mailchimp_user_name = configatron.mailchimp.user_name
|
32
|
-
@mailchimp_password = configatron.mailchimp.password
|
33
|
-
|
34
|
-
@account = MonkeyParty::Account.login(@mailchimp_user_name,
|
35
|
-
@mailchimp_password)
|
36
|
-
end
|
37
|
-
|
38
|
-
When /^I attempt to add an api key$/ do
|
39
|
-
@additional_api_key = @account.add_api_key
|
40
|
-
end
|
41
|
-
|
42
|
-
Then /^I should be successful$/ do
|
43
|
-
assert @account.keys.include?(@additional_api_key)
|
44
|
-
end
|
45
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
Given /^a list named "([^\"]*)"$/ do |name|
|
2
|
-
assert_not_nil MonkeyParty::List.find_by_name(name)
|
3
|
-
end
|
4
|
-
|
5
|
-
When /^I attempt to subscribe "([^\"]*)" to the "([^\"]*)" list$/ do |email, list|
|
6
|
-
@subscribers = MonkeyParty::List.find_by_name(list).create_subscribers(
|
7
|
-
[MonkeyParty::Subscriber.new(email,
|
8
|
-
:first_name => "John",
|
9
|
-
:last_name => "Smith"
|
10
|
-
)], :update_existing => true, :double_optin => true)
|
11
|
-
end
|
12
|
-
|
13
|
-
Then /^the subscription should submit successfully$/ do
|
14
|
-
assert @subscribers[0].valid?
|
15
|
-
end
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
Given /^"([^\"]*)" is a subscriber to the "([^\"]*)" list$/ do |email, list|
|
2
|
-
@list = MonkeyParty::List.find_by_name(list)
|
3
|
-
@subscriber = MonkeyParty::Subscriber.new(email)
|
4
|
-
@subscriber = @list.create_subscribers([@subscriber],
|
5
|
-
:update_existing => true)[0]
|
6
|
-
assert @subscriber.valid?
|
7
|
-
end
|
8
|
-
|
9
|
-
When /^I attempt to unsubscribe "([^\"]*)" from the "([^\"]*)" list$/ do |email, list|
|
10
|
-
@subscriber = @list.destroy_subscribers([@subscriber],
|
11
|
-
:delete_member => true)[0]
|
12
|
-
end
|
13
|
-
|
14
|
-
Then /^the unsubscription should be successful$/ do
|
15
|
-
assert @subscriber.valid?
|
16
|
-
end
|
17
|
-
|
data/features/support/env.rb
DELETED
data/lib/monkey_party/account.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
module MonkeyParty
|
2
|
-
class Account < Base
|
3
|
-
attr_accessor :user_name, :password, :keys
|
4
|
-
|
5
|
-
def initialize(attrs = {})
|
6
|
-
self.keys ||= []
|
7
|
-
self.keys << attrs.delete(:api_key) if attrs[:api_key]
|
8
|
-
super
|
9
|
-
end
|
10
|
-
|
11
|
-
def api_key
|
12
|
-
self.keys[0]
|
13
|
-
end
|
14
|
-
|
15
|
-
class << self
|
16
|
-
def login(user_name, password)
|
17
|
-
response = get("", :query => {
|
18
|
-
:method => "login",
|
19
|
-
:username => user_name,
|
20
|
-
:password => password
|
21
|
-
})["MCAPI"]
|
22
|
-
|
23
|
-
account = new
|
24
|
-
|
25
|
-
account.keys << response
|
26
|
-
account.user_name = user_name
|
27
|
-
account.password = password
|
28
|
-
|
29
|
-
#set a global api key
|
30
|
-
configatron.mailchimp.api_key = response
|
31
|
-
|
32
|
-
account
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
def add_api_key
|
37
|
-
response = self.class.get("", :query => {
|
38
|
-
:method => "apikeyAdd",
|
39
|
-
:username => self.user_name,
|
40
|
-
:password => self.password,
|
41
|
-
:apikey => self.api_key
|
42
|
-
})["MCAPI"]
|
43
|
-
|
44
|
-
self.keys << response
|
45
|
-
response
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<MCAPI type="array">
|
8
|
-
<success_count type="integer">0</success_count>
|
9
|
-
<error_count type="integer">2</error_count>
|
10
|
-
<errors type="array">
|
11
|
-
<struct key="0" type="array">
|
12
|
-
<code type="integer">214</code>
|
13
|
-
<message type="string">user@example.com is already subscribed to list Testing</message>
|
14
|
-
<row type="array">
|
15
|
-
<EMAIL type="string">user@example.com</EMAIL>
|
16
|
-
</row>
|
17
|
-
</struct>
|
18
|
-
<struct key="1" type="array">
|
19
|
-
|
20
|
-
<code type="integer">214</code>
|
21
|
-
<message type="string">user@3example.com is already subscribed to list Testing</message>
|
22
|
-
<row type="array">
|
23
|
-
<EMAIL type="string">user@3example.com</EMAIL>
|
24
|
-
</row>
|
25
|
-
</struct>
|
26
|
-
</errors>
|
27
|
-
</MCAPI>
|
28
|
-
|
@@ -1,12 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<mcapi type="array">
|
8
|
-
<success_count type="integer">2</success_count>
|
9
|
-
<error_count type="integer">0</error_count>
|
10
|
-
<errors type="array">
|
11
|
-
</errors></mcapi>
|
12
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<MCAPI type="array">
|
8
|
-
<success_count type="integer">0</success_count>
|
9
|
-
<error_count type="integer">1</error_count>
|
10
|
-
<errors type="array">
|
11
|
-
<struct key="0" type="array">
|
12
|
-
<code type="integer">232</code>
|
13
|
-
<message type="string">There is no record of "user3@example.com" in the database</message>
|
14
|
-
<email type="string">user3@example.com</email>
|
15
|
-
</struct>
|
16
|
-
|
17
|
-
</errors>
|
18
|
-
</MCAPI>
|
19
|
-
|
@@ -1,12 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<mcapi type="array">
|
8
|
-
<success_count type="integer">1</success_count>
|
9
|
-
<error_count type="integer">0</error_count>
|
10
|
-
<errors type="array">
|
11
|
-
</errors></mcapi>
|
12
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<MCAPI type="array">
|
8
|
-
<error type="string">Invalid Mailchimp API Key: fdasf</error>
|
9
|
-
<code type="integer">104</code>
|
10
|
-
</MCAPI>
|
11
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<MCAPI type="array">
|
8
|
-
<struct key="0" type="array">
|
9
|
-
<id type="string">d40bbc3056</id>
|
10
|
-
<web_id type="integer">63816</web_id>
|
11
|
-
<name type="string">Testing</name>
|
12
|
-
<date_created type="string">Mar 27, 2009 07:00 pm</date_created>
|
13
|
-
<member_count type="double">0</member_count>
|
14
|
-
</struct>
|
15
|
-
</MCAPI>
|
16
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Date: Wed, 04 Feb 2009 03:42:26 GMT
|
3
|
-
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11
|
4
|
-
Content-Type: application/xml
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
|
7
|
-
<MCAPI type="array">
|
8
|
-
<error type="string">I'm sorry, that username/password could not be found</error>
|
9
|
-
<code type="integer">100</code>
|
10
|
-
</MCAPI>
|
11
|
-
|