contactology 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.infinity_test +16 -0
- data/.rspec +3 -0
- data/.rvmrc +41 -0
- data/.watchr +36 -0
- data/Gemfile +6 -0
- data/Rakefile +1 -0
- data/contactology.gemspec +28 -0
- data/lib/contactology.rb +125 -0
- data/lib/contactology/api.rb +80 -0
- data/lib/contactology/basic_object.rb +21 -0
- data/lib/contactology/campaign.rb +127 -0
- data/lib/contactology/campaign/preview.rb +11 -0
- data/lib/contactology/campaigns.rb +2 -0
- data/lib/contactology/campaigns/standard.rb +80 -0
- data/lib/contactology/campaigns/transactional.rb +58 -0
- data/lib/contactology/configuration.rb +42 -0
- data/lib/contactology/contact.rb +193 -0
- data/lib/contactology/errors.rb +4 -0
- data/lib/contactology/issue.rb +24 -0
- data/lib/contactology/issues.rb +18 -0
- data/lib/contactology/list.rb +192 -0
- data/lib/contactology/list_proxy.rb +25 -0
- data/lib/contactology/parser.rb +5 -0
- data/lib/contactology/send_result.rb +35 -0
- data/lib/contactology/stash.rb +29 -0
- data/lib/contactology/transactional_message.rb +38 -0
- data/lib/contactology/version.rb +3 -0
- data/spec/factories/campaigns.rb +18 -0
- data/spec/factories/contacts.rb +3 -0
- data/spec/factories/issues.rb +9 -0
- data/spec/factories/lists.rb +3 -0
- data/spec/factories/transactional_messages.rb +5 -0
- data/spec/fixtures/net/campaign/destroy.yml +246 -0
- data/spec/fixtures/net/campaign/find/failure.yml +36 -0
- data/spec/fixtures/net/campaign/find/success.yml +176 -0
- data/spec/fixtures/net/campaign/find_by_name/failure.yml +36 -0
- data/spec/fixtures/net/campaign/find_by_name/success.yml +211 -0
- data/spec/fixtures/net/campaign/preview.yml +106 -0
- data/spec/fixtures/net/campaigns/standard/create/failure.yml +106 -0
- data/spec/fixtures/net/campaigns/standard/create/invalid.yml +141 -0
- data/spec/fixtures/net/campaigns/standard/create/success.yml +176 -0
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure.yml +316 -0
- data/spec/fixtures/net/campaigns/standard/send_campaign/success.yml +316 -0
- data/spec/fixtures/net/campaigns/transactional/create/failure.yml +36 -0
- data/spec/fixtures/net/campaigns/transactional/create/success.yml +71 -0
- data/spec/fixtures/net/contact/active.yml +106 -0
- data/spec/fixtures/net/contact/change_email/success.yml +176 -0
- data/spec/fixtures/net/contact/change_email/unknown.yml +36 -0
- data/spec/fixtures/net/contact/create.yml +106 -0
- data/spec/fixtures/net/contact/destroy.yml +141 -0
- data/spec/fixtures/net/contact/find/active.yml +106 -0
- data/spec/fixtures/net/contact/find/suppressed.yml +141 -0
- data/spec/fixtures/net/contact/find/unknown.yml +36 -0
- data/spec/fixtures/net/contact/lists/empty.yml +106 -0
- data/spec/fixtures/net/contact/lists/full.yml +246 -0
- data/spec/fixtures/net/contact/lists/unknown.yml +71 -0
- data/spec/fixtures/net/contact/suppress.yml +141 -0
- data/spec/fixtures/net/list/all.yml +141 -0
- data/spec/fixtures/net/list/create.yml +106 -0
- data/spec/fixtures/net/list/destroy.yml +176 -0
- data/spec/fixtures/net/list/find/success.yml +141 -0
- data/spec/fixtures/net/list/find/unknown.yml +36 -0
- data/spec/fixtures/net/list/import/success.yml +351 -0
- data/spec/fixtures/net/list/subscribe/success.yml +211 -0
- data/spec/fixtures/net/list/unsubscribe/success.yml +246 -0
- data/spec/fixtures/net/transactional_message/send_message/failure.yml +176 -0
- data/spec/fixtures/net/transactional_message/send_message/success.yml +176 -0
- data/spec/models/contactology/api_spec.rb +51 -0
- data/spec/models/contactology/campaign_spec.rb +75 -0
- data/spec/models/contactology/campaigns/standard_spec.rb +84 -0
- data/spec/models/contactology/campaigns/transactional_spec.rb +28 -0
- data/spec/models/contactology/configuration_spec.rb +29 -0
- data/spec/models/contactology/contact_spec.rb +175 -0
- data/spec/models/contactology/issues_spec.rb +34 -0
- data/spec/models/contactology/list_spec.rb +125 -0
- data/spec/models/contactology/send_result_spec.rb +65 -0
- data/spec/models/contactology/stash_spec.rb +65 -0
- data/spec/models/contactology/transactional_message_spec.rb +65 -0
- data/spec/models/contactology_spec.rb +67 -0
- data/spec/requests/contacts_spec.rb +4 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/support/contactology.rb +34 -0
- data/spec/support/factory_girl.rb +19 -0
- data/spec/support/vcr.rb +11 -0
- metadata +282 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=unknown@example.com&key=%{API_KEY}&method=Contact_Get_Subscriptions
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=cc48f7e3f256279ecc6e612ea7402fb1; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Tue, 02 Aug 2011 12:52:20 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "{\"result\":\"error\",\"message\":\"Input error: no contact found for email unknown@example.com\",\"code\":601}"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=unknown@example.com&key=%{API_KEY}&method=Contact_Delete
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=7247a9ac94353a09a26454c5011b8467; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Tue, 02 Aug 2011 12:52:21 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "false"
|
71
|
+
http_version: "1.1"
|
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=8ff27080b969e7b2a3fe90274bd59952; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Tue, 02 Aug 2011 12:14:35 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "true"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Get&optionalParameters%5BgetAllCustomFields%5D=true
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=1d17ccb97ba23527dba6be5044883f2c; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Tue, 02 Aug 2011 12:14:25 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"suppressed@example.com\":{\"contactId\":\"10\",\"email\":\"suppressed@example.com\",\"source\":\"API 2 Contact_Add\",\"status\":\"active\",\"customFields\":{\"first_name\":\"\",\"last_name\":\"\",\"email_address\":\"suppressed@example.com\"}}}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Suppress
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=773b2d1074102e7146bc98ece48859ec; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Tue, 02 Aug 2011 12:14:36 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "true"
|
106
|
+
http_version: "1.1"
|
107
|
+
- !ruby/struct:VCR::HTTPInteraction
|
108
|
+
request: !ruby/struct:VCR::Request
|
109
|
+
method: :get
|
110
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Delete
|
111
|
+
body:
|
112
|
+
headers:
|
113
|
+
accept:
|
114
|
+
- application/json
|
115
|
+
user-agent:
|
116
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
117
|
+
response: !ruby/struct:VCR::Response
|
118
|
+
status: !ruby/struct:VCR::ResponseStatus
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
x-powered-by:
|
123
|
+
- PHP/5.2.10
|
124
|
+
set-cookie:
|
125
|
+
- PHPSESSID=5fcc4878163c98134cf5df926dd79c3b; path=/
|
126
|
+
expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
cache-control:
|
129
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
130
|
+
pragma:
|
131
|
+
- no-cache
|
132
|
+
content-type:
|
133
|
+
- text/plain;charset=UTF-8
|
134
|
+
transfer-encoding:
|
135
|
+
- chunked
|
136
|
+
date:
|
137
|
+
- Tue, 02 Aug 2011 12:14:36 GMT
|
138
|
+
server:
|
139
|
+
- lighttpd/1.4.28
|
140
|
+
body: "false"
|
141
|
+
http_version: "1.1"
|
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=all-test-list
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=89a31880514edc5995fe5ccaecf6f737; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Tue, 02 Aug 2011 13:35:26 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "10"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=10&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=977bd9b8323d30064eb18965a9079c1b; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Tue, 02 Aug 2011 13:35:27 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"10\",\"name\":\"all-test-list\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Get_Active_Lists
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=67f0e964490926634977a583d6baa3a6; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Tue, 02 Aug 2011 13:35:27 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "{\"10\":{\"listId\":\"10\",\"name\":\"all-test-list\",\"description\":null,\"type\":\"public\",\"optIn\":false}}"
|
106
|
+
http_version: "1.1"
|
107
|
+
- !ruby/struct:VCR::HTTPInteraction
|
108
|
+
request: !ruby/struct:VCR::Request
|
109
|
+
method: :get
|
110
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=10&method=List_Delete
|
111
|
+
body:
|
112
|
+
headers:
|
113
|
+
accept:
|
114
|
+
- application/json
|
115
|
+
user-agent:
|
116
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
117
|
+
response: !ruby/struct:VCR::Response
|
118
|
+
status: !ruby/struct:VCR::ResponseStatus
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
x-powered-by:
|
123
|
+
- PHP/5.2.10
|
124
|
+
set-cookie:
|
125
|
+
- PHPSESSID=bf618e01722e0f07a564a065382cba70; path=/
|
126
|
+
expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
cache-control:
|
129
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
130
|
+
pragma:
|
131
|
+
- no-cache
|
132
|
+
content-type:
|
133
|
+
- text/plain;charset=UTF-8
|
134
|
+
transfer-encoding:
|
135
|
+
- chunked
|
136
|
+
date:
|
137
|
+
- Tue, 02 Aug 2011 13:35:28 GMT
|
138
|
+
server:
|
139
|
+
- lighttpd/1.4.28
|
140
|
+
body: "true"
|
141
|
+
http_version: "1.1"
|
@@ -0,0 +1,106 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=creationtest
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=18c8d8ea73a7b5ab93165e2c937d906d; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Wed, 03 Aug 2011 14:43:24 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "34"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=34&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=d50318056dd657b96abb5732c7eeca3d; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Wed, 03 Aug 2011 14:43:25 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"34\",\"name\":\"creationtest\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=34&method=List_Delete
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=ec72b87c3c31ce213585d7f599d5a157; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Wed, 03 Aug 2011 14:43:25 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "true"
|
106
|
+
http_version: "1.1"
|