sib-api-v3-sdk 5.5.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -21
- data/docs/AbTestCampaignResult.md +2 -0
- data/docs/AbTestCampaignResultClickedLinks.md +9 -0
- data/docs/AbTestCampaignResultStatistics.md +13 -0
- data/docs/AbTestVersionClicks.md +7 -0
- data/docs/AbTestVersionClicksInner.md +10 -0
- data/docs/AbTestVersionStats.md +9 -0
- data/docs/AddContactToList.md +2 -1
- data/docs/ContactsApi.md +24 -24
- data/docs/CreateDoiContact.md +1 -1
- data/docs/CreateSmsCampaign.md +1 -1
- data/docs/CreateWebhook.md +1 -1
- data/docs/GetAggregatedReport.md +13 -13
- data/docs/GetCampaignStats.md +1 -0
- data/docs/ListsApi.md +4 -4
- data/docs/RemoveContactFromList.md +2 -1
- data/docs/SendSmtpEmailSender.md +1 -0
- data/docs/SendTransacSms.md +1 -1
- data/docs/{SMTPApi.md → TransactionalEmailsApi.md} +52 -52
- data/docs/UpdateSmsCampaign.md +1 -1
- data/docs/UpdateWebhook.md +1 -1
- data/lib/sib-api-v3-sdk.rb +6 -1
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +40 -40
- data/lib/sib-api-v3-sdk/api/lists_api.rb +4 -4
- data/lib/sib-api-v3-sdk/api/{smtp_api.rb → transactional_emails_api.rb} +52 -52
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +22 -4
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +202 -0
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +258 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +175 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +219 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +205 -0
- data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +17 -5
- data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +5 -0
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +0 -65
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +14 -4
- data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +14 -2
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +15 -5
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +6 -6
- data/spec/api/lists_api_spec.rb +2 -2
- data/spec/api/{smtp_api_spec.rb → transactional_emails_api_spec.rb} +6 -6
- data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +47 -0
- data/spec/models/ab_test_campaign_result_spec.rb +12 -0
- data/spec/models/ab_test_campaign_result_statistics_spec.rb +71 -0
- data/spec/models/ab_test_version_clicks_inner_spec.rb +53 -0
- data/spec/models/ab_test_version_clicks_spec.rb +35 -0
- data/spec/models/ab_test_version_stats_spec.rb +47 -0
- data/spec/models/add_contact_to_list_spec.rb +6 -0
- data/spec/models/get_campaign_stats_spec.rb +6 -0
- data/spec/models/remove_contact_from_list_spec.rb +6 -0
- data/spec/models/send_smtp_email_sender_spec.rb +6 -0
- data/testfile.rb +23 -0
- metadata +31 -10
@@ -20,7 +20,7 @@ module SibApiV3Sdk
|
|
20
20
|
# Description of the webhook
|
21
21
|
attr_accessor :description
|
22
22
|
|
23
|
-
# Events triggering the webhook. Possible values for Transactional type webhook – request
|
23
|
+
# Events triggering the webhook. Possible values for Transactional type webhook – `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` and possible values for Marketing type webhook – `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` and `delivered`
|
24
24
|
attr_accessor :events
|
25
25
|
|
26
26
|
class EnumAttributeValidator
|
@@ -35,7 +35,7 @@ describe 'ContactsApi' do
|
|
35
35
|
# unit tests for add_contact_to_list
|
36
36
|
# Add existing contacts to a list
|
37
37
|
# @param list_id Id of the list
|
38
|
-
# @param contact_emails Emails addresses of the contacts
|
38
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [PostContactInfo]
|
41
41
|
describe 'add_contact_to_list test' do
|
@@ -115,7 +115,7 @@ describe 'ContactsApi' do
|
|
115
115
|
|
116
116
|
# unit tests for delete_contact
|
117
117
|
# Delete a contact
|
118
|
-
# @param
|
118
|
+
# @param identifier Email (urlencoded) OR ID of the contact
|
119
119
|
# @param [Hash] opts the optional parameters
|
120
120
|
# @return [nil]
|
121
121
|
describe 'delete_contact test' do
|
@@ -158,7 +158,7 @@ describe 'ContactsApi' do
|
|
158
158
|
|
159
159
|
# unit tests for get_contact_info
|
160
160
|
# Get a contact's details
|
161
|
-
# @param
|
161
|
+
# @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
162
162
|
# @param [Hash] opts the optional parameters
|
163
163
|
# @return [GetExtendedContactDetails]
|
164
164
|
describe 'get_contact_info test' do
|
@@ -169,7 +169,7 @@ describe 'ContactsApi' do
|
|
169
169
|
|
170
170
|
# unit tests for get_contact_stats
|
171
171
|
# Get email campaigns' statistics for a contact
|
172
|
-
# @param
|
172
|
+
# @param identifier Email (urlencoded) OR ID of the contact
|
173
173
|
# @param [Hash] opts the optional parameters
|
174
174
|
# @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
175
175
|
# @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
|
@@ -281,7 +281,7 @@ describe 'ContactsApi' do
|
|
281
281
|
# unit tests for remove_contact_from_list
|
282
282
|
# Delete a contact from a list
|
283
283
|
# @param list_id Id of the list
|
284
|
-
# @param contact_emails Emails
|
284
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
285
285
|
# @param [Hash] opts the optional parameters
|
286
286
|
# @return [PostContactInfo]
|
287
287
|
describe 'remove_contact_from_list test' do
|
@@ -317,7 +317,7 @@ describe 'ContactsApi' do
|
|
317
317
|
|
318
318
|
# unit tests for update_contact
|
319
319
|
# Update a contact
|
320
|
-
# @param
|
320
|
+
# @param identifier Email (urlencoded) OR ID of the contact
|
321
321
|
# @param update_contact Values to update a contact
|
322
322
|
# @param [Hash] opts the optional parameters
|
323
323
|
# @return [nil]
|
data/spec/api/lists_api_spec.rb
CHANGED
@@ -35,7 +35,7 @@ describe 'ListsApi' do
|
|
35
35
|
# unit tests for add_contact_to_list
|
36
36
|
# Add existing contacts to a list
|
37
37
|
# @param list_id Id of the list
|
38
|
-
# @param contact_emails Emails addresses of the contacts
|
38
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [PostContactInfo]
|
41
41
|
describe 'add_contact_to_list test' do
|
@@ -119,7 +119,7 @@ describe 'ListsApi' do
|
|
119
119
|
# unit tests for remove_contact_from_list
|
120
120
|
# Delete a contact from a list
|
121
121
|
# @param list_id Id of the list
|
122
|
-
# @param contact_emails Emails
|
122
|
+
# @param contact_emails Emails addresses OR IDs of the contacts
|
123
123
|
# @param [Hash] opts the optional parameters
|
124
124
|
# @return [PostContactInfo]
|
125
125
|
describe 'remove_contact_from_list test' do
|
@@ -13,22 +13,22 @@ Swagger Codegen version: 2.4.12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for SibApiV3Sdk::
|
16
|
+
# Unit tests for SibApiV3Sdk::TransactionalEmailsApi
|
17
17
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'TransactionalEmailsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@instance = SibApiV3Sdk::
|
22
|
+
@instance = SibApiV3Sdk::TransactionalEmailsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@instance).to be_instance_of(SibApiV3Sdk::
|
29
|
+
describe 'test an instance of TransactionalEmailsApi' do
|
30
|
+
it 'should create an instance of TransactionalEmailsApi' do
|
31
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::TransactionalEmailsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SibApiV3Sdk::AbTestCampaignResultClickedLinks
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AbTestCampaignResultClickedLinks' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::AbTestCampaignResultClickedLinks.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AbTestCampaignResultClickedLinks' do
|
31
|
+
it 'should create an instance of AbTestCampaignResultClickedLinks' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestCampaignResultClickedLinks)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "version_a"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "version_b"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -76,4 +76,16 @@ describe 'AbTestCampaignResult' do
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
+
describe 'test attribute "statistics"' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe 'test attribute "clicked_links"' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
79
91
|
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SibApiV3Sdk::AbTestCampaignResultStatistics
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AbTestCampaignResultStatistics' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::AbTestCampaignResultStatistics.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AbTestCampaignResultStatistics' do
|
31
|
+
it 'should create an instance of AbTestCampaignResultStatistics' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestCampaignResultStatistics)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "openers"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "clicks"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "unsubscribed"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "hard_bounces"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "soft_bounces"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "complaints"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SibApiV3Sdk::AbTestVersionClicksInner
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AbTestVersionClicksInner' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::AbTestVersionClicksInner.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AbTestVersionClicksInner' do
|
31
|
+
it 'should create an instance of AbTestVersionClicksInner' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionClicksInner)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "link"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "clicks_count"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "click_rate"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SibApiV3Sdk::AbTestVersionClicks
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AbTestVersionClicks' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::AbTestVersionClicks.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AbTestVersionClicks' do
|
31
|
+
it 'should create an instance of AbTestVersionClicks' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionClicks)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SibApiV3Sdk::AbTestVersionStats
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AbTestVersionStats' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::AbTestVersionStats.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AbTestVersionStats' do
|
31
|
+
it 'should create an instance of AbTestVersionStats' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::AbTestVersionStats)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "version_a"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "version_b"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -104,4 +104,10 @@ describe 'GetCampaignStats' do
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
+
describe 'test attribute "return_bounce"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
107
113
|
end
|
@@ -38,6 +38,12 @@ describe 'RemoveContactFromList' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "ids"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
41
47
|
describe 'test attribute "all"' do
|
42
48
|
it 'should work' do
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/testfile.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'sib-api-v3-sdk'
|
3
|
+
# setup authorization
|
4
|
+
SibApiV3Sdk.configure do |config|
|
5
|
+
# Configure API key authorization: api-key
|
6
|
+
config.api_key['api-key'] = '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'
|
7
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
8
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
9
|
+
# Configure API key authorization: partner-key
|
10
|
+
# config.api_key['partner-key'] = 'YOUR API KEY'
|
11
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
12
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
13
|
+
end
|
14
|
+
|
15
|
+
api_instance = SibApiV3Sdk::TransactionalEmailsApi.new
|
16
|
+
template_id = 56 # Integer | id of the template
|
17
|
+
begin
|
18
|
+
#Returns the template information
|
19
|
+
result = api_instance.get_smtp_template(template_id)
|
20
|
+
p result
|
21
|
+
rescue SibApiV3Sdk::ApiError => e
|
22
|
+
puts "Exception when calling TransactionalEmailsApi->get_smtp_template: #{e}"
|
23
|
+
end
|