fuelsdk 0.0.3 → 0.0.4
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/README.md +35 -37
- data/lib/fuelsdk.rb +16 -0
- data/lib/fuelsdk/client.rb +2 -3
- data/lib/fuelsdk/http_request.rb +1 -1
- data/lib/fuelsdk/objects.rb +89 -77
- data/lib/fuelsdk/soap.rb +79 -33
- data/lib/fuelsdk/version.rb +1 -1
- data/samples/sample-bounceevent.rb +3 -3
- data/samples/sample-campaign.rb +14 -14
- data/samples/sample-clickevent.rb +3 -3
- data/samples/sample-contentarea.rb +8 -8
- data/samples/sample-email.rb +8 -8
- data/samples/sample-folder.rb +9 -9
- data/samples/sample-list.rb +7 -7
- data/samples/sample-list.subscriber.rb +6 -6
- data/samples/sample-openevent.rb +3 -3
- data/samples/sample-sentevent.rb +3 -3
- data/samples/sample-subscriber.rb +8 -8
- data/samples/sample-triggeredsend.rb +9 -9
- data/samples/sample-unsubevent.rb +3 -3
- data/spec/{fuelsdk_spec.rb → client_spec.rb} +16 -16
- data/spec/objects_helper_spec.rb +25 -0
- data/spec/objects_spec.rb +111 -0
- data/spec/rest_spec.rb +2 -2
- data/spec/soap_spec.rb +92 -1
- metadata +8 -6
- data/spec/fuelsdk/client_spec.rb +0 -21
data/samples/sample-openevent.rb
CHANGED
@@ -2,14 +2,14 @@ require 'fuelsdk'
|
|
2
2
|
require_relative 'sample_helper'
|
3
3
|
|
4
4
|
begin
|
5
|
-
stubObj = FuelSDK::
|
5
|
+
stubObj = FuelSDK::Client.new auth
|
6
6
|
|
7
7
|
## Modify the date below to reduce the number of results returned from the request
|
8
8
|
## Setting this too far in the past could result in a very large response size
|
9
9
|
retrieveDate = '2013-01-15T13:00:00.000'
|
10
10
|
|
11
11
|
p '>>> Retrieve Filtered OpenEvents with GetMoreResults'
|
12
|
-
getOpenEvent = FuelSDK::
|
12
|
+
getOpenEvent = FuelSDK::OpenEvent.new()
|
13
13
|
getOpenEvent.authStub = stubObj
|
14
14
|
getOpenEvent.props = ["SendID","SubscriberKey","EventDate","Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","PartnerKey"]
|
15
15
|
getOpenEvent.filter = {'Property' => 'EventDate','SimpleOperator' => 'greaterThan','DateValue' => retrieveDate}
|
@@ -38,7 +38,7 @@ begin
|
|
38
38
|
# The following request could potentially bring back large amounts of data if run against a production account
|
39
39
|
=begin
|
40
40
|
p '>>> Retrieve All OpenEvents with GetMoreResults'
|
41
|
-
getOpenEvent = FuelSDK::
|
41
|
+
getOpenEvent = FuelSDK::OpenEvent.new()
|
42
42
|
getOpenEvent.authStub = stubObj
|
43
43
|
getOpenEvent.props = ["SendID","SubscriberKey","EventDate","Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","PartnerKey"]
|
44
44
|
getResponse = getOpenEvent.get
|
data/samples/sample-sentevent.rb
CHANGED
@@ -2,14 +2,14 @@ require 'fuelsdk'
|
|
2
2
|
require_relative 'sample_helper'
|
3
3
|
|
4
4
|
begin
|
5
|
-
stubObj = FuelSDK::
|
5
|
+
stubObj = FuelSDK::Client.new auth
|
6
6
|
|
7
7
|
## Modify the date below to reduce the number of results returned from the request
|
8
8
|
## Setting this too far in the past could result in a very large response size
|
9
9
|
retrieveDate = '2013-01-15T13:00:00.000'
|
10
10
|
|
11
11
|
p '>>> Retrieve Filtered SentEvents with GetMoreResults'
|
12
|
-
getSentEvent = FuelSDK::
|
12
|
+
getSentEvent = FuelSDK::SentEvent.new()
|
13
13
|
getSentEvent.authStub = stubObj
|
14
14
|
getSentEvent.props = ["SendID","SubscriberKey","EventDate","Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","ListID","PartnerKey","SubscriberID"]
|
15
15
|
getSentEvent.filter = {'Property' => 'EventDate','SimpleOperator' => 'greaterThan','DateValue' => retrieveDate}
|
@@ -38,7 +38,7 @@ begin
|
|
38
38
|
# The following request could potentially bring back large amounts of data if run against a production account
|
39
39
|
=begin
|
40
40
|
p '>>> Retrieve All SentEvents with GetMoreResults'
|
41
|
-
getSentEvent = FuelSDK::
|
41
|
+
getSentEvent = FuelSDK::SentEvent.new()
|
42
42
|
getSentEvent.authStub = stubObj
|
43
43
|
getSentEvent.props = ["SendID","SubscriberKey","EventDate","Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","ListID","PartnerKey","SubscriberID"]
|
44
44
|
getResponse = getSentEvent.get
|
@@ -2,7 +2,7 @@ require 'fuelsdk'
|
|
2
2
|
require_relative 'sample_helper' # contains auth with credentials
|
3
3
|
|
4
4
|
begin
|
5
|
-
stubObj = FuelSDK::
|
5
|
+
stubObj = FuelSDK::Client.new auth
|
6
6
|
|
7
7
|
# NOTE: These examples only work in accounts where the SubscriberKey functionality is not enabled
|
8
8
|
# SubscriberKey will need to be included in the props if that feature is enabled
|
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
|
12
12
|
# Create Subscriber
|
13
13
|
p '>>> Create Subscriber'
|
14
|
-
postSub = FuelSDK::
|
14
|
+
postSub = FuelSDK::Subscriber.new
|
15
15
|
postSub.authStub = stubObj
|
16
16
|
postSub.props = {"EmailAddress" => SubscriberTestEmail}
|
17
17
|
p '>>> Posting'
|
@@ -26,7 +26,7 @@ begin
|
|
26
26
|
|
27
27
|
# Retrieve newly created Subscriber
|
28
28
|
p '>>> Retrieve newly created Subscriber'
|
29
|
-
getSub = FuelSDK::
|
29
|
+
getSub = FuelSDK::Subscriber.new()
|
30
30
|
getSub.authStub = stubObj
|
31
31
|
getSub.props = ["SubscriberKey", "EmailAddress", "Status"]
|
32
32
|
getSub.filter = {'Property' => 'SubscriberKey', 'SimpleOperator' => 'equals', 'Value' => SubscriberTestEmail}
|
@@ -42,7 +42,7 @@ begin
|
|
42
42
|
|
43
43
|
# Update Subscriber
|
44
44
|
p '>>> Update Subscriber'
|
45
|
-
patchSub = FuelSDK::
|
45
|
+
patchSub = FuelSDK::Subscriber.new
|
46
46
|
patchSub.authStub = stubObj
|
47
47
|
patchSub.props = {"EmailAddress" => SubscriberTestEmail, "Status" => "Unsubscribed"}
|
48
48
|
patchResponse = patchSub.patch
|
@@ -56,7 +56,7 @@ begin
|
|
56
56
|
|
57
57
|
# Retrieve Subscriber that should have status unsubscribed now
|
58
58
|
p '>>> Retrieve Subscriber that should have status unsubscribed now'
|
59
|
-
getSub = FuelSDK::
|
59
|
+
getSub = FuelSDK::Subscriber.new()
|
60
60
|
getSub.authStub = stubObj
|
61
61
|
getSub.props = ["SubscriberKey", "EmailAddress", "Status"]
|
62
62
|
getSub.filter = {'Property' => 'SubscriberKey','SimpleOperator' => 'equals','Value' => SubscriberTestEmail};
|
@@ -72,7 +72,7 @@ begin
|
|
72
72
|
|
73
73
|
# Delete Subscriber
|
74
74
|
p '>>> Delete Subscriber'
|
75
|
-
deleteSub = FuelSDK::
|
75
|
+
deleteSub = FuelSDK::Subscriber.new()
|
76
76
|
deleteSub.authStub = stubObj
|
77
77
|
deleteSub.props = {"EmailAddress" => SubscriberTestEmail}
|
78
78
|
deleteResponse = deleteSub.delete
|
@@ -86,7 +86,7 @@ begin
|
|
86
86
|
|
87
87
|
# Retrieve Subscriber to confirm deletion
|
88
88
|
p '>>> Retrieve Subscriber to confirm deletion'
|
89
|
-
getSub = FuelSDK::
|
89
|
+
getSub = FuelSDK::Subscriber.new()
|
90
90
|
getSub.authStub = stubObj
|
91
91
|
getSub.props = ["SubscriberKey", "EmailAddress", "Status"]
|
92
92
|
getSub.filter = {'Property' => 'SubscriberKey','SimpleOperator' => 'equals','Value' => SubscriberTestEmail};
|
@@ -105,7 +105,7 @@ begin
|
|
105
105
|
|
106
106
|
# Retrieve All Subcribers with GetMoreResults
|
107
107
|
p '>>> Retrieve All Subcribers with GetMoreResults'
|
108
|
-
getSub = FuelSDK::
|
108
|
+
getSub = FuelSDK::Subscriber.new()
|
109
109
|
getSub.authStub = stubObj
|
110
110
|
getSub.props = ["SubscriberKey", "EmailAddress", "Status"]
|
111
111
|
getResponse = getSub.get
|
@@ -3,11 +3,11 @@ require 'securerandom'
|
|
3
3
|
require_relative 'sample_helper'
|
4
4
|
|
5
5
|
begin
|
6
|
-
stubObj = FuelSDK::
|
6
|
+
stubObj = FuelSDK::Client.new auth
|
7
7
|
|
8
8
|
# Get all TriggeredSendDefinitions
|
9
9
|
p '>>> Get all TriggeredSendDefinitions'
|
10
|
-
getTS = FuelSDK::
|
10
|
+
getTS = FuelSDK::TriggeredSend.new
|
11
11
|
getTS.authStub = stubObj
|
12
12
|
getTS.props = ["CustomerKey", "Name", "TriggeredSendStatus"]
|
13
13
|
getResponse = getTS.get
|
@@ -24,7 +24,7 @@ begin
|
|
24
24
|
|
25
25
|
# Create a TriggeredSend Definition
|
26
26
|
p '>>> Create a TriggeredSend Definition'
|
27
|
-
postTrig = FuelSDK::
|
27
|
+
postTrig = FuelSDK::TriggeredSend.new
|
28
28
|
postTrig.authStub = stubObj
|
29
29
|
postTrig.props = {'CustomerKey' => TSNameForCreateThenDelete,'Name' => TSNameForCreateThenDelete, 'Email' => {"ID"=>"3113962"}, "SendClassification"=> {"CustomerKey"=> "2240"}}
|
30
30
|
postResponse = postTrig.post
|
@@ -42,7 +42,7 @@ begin
|
|
42
42
|
|
43
43
|
# Pause a TriggeredSend
|
44
44
|
p '>>> Pause a TriggeredSend'
|
45
|
-
patchTrig = FuelSDK::
|
45
|
+
patchTrig = FuelSDK::TriggeredSend.new
|
46
46
|
patchTrig.authStub = stubObj
|
47
47
|
patchTrig.props = {"CustomerKey" => NameOfTestTS, "TriggeredSendStatus" =>"Inactive"}
|
48
48
|
patchResponse = patchTrig.patch
|
@@ -55,7 +55,7 @@ begin
|
|
55
55
|
|
56
56
|
# Retrieve Single TriggeredSend
|
57
57
|
p '>>> Retrieve Single TriggeredSend'
|
58
|
-
getTS = FuelSDK::
|
58
|
+
getTS = FuelSDK::TriggeredSend.new
|
59
59
|
getTS.authStub = stubObj
|
60
60
|
getTS.props = ["CustomerKey", "Name", "TriggeredSendStatus"]
|
61
61
|
getTS.filter = {'Property' => 'CustomerKey','SimpleOperator' => 'equals','Value' => NameOfTestTS}
|
@@ -70,7 +70,7 @@ begin
|
|
70
70
|
|
71
71
|
# Start a TriggeredSend by setting to Active
|
72
72
|
p '>>> Start a TriggeredSend by setting to Active'
|
73
|
-
patchTrig = FuelSDK::
|
73
|
+
patchTrig = FuelSDK::TriggeredSend.new
|
74
74
|
patchTrig.authStub = stubObj
|
75
75
|
patchTrig.props = {"CustomerKey" => NameOfTestTS, "TriggeredSendStatus" =>"Active"}
|
76
76
|
patchResponse = patchTrig.patch
|
@@ -83,7 +83,7 @@ begin
|
|
83
83
|
|
84
84
|
# Retrieve Single TriggeredSend After setting back to active
|
85
85
|
p '>>> Retrieve Single TriggeredSend After setting back to active'
|
86
|
-
getTS = FuelSDK::
|
86
|
+
getTS = FuelSDK::TriggeredSend.new
|
87
87
|
getTS.authStub = stubObj
|
88
88
|
getTS.props = ["CustomerKey", "Name", "TriggeredSendStatus"]
|
89
89
|
getTS.filter = {'Property' => 'CustomerKey','SimpleOperator' => 'equals','Value' => NameOfTestTS}
|
@@ -98,7 +98,7 @@ begin
|
|
98
98
|
|
99
99
|
# Send an email with TriggeredSend
|
100
100
|
p '>>> Send an email with TriggeredSend'
|
101
|
-
sendTrig = FuelSDK::
|
101
|
+
sendTrig = FuelSDK::TriggeredSend.new
|
102
102
|
sendTrig.authStub = stubObj
|
103
103
|
sendTrig.props = {"CustomerKey" => NameOfTestTS}
|
104
104
|
sendTrig.subscribers = [{"EmailAddress"=>"testing@bh.exacttarget.com", "SubscriberKey" => "testing@bh.exacttarget.com"}]
|
@@ -113,7 +113,7 @@ begin
|
|
113
113
|
|
114
114
|
# Delete a TriggeredSend Definition
|
115
115
|
p '>>> Delete a TriggeredSend Definition '
|
116
|
-
deleteTrig = FuelSDK::
|
116
|
+
deleteTrig = FuelSDK::TriggeredSend.new
|
117
117
|
deleteTrig.authStub = stubObj
|
118
118
|
deleteTrig.props = {'CustomerKey' => TSNameForCreateThenDelete}
|
119
119
|
deleteResponse = deleteTrig.delete
|
@@ -2,14 +2,14 @@ require 'fuelsdk'
|
|
2
2
|
require_relative 'sample_helper'
|
3
3
|
|
4
4
|
begin
|
5
|
-
stubObj = FuelSDK::
|
5
|
+
stubObj = FuelSDK::Client.new auth
|
6
6
|
|
7
7
|
## Modify the date below to reduce the number of results returned from the request
|
8
8
|
## Setting this too far in the past could result in a very large response size
|
9
9
|
retrieveDate = '2013-01-15T13:00:00.000'
|
10
10
|
|
11
11
|
p '>>> Retrieve Filtered UnsubEvents with GetMoreResults'
|
12
|
-
getUnsubEvent = FuelSDK::
|
12
|
+
getUnsubEvent = FuelSDK::UnsubEvent.new()
|
13
13
|
getUnsubEvent.authStub = stubObj
|
14
14
|
getUnsubEvent.props = ["SendID","SubscriberKey","EventDate",
|
15
15
|
"Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","PartnerKey"]
|
@@ -40,7 +40,7 @@ begin
|
|
40
40
|
# The following request could potentially bring back large amounts of data if run against a production account
|
41
41
|
=begin
|
42
42
|
p '>>> Retrieve All UnsubEvents with GetMoreResults'
|
43
|
-
getUnsubEvent = FuelSDK::
|
43
|
+
getUnsubEvent = FuelSDK::UnsubEvent.new()
|
44
44
|
getUnsubEvent.authStub = stubObj
|
45
45
|
getUnsubEvent.props = ["SendID","SubscriberKey","EventDate","Client.ID","EventType","BatchID","TriggeredSendDefinitionObjectID","PartnerKey"]
|
46
46
|
getResponse = getUnsubEvent.get
|
@@ -1,44 +1,44 @@
|
|
1
1
|
require 'spec_helper.rb'
|
2
2
|
|
3
|
-
describe FuelSDK::
|
3
|
+
describe FuelSDK::Client do
|
4
4
|
|
5
5
|
context 'initialized' do
|
6
6
|
|
7
7
|
it 'with client parameters' do
|
8
|
-
client = FuelSDK::
|
8
|
+
client = FuelSDK::Client.new 'client' => { 'id' => '1234', 'secret' => 'ssssh', 'signature' => 'hancock' }
|
9
9
|
expect(client.secret).to eq 'ssssh'
|
10
10
|
expect(client.id).to eq '1234'
|
11
11
|
expect(client.signature).to eq 'hancock'
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'with debug=true' do
|
15
|
-
client = FuelSDK::
|
15
|
+
client = FuelSDK::Client.new({}, true)
|
16
16
|
expect(client.debug).to be_true
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'with debug=false' do
|
20
|
-
client = FuelSDK::
|
20
|
+
client = FuelSDK::Client.new({}, false)
|
21
21
|
expect(client.debug).to be_false
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'creates SoapClient' do
|
25
|
-
client = FuelSDK::
|
25
|
+
client = FuelSDK::Client.new
|
26
26
|
expect(client).to be_kind_of FuelSDK::Soap
|
27
27
|
end
|
28
28
|
|
29
29
|
it '#wsdl defaults to https://webservice.exacttarget.com/etframework.wsdl' do
|
30
|
-
client = FuelSDK::
|
30
|
+
client = FuelSDK::Client.new
|
31
31
|
expect(client.wsdl).to eq 'https://webservice.exacttarget.com/etframework.wsdl'
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'creates RestClient' do
|
35
|
-
client = FuelSDK::
|
35
|
+
client = FuelSDK::Client.new
|
36
36
|
expect(client).to be_kind_of FuelSDK::Rest
|
37
37
|
end
|
38
38
|
|
39
39
|
describe 'with a wsdl' do
|
40
40
|
|
41
|
-
let(:client) { FuelSDK::
|
41
|
+
let(:client) { FuelSDK::Client.new 'defaultwsdl' => 'somewsdl' }
|
42
42
|
|
43
43
|
it'creates a SoapClient' do
|
44
44
|
expect(client).to be_kind_of FuelSDK::Soap
|
@@ -52,7 +52,7 @@ describe FuelSDK::ET_Client do
|
|
52
52
|
|
53
53
|
context 'instance can set' do
|
54
54
|
|
55
|
-
let(:client) { FuelSDK::
|
55
|
+
let(:client) { FuelSDK::Client.new }
|
56
56
|
|
57
57
|
it 'client id' do
|
58
58
|
client.id = 123
|
@@ -100,7 +100,7 @@ describe FuelSDK::ET_Client do
|
|
100
100
|
}
|
101
101
|
|
102
102
|
it 'raises an exception when signature is missing' do
|
103
|
-
expect { FuelSDK::
|
103
|
+
expect { FuelSDK::Client.new.jwt = encoded }.to raise_exception 'Require app signature to decode JWT'
|
104
104
|
end
|
105
105
|
|
106
106
|
describe 'decodes JWT' do
|
@@ -114,7 +114,7 @@ describe FuelSDK::ET_Client do
|
|
114
114
|
}
|
115
115
|
|
116
116
|
let(:client) {
|
117
|
-
FuelSDK::
|
117
|
+
FuelSDK::Client.new 'client' => { 'id' => '1234', 'secret' => 'ssssh', 'signature' => sig }
|
118
118
|
}
|
119
119
|
|
120
120
|
it 'making auth token available to client' do
|
@@ -135,7 +135,7 @@ describe FuelSDK::ET_Client do
|
|
135
135
|
end
|
136
136
|
|
137
137
|
describe '#refresh_token' do
|
138
|
-
let(:client) { FuelSDK::
|
138
|
+
let(:client) { FuelSDK::Client.new }
|
139
139
|
|
140
140
|
it 'defaults to nil' do
|
141
141
|
expect(client.refresh_token).to be_nil
|
@@ -149,7 +149,7 @@ describe FuelSDK::ET_Client do
|
|
149
149
|
|
150
150
|
describe '#refresh' do
|
151
151
|
|
152
|
-
let(:client) { FuelSDK::
|
152
|
+
let(:client) { FuelSDK::Client.new }
|
153
153
|
|
154
154
|
context 'raises an exception' do
|
155
155
|
|
@@ -169,7 +169,7 @@ describe FuelSDK::ET_Client do
|
|
169
169
|
end
|
170
170
|
|
171
171
|
#context 'posts' do
|
172
|
-
# let(:client) { FuelSDK::
|
172
|
+
# let(:client) { FuelSDK::Client.new 'client' => { 'id' => 123, 'secret' => 'sssh'} }
|
173
173
|
# it 'accessType=offline' do
|
174
174
|
# client.stub(:post)
|
175
175
|
# .with({'clientId' => 123, 'secret' => 'ssh', 'accessType' => 'offline'})
|
@@ -177,7 +177,7 @@ describe FuelSDK::ET_Client do
|
|
177
177
|
#end
|
178
178
|
|
179
179
|
#context 'updates' do
|
180
|
-
# let(:client) { FuelSDK::
|
180
|
+
# let(:client) { FuelSDK::Client.new 'client' => { 'id' => 123, 'secret' => 'sssh'} }
|
181
181
|
|
182
182
|
# it 'access_token' do
|
183
183
|
# #client.stub(:post).
|
@@ -187,7 +187,7 @@ describe FuelSDK::ET_Client do
|
|
187
187
|
|
188
188
|
describe 'includes HTTPRequest' do
|
189
189
|
|
190
|
-
subject { FuelSDK::
|
190
|
+
subject { FuelSDK::Client.new }
|
191
191
|
|
192
192
|
it { should respond_to(:get) }
|
193
193
|
it { should respond_to(:post) }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
shared_examples_for 'Soap Read Object' do
|
3
|
+
it { should respond_to(:info) }
|
4
|
+
it { should respond_to(:get) }
|
5
|
+
end
|
6
|
+
|
7
|
+
shared_examples_for 'Soap CUD Object' do
|
8
|
+
it { should respond_to(:post) }
|
9
|
+
it { should respond_to(:patch) }
|
10
|
+
it { should respond_to(:delete) }
|
11
|
+
end
|
12
|
+
|
13
|
+
shared_examples_for 'Soap Object' do
|
14
|
+
it { should respond_to(:id) }
|
15
|
+
it_behaves_like 'Soap Read Object'
|
16
|
+
it_behaves_like 'Soap CUD Object'
|
17
|
+
end
|
18
|
+
|
19
|
+
shared_examples_for 'Soap Read Only Object' do
|
20
|
+
it { should respond_to(:id) }
|
21
|
+
it_behaves_like 'Soap Read Object'
|
22
|
+
it { should_not respond_to(:post) }
|
23
|
+
it { should_not respond_to(:patch) }
|
24
|
+
it { should_not respond_to(:delete) }
|
25
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
require 'spec_helper.rb'
|
2
|
+
require 'objects_helper_spec.rb'
|
3
|
+
|
4
|
+
describe FuelSDK::BounceEvent do
|
5
|
+
|
6
|
+
let(:object) { FuelSDK::BounceEvent.new }
|
7
|
+
subject{ object }
|
8
|
+
|
9
|
+
it_behaves_like 'Soap Read Only Object'
|
10
|
+
its(:id){ should eq 'BounceEvent' }
|
11
|
+
end
|
12
|
+
|
13
|
+
describe FuelSDK::ClickEvent do
|
14
|
+
|
15
|
+
let(:object) { FuelSDK::ClickEvent.new }
|
16
|
+
subject{ object }
|
17
|
+
|
18
|
+
it_behaves_like 'Soap Read Only Object'
|
19
|
+
its(:id){ should eq 'ClickEvent' }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe FuelSDK::ContentArea do
|
23
|
+
|
24
|
+
let(:object) { FuelSDK::ContentArea.new }
|
25
|
+
subject{ object }
|
26
|
+
|
27
|
+
it_behaves_like 'Soap Object'
|
28
|
+
its(:id){ should eq 'ContentArea' }
|
29
|
+
end
|
30
|
+
|
31
|
+
describe FuelSDK::DataFolder do
|
32
|
+
|
33
|
+
let(:object) { FuelSDK::DataFolder.new }
|
34
|
+
subject{ object }
|
35
|
+
|
36
|
+
it_behaves_like 'Soap Object'
|
37
|
+
its(:id){ should eq 'DataFolder' }
|
38
|
+
end
|
39
|
+
|
40
|
+
describe FuelSDK::Folder do
|
41
|
+
|
42
|
+
let(:object) { FuelSDK::Folder.new }
|
43
|
+
subject{ object }
|
44
|
+
|
45
|
+
it_behaves_like 'Soap Object'
|
46
|
+
its(:id){ should eq 'DataFolder' }
|
47
|
+
end
|
48
|
+
|
49
|
+
describe FuelSDK::Email do
|
50
|
+
|
51
|
+
let(:object) { FuelSDK::Email.new }
|
52
|
+
subject{ object }
|
53
|
+
|
54
|
+
it_behaves_like 'Soap Object'
|
55
|
+
its(:id){ should eq 'Email' }
|
56
|
+
end
|
57
|
+
|
58
|
+
describe FuelSDK::List do
|
59
|
+
|
60
|
+
let(:object) { FuelSDK::List.new }
|
61
|
+
subject{ object }
|
62
|
+
|
63
|
+
it_behaves_like 'Soap Object'
|
64
|
+
its(:id){ should eq 'List' }
|
65
|
+
end
|
66
|
+
|
67
|
+
describe FuelSDK::List::Subscriber do
|
68
|
+
|
69
|
+
let(:object) { FuelSDK::List::Subscriber.new }
|
70
|
+
subject{ object }
|
71
|
+
|
72
|
+
it_behaves_like 'Soap Read Only Object'
|
73
|
+
its(:id){ should eq 'ListSubscriber' }
|
74
|
+
end
|
75
|
+
|
76
|
+
describe FuelSDK::OpenEvent do
|
77
|
+
|
78
|
+
let(:object) { FuelSDK::OpenEvent.new }
|
79
|
+
subject{ object }
|
80
|
+
|
81
|
+
it_behaves_like 'Soap Read Only Object'
|
82
|
+
its(:id){ should eq 'OpenEvent' }
|
83
|
+
end
|
84
|
+
|
85
|
+
describe FuelSDK::SentEvent do
|
86
|
+
|
87
|
+
let(:object) { FuelSDK::SentEvent.new }
|
88
|
+
subject{ object }
|
89
|
+
|
90
|
+
it_behaves_like 'Soap Read Only Object'
|
91
|
+
its(:id){ should eq 'SentEvent' }
|
92
|
+
end
|
93
|
+
|
94
|
+
describe FuelSDK::Subscriber do
|
95
|
+
|
96
|
+
let(:object) { FuelSDK::Subscriber.new }
|
97
|
+
subject{ object }
|
98
|
+
|
99
|
+
it_behaves_like 'Soap Object'
|
100
|
+
its(:id){ should eq 'Subscriber' }
|
101
|
+
end
|
102
|
+
|
103
|
+
# verify backward compats
|
104
|
+
describe ET_Subscriber do
|
105
|
+
|
106
|
+
let(:object) { ET_Subscriber.new }
|
107
|
+
subject{ object }
|
108
|
+
|
109
|
+
it_behaves_like 'Soap Object'
|
110
|
+
its(:id){ should eq 'Subscriber' }
|
111
|
+
end
|