contactology 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +16 -2
- data/.rspec +0 -1
- data/.rvmrc +34 -23
- data/.travis.yml +9 -3
- data/CHANGELOG.markdown +46 -0
- data/Gemfile +0 -7
- data/README.markdown +5 -3
- data/contactology.gemspec +10 -10
- data/lib/contactology/version.rb +1 -1
- data/spec/cassettes/campaign/destroy.yml +293 -0
- data/spec/cassettes/campaign/find/failure.yml +45 -0
- data/spec/cassettes/campaign/find/success.yml +252 -0
- data/spec/cassettes/campaign/find_by_name/failure.yml +44 -0
- data/spec/cassettes/campaign/find_by_name/success.yml +252 -0
- data/spec/cassettes/campaign/preview.yml +135 -0
- data/spec/cassettes/campaigns/standard/create/failure.yml +127 -0
- data/spec/cassettes/campaigns/standard/create/invalid.yml +169 -0
- data/spec/cassettes/campaigns/standard/create/success.yml +209 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure.yml +374 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure_missing_attributes.yml +373 -0
- data/spec/cassettes/campaigns/standard/send_campaign/success.yml +374 -0
- data/spec/cassettes/campaigns/transactional/create/failure.yml +44 -0
- data/spec/cassettes/campaigns/transactional/create/success.yml +85 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/failure.yml +127 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/success.yml +208 -0
- data/spec/cassettes/contact/active.yml +127 -0
- data/spec/cassettes/contact/change_email/success.yml +210 -0
- data/spec/cassettes/contact/change_email/unknown.yml +45 -0
- data/spec/cassettes/contact/create.yml +127 -0
- data/spec/cassettes/contact/destroy.yml +85 -0
- data/spec/cassettes/contact/find/active.yml +127 -0
- data/spec/cassettes/contact/find/suppressed.yml +168 -0
- data/spec/cassettes/contact/find/unknown.yml +44 -0
- data/spec/cassettes/contact/lists/empty.yml +126 -0
- data/spec/cassettes/contact/lists/full.yml +333 -0
- data/spec/cassettes/contact/lists/unknown.yml +86 -0
- data/spec/cassettes/contact/suppress.yml +168 -0
- data/spec/cassettes/list/all.yml +168 -0
- data/spec/cassettes/list/create.yml +127 -0
- data/spec/cassettes/list/destroy.yml +210 -0
- data/spec/cassettes/list/find/success.yml +169 -0
- data/spec/cassettes/list/find/unknown.yml +45 -0
- data/spec/cassettes/list/import/success.yml +251 -0
- data/spec/cassettes/list/subscribe/success.yml +250 -0
- data/spec/cassettes/list/unsubscribe/success.yml +291 -0
- data/spec/cassettes/transactional_message/send_message/failure.yml +209 -0
- data/spec/cassettes/transactional_message/send_message/success.yml +208 -0
- data/spec/factories/campaigns.rb +18 -16
- data/spec/factories/contacts.rb +6 -2
- data/spec/factories/issues.rb +12 -8
- data/spec/factories/lists.rb +6 -2
- data/spec/factories/transactional_messages.rb +8 -4
- data/spec/models/contactology/campaign_spec.rb +16 -22
- data/spec/models/contactology/campaigns/standard_spec.rb +31 -27
- data/spec/models/contactology/campaigns/transactional_spec.rb +26 -16
- data/spec/models/contactology/contact_spec.rb +28 -35
- data/spec/models/contactology/issues_spec.rb +2 -2
- data/spec/models/contactology/list_spec.rb +12 -20
- data/spec/models/contactology/transactional_message_spec.rb +13 -15
- data/spec/spec_helper.rb +9 -5
- data/spec/support/factory_girl.rb +4 -18
- data/spec/support/vcr.rb +9 -6
- metadata +208 -177
- data/.infinity_test +0 -16
- data/.watchr +0 -36
- data/Changelog.markdown +0 -30
- data/spec/fixtures/net/campaign/destroy.yml +0 -248
- data/spec/fixtures/net/campaign/find/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find/success.yml +0 -283
- data/spec/fixtures/net/campaign/find_by_name/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find_by_name/success.yml +0 -283
- data/spec/fixtures/net/campaign/preview.yml +0 -181
- data/spec/fixtures/net/campaigns/standard/create/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/standard/create/invalid.yml +0 -141
- data/spec/fixtures/net/campaigns/standard/create/success.yml +0 -176
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure_missing_attributes.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/success.yml +0 -316
- data/spec/fixtures/net/campaigns/transactional/create/failure.yml +0 -36
- data/spec/fixtures/net/campaigns/transactional/create/success.yml +0 -71
- data/spec/fixtures/net/campaigns/transactional/send_campaign/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/transactional/send_campaign/success.yml +0 -176
- data/spec/fixtures/net/contact/active.yml +0 -106
- data/spec/fixtures/net/contact/change_email/success.yml +0 -176
- data/spec/fixtures/net/contact/change_email/unknown.yml +0 -36
- data/spec/fixtures/net/contact/create.yml +0 -106
- data/spec/fixtures/net/contact/destroy.yml +0 -141
- data/spec/fixtures/net/contact/find/active.yml +0 -106
- data/spec/fixtures/net/contact/find/suppressed.yml +0 -141
- data/spec/fixtures/net/contact/find/unknown.yml +0 -36
- data/spec/fixtures/net/contact/lists/empty.yml +0 -106
- data/spec/fixtures/net/contact/lists/full.yml +0 -246
- data/spec/fixtures/net/contact/lists/unknown.yml +0 -71
- data/spec/fixtures/net/contact/suppress.yml +0 -141
- data/spec/fixtures/net/list/all.yml +0 -141
- data/spec/fixtures/net/list/create.yml +0 -106
- data/spec/fixtures/net/list/destroy.yml +0 -176
- data/spec/fixtures/net/list/find/success.yml +0 -141
- data/spec/fixtures/net/list/find/unknown.yml +0 -36
- data/spec/fixtures/net/list/import/success.yml +0 -351
- data/spec/fixtures/net/list/subscribe/success.yml +0 -211
- data/spec/fixtures/net/list/unsubscribe/success.yml +0 -246
- data/spec/fixtures/net/transactional_message/send_message/failure.yml +0 -176
- data/spec/fixtures/net/transactional_message/send_message/success.yml +0 -176
- data/spec/requests/contacts_spec.rb +0 -6
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=bad&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John
|
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=7a74581af0b61bb7a07eb71ef613bb12; 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 18:29:32 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: "{\"success\":false,\"issues\":{\"score\":0,\"issues\":[{\"level\":\"\",\"type\":\"SPAM\",\"text\":\"BODY: TVD_SPACE_RATIO\",\"message\":\"\",\"context\":\"\",\"col\":null,\"deduction\":29},{\"level\":\"\",\"type\":\"SPAM\",\"text\":\"No {COMPANY_ADDRESS} token or registered company name and address found in message, required by CAN-SPAM\",\"message\":\"\",\"context\":\"\",\"col\":null,\"deduction\":100}]}}"
|
36
|
-
http_version: "1.1"
|
@@ -1,71 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=This%20is%20a%20good%20email.%20%7BCOMPANY_ADDRESS%7D&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John
|
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=4e518ecc532175831dacef7760bb7d66; 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 18:29:27 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: "36"
|
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/?campaignId=36&key=%{API_KEY}&method=Campaign_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=5fc9f7cd155847e6e848b8afe3e0c62d; 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 18:29:17 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: "true"
|
71
|
-
http_version: "1.1"
|
@@ -1,106 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=This%20is%20a%20good%20email.%20%7BCOMPANY_ADDRESS%7D&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
9
|
-
- application/json
|
10
|
-
user-agent:
|
11
|
-
- contactology/0.0.2 (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=4578af0339fa5bdaa144207bcf18f0ff; 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
|
-
- Thu, 25 Aug 2011 15:58:31 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: "54"
|
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/?campaignId=54&key=%{API_KEY}&method=Campaign_Send_Transactional_Multiple&source=Customer&contacts%5Bemail%5D=bad&optionalParameters%5BcontinueOnError%5D=true
|
41
|
-
body:
|
42
|
-
headers:
|
43
|
-
accept:
|
44
|
-
- application/json
|
45
|
-
user-agent:
|
46
|
-
- contactology/0.0.2 (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=7ef161bba924ef945f85052cf6c43ff4; 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
|
-
- Thu, 25 Aug 2011 15:58:32 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: "{\"errors\":[{\"email\":\"bad\",\"source\":\"Customer\",\"_err_\":302,\"_msg_\":\"Invalid e-mail address provided\"}]}"
|
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/?campaignId=54&key=%{API_KEY}&method=Campaign_Delete
|
76
|
-
body:
|
77
|
-
headers:
|
78
|
-
accept:
|
79
|
-
- application/json
|
80
|
-
user-agent:
|
81
|
-
- contactology/0.0.2 (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=8fe3cea47a38ea58f7e9c36d3eeb32e6; 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
|
-
- Thu, 25 Aug 2011 15:58:32 GMT
|
103
|
-
server:
|
104
|
-
- lighttpd/1.4.28
|
105
|
-
body: "true"
|
106
|
-
http_version: "1.1"
|
@@ -1,176 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=This%20is%20a%20good%20email.%20%7BCOMPANY_ADDRESS%7D&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
9
|
-
- application/json
|
10
|
-
user-agent:
|
11
|
-
- contactology/0.0.2 (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=ea3b263e73dd6f642db5b80c7c201eef; 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
|
-
- Thu, 25 Aug 2011 15:52:04 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: "53"
|
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=factory-contact@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true
|
41
|
-
body:
|
42
|
-
headers:
|
43
|
-
accept:
|
44
|
-
- application/json
|
45
|
-
user-agent:
|
46
|
-
- contactology/0.0.2 (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=91d37cb1385416c860e6fea9b9902a3a; 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
|
-
- Thu, 25 Aug 2011 15:52:06 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: "true"
|
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/?campaignId=53&key=%{API_KEY}&method=Campaign_Send_Transactional_Multiple&source=Customer&contacts%5Bemail%5D=factory-contact@example.com&optionalParameters%5BcontinueOnError%5D=true
|
76
|
-
body:
|
77
|
-
headers:
|
78
|
-
accept:
|
79
|
-
- application/json
|
80
|
-
user-agent:
|
81
|
-
- contactology/0.0.2 (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=efa7362c6aa9567372b2a6c3a93035cc; 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
|
-
- Thu, 25 Aug 2011 15:52:07 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/?campaignId=53&key=%{API_KEY}&method=Campaign_Delete
|
111
|
-
body:
|
112
|
-
headers:
|
113
|
-
accept:
|
114
|
-
- application/json
|
115
|
-
user-agent:
|
116
|
-
- contactology/0.0.2 (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=47cde51d75b18399e630ebbcc05a64ca; 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
|
-
- Thu, 25 Aug 2011 15:52:15 GMT
|
138
|
-
server:
|
139
|
-
- lighttpd/1.4.28
|
140
|
-
body: "true"
|
141
|
-
http_version: "1.1"
|
142
|
-
- !ruby/struct:VCR::HTTPInteraction
|
143
|
-
request: !ruby/struct:VCR::Request
|
144
|
-
method: :get
|
145
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Delete
|
146
|
-
body:
|
147
|
-
headers:
|
148
|
-
accept:
|
149
|
-
- application/json
|
150
|
-
user-agent:
|
151
|
-
- contactology/0.0.2 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
152
|
-
response: !ruby/struct:VCR::Response
|
153
|
-
status: !ruby/struct:VCR::ResponseStatus
|
154
|
-
code: 200
|
155
|
-
message: OK
|
156
|
-
headers:
|
157
|
-
x-powered-by:
|
158
|
-
- PHP/5.2.10
|
159
|
-
set-cookie:
|
160
|
-
- PHPSESSID=9acedc6330d095394297fa17b0a7708e; path=/
|
161
|
-
expires:
|
162
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
163
|
-
cache-control:
|
164
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
165
|
-
pragma:
|
166
|
-
- no-cache
|
167
|
-
content-type:
|
168
|
-
- text/plain;charset=UTF-8
|
169
|
-
transfer-encoding:
|
170
|
-
- chunked
|
171
|
-
date:
|
172
|
-
- Thu, 25 Aug 2011 15:52:16 GMT
|
173
|
-
server:
|
174
|
-
- lighttpd/1.4.28
|
175
|
-
body: "true"
|
176
|
-
http_version: "1.1"
|
@@ -1,106 +0,0 @@
|
|
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=active@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=54a6a49bdf5467aa95255abb6061ee0b; 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:07:26 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=active@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=e23255dd2f81de004fc3f76ebec64716; 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:07:26 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: "{\"active@example.com\":{\"contactId\":\"9\",\"email\":\"active@example.com\",\"source\":\"API 2 Contact_Add\",\"status\":\"active\",\"customFields\":{\"first_name\":\"\",\"last_name\":\"\",\"email_address\":\"active@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=active@example.com&key=%{API_KEY}&method=Contact_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=75a5e4c67497c036cd3080b168677d3f; 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:07:27 GMT
|
103
|
-
server:
|
104
|
-
- lighttpd/1.4.28
|
105
|
-
body: "true"
|
106
|
-
http_version: "1.1"
|