sib-api-v3-sdk 7.1.0 → 7.2.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 +5 -0
- data/docs/BlockDomain.md +8 -0
- data/docs/ContactsApi.md +18 -6
- data/docs/CreateSmtpTemplateSender.md +1 -1
- data/docs/EmailCampaignsApi.md +3 -1
- data/docs/FoldersApi.md +9 -3
- data/docs/GetBlockedDomains.md +8 -0
- data/docs/GetChildDomain.md +2 -2
- data/docs/GetChildrenList.md +1 -1
- data/docs/GetEmailCampaign.md +2 -2
- data/docs/GetEmailCampaigns.md +1 -1
- data/docs/GetEmailEventReportEvents.md +1 -0
- data/docs/GetExtendedCampaignOverview.md +2 -2
- data/docs/GetFolderLists.md +2 -2
- data/docs/GetLists.md +2 -2
- data/docs/GetProcesses.md +1 -1
- data/docs/GetSmsCampaign.md +1 -1
- data/docs/GetSmsCampaignOverview.md +1 -1
- data/docs/GetSmsCampaigns.md +1 -1
- data/docs/GetSmsEventReportEvents.md +4 -4
- data/docs/GetTransacAggregatedSmsReport.md +10 -10
- data/docs/GetTransacSmsReportReports.md +10 -10
- data/docs/ListsApi.md +9 -3
- data/docs/ProcessApi.md +3 -1
- data/docs/SMSCampaignsApi.md +3 -1
- data/docs/SendSmtpEmailSender.md +3 -3
- data/docs/TransactionalEmailsApi.md +187 -5
- data/docs/TransactionalSMSApi.md +6 -2
- data/lib/sib-api-v3-sdk.rb +2 -0
- data/lib/sib-api-v3-sdk/api/account_api.rb +10 -0
- data/lib/sib-api-v3-sdk/api/attributes_api.rb +10 -0
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +40 -0
- data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +16 -0
- data/lib/sib-api-v3-sdk/api/folders_api.rb +22 -0
- data/lib/sib-api-v3-sdk/api/lists_api.rb +28 -0
- data/lib/sib-api-v3-sdk/api/process_api.rb +16 -0
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +10 -0
- data/lib/sib-api-v3-sdk/api/senders_api.rb +10 -0
- data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +16 -0
- data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +196 -2
- data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +22 -0
- data/lib/sib-api-v3-sdk/api/webhooks_api.rb +10 -0
- data/lib/sib-api-v3-sdk/models/block_domain.rb +189 -0
- data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_blocked_domains.rb +192 -0
- data/lib/sib-api-v3-sdk/models/get_child_domain.rb +0 -10
- data/lib/sib-api-v3-sdk/models/get_children_list.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +0 -10
- data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +16 -6
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +0 -10
- data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +0 -10
- data/lib/sib-api-v3-sdk/models/get_lists.rb +0 -10
- data/lib/sib-api-v3-sdk/models/get_processes.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +0 -20
- data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +0 -50
- data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +0 -50
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +4 -9
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +5 -0
- data/spec/api/email_campaigns_api_spec.rb +1 -0
- data/spec/api/folders_api_spec.rb +2 -0
- data/spec/api/lists_api_spec.rb +3 -0
- data/spec/api/process_api_spec.rb +1 -0
- data/spec/api/sms_campaigns_api_spec.rb +1 -0
- data/spec/api/transactional_emails_api_spec.rb +40 -0
- data/spec/api/transactional_sms_api_spec.rb +2 -0
- data/spec/models/block_domain_spec.rb +41 -0
- data/spec/models/get_blocked_domains_spec.rb +41 -0
- data/spec/models/get_email_event_report_events_spec.rb +7 -1
- data/testfile.rb +26 -0
- metadata +11 -2
@@ -13,15 +13,15 @@ Swagger Codegen version: 2.4.12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
|
-
# Mandatory if `templateId` is not passed. Pass name (optional) and email
|
16
|
+
# Mandatory if `templateId` is not passed. Pass `name` (optional) and `email` OR `id` of sender from which emails will be sent. `name` will be ignored if passed along with sender `id`. For example, {\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"} or {\"id\":2}
|
17
17
|
class SendSmtpEmailSender
|
18
|
-
# Name of the sender from which the emails will be sent. Maximum allowed characters are 70.
|
18
|
+
# Name of the sender from which the emails will be sent. Maximum allowed characters are 70. Applicable only when email is passed.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# Email of the sender from which the emails will be sent
|
21
|
+
# Email of the sender from which the emails will be sent. Mandatory if sender id is not passed.
|
22
22
|
attr_accessor :email
|
23
23
|
|
24
|
-
# Id of the sender from which the emails will be sent
|
24
|
+
# Id of the sender from which the emails will be sent. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). Mandatory if email is not passed.
|
25
25
|
attr_accessor :id
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -67,17 +67,12 @@ module SibApiV3Sdk
|
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
69
|
invalid_properties = Array.new
|
70
|
-
if @email.nil?
|
71
|
-
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
72
|
-
end
|
73
|
-
|
74
70
|
invalid_properties
|
75
71
|
end
|
76
72
|
|
77
73
|
# Check to see if the all the properties in the model are valid
|
78
74
|
# @return true if the model is valid
|
79
75
|
def valid?
|
80
|
-
return false if @email.nil?
|
81
76
|
true
|
82
77
|
end
|
83
78
|
|
@@ -186,6 +186,7 @@ describe 'ContactsApi' do
|
|
186
186
|
# @option opts [Integer] :limit Number of documents per page
|
187
187
|
# @option opts [Integer] :offset Index of the first document of the page
|
188
188
|
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
|
189
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
189
190
|
# @return [GetContacts]
|
190
191
|
describe 'get_contacts test' do
|
191
192
|
it 'should work' do
|
@@ -200,6 +201,7 @@ describe 'ContactsApi' do
|
|
200
201
|
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
|
201
202
|
# @option opts [Integer] :limit Number of documents per page
|
202
203
|
# @option opts [Integer] :offset Index of the first document of the page
|
204
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
203
205
|
# @return [GetContacts]
|
204
206
|
describe 'get_contacts_from_list test' do
|
205
207
|
it 'should work' do
|
@@ -224,6 +226,7 @@ describe 'ContactsApi' do
|
|
224
226
|
# @param [Hash] opts the optional parameters
|
225
227
|
# @option opts [Integer] :limit Number of documents per page
|
226
228
|
# @option opts [Integer] :offset Index of the first document of the page
|
229
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
227
230
|
# @return [GetFolderLists]
|
228
231
|
describe 'get_folder_lists test' do
|
229
232
|
it 'should work' do
|
@@ -236,6 +239,7 @@ describe 'ContactsApi' do
|
|
236
239
|
# @param limit Number of documents per page
|
237
240
|
# @param offset Index of the first document of the page
|
238
241
|
# @param [Hash] opts the optional parameters
|
242
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
239
243
|
# @return [GetFolders]
|
240
244
|
describe 'get_folders test' do
|
241
245
|
it 'should work' do
|
@@ -259,6 +263,7 @@ describe 'ContactsApi' do
|
|
259
263
|
# @param [Hash] opts the optional parameters
|
260
264
|
# @option opts [Integer] :limit Number of documents per page
|
261
265
|
# @option opts [Integer] :offset Index of the first document of the page
|
266
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
262
267
|
# @return [GetLists]
|
263
268
|
describe 'get_lists test' do
|
264
269
|
it 'should work' do
|
@@ -98,6 +98,7 @@ describe 'EmailCampaignsApi' do
|
|
98
98
|
# @option opts [DateTime] :end_date Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
|
99
99
|
# @option opts [Integer] :limit Number of documents per page
|
100
100
|
# @option opts [Integer] :offset Index of the first document in the page
|
101
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
101
102
|
# @return [GetEmailCampaigns]
|
102
103
|
describe 'get_email_campaigns test' do
|
103
104
|
it 'should work' do
|
@@ -71,6 +71,7 @@ describe 'FoldersApi' do
|
|
71
71
|
# @param [Hash] opts the optional parameters
|
72
72
|
# @option opts [Integer] :limit Number of documents per page
|
73
73
|
# @option opts [Integer] :offset Index of the first document of the page
|
74
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
74
75
|
# @return [GetFolderLists]
|
75
76
|
describe 'get_folder_lists test' do
|
76
77
|
it 'should work' do
|
@@ -83,6 +84,7 @@ describe 'FoldersApi' do
|
|
83
84
|
# @param limit Number of documents per page
|
84
85
|
# @param offset Index of the first document of the page
|
85
86
|
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
86
88
|
# @return [GetFolders]
|
87
89
|
describe 'get_folders test' do
|
88
90
|
it 'should work' do
|
data/spec/api/lists_api_spec.rb
CHANGED
@@ -73,6 +73,7 @@ describe 'ListsApi' do
|
|
73
73
|
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
|
74
74
|
# @option opts [Integer] :limit Number of documents per page
|
75
75
|
# @option opts [Integer] :offset Index of the first document of the page
|
76
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
76
77
|
# @return [GetContacts]
|
77
78
|
describe 'get_contacts_from_list test' do
|
78
79
|
it 'should work' do
|
@@ -86,6 +87,7 @@ describe 'ListsApi' do
|
|
86
87
|
# @param [Hash] opts the optional parameters
|
87
88
|
# @option opts [Integer] :limit Number of documents per page
|
88
89
|
# @option opts [Integer] :offset Index of the first document of the page
|
90
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
89
91
|
# @return [GetFolderLists]
|
90
92
|
describe 'get_folder_lists test' do
|
91
93
|
it 'should work' do
|
@@ -109,6 +111,7 @@ describe 'ListsApi' do
|
|
109
111
|
# @param [Hash] opts the optional parameters
|
110
112
|
# @option opts [Integer] :limit Number of documents per page
|
111
113
|
# @option opts [Integer] :offset Index of the first document of the page
|
114
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
112
115
|
# @return [GetLists]
|
113
116
|
describe 'get_lists test' do
|
114
117
|
it 'should work' do
|
@@ -48,6 +48,7 @@ describe 'ProcessApi' do
|
|
48
48
|
# @param [Hash] opts the optional parameters
|
49
49
|
# @option opts [Integer] :limit Number limitation for the result returned
|
50
50
|
# @option opts [Integer] :offset Beginning point in the list to retrieve from.
|
51
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
51
52
|
# @return [GetProcesses]
|
52
53
|
describe 'get_processes test' do
|
53
54
|
it 'should work' do
|
@@ -73,6 +73,7 @@ describe 'SMSCampaignsApi' do
|
|
73
73
|
# @option opts [DateTime] :end_date Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
|
74
74
|
# @option opts [Integer] :limit Number limitation for the result returned
|
75
75
|
# @option opts [Integer] :offset Beginning point in the list to retrieve from.
|
76
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
76
77
|
# @return [GetSmsCampaigns]
|
77
78
|
describe 'get_sms_campaigns test' do
|
78
79
|
it 'should work' do
|
@@ -32,6 +32,18 @@ describe 'TransactionalEmailsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for block_new_domain
|
36
|
+
# Add a new domain to the list of blocked domains
|
37
|
+
# Blocks a new domain in order to avoid messages being sent to the same
|
38
|
+
# @param block_domain
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'block_new_domain test' 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
|
+
|
35
47
|
# unit tests for create_smtp_template
|
36
48
|
# Create an email template
|
37
49
|
# @param smtp_template values to update in transactional email template
|
@@ -43,6 +55,18 @@ describe 'TransactionalEmailsApi' do
|
|
43
55
|
end
|
44
56
|
end
|
45
57
|
|
58
|
+
# unit tests for delete_blocked_domain
|
59
|
+
# Unblock an existing domain from the list of blocked domains
|
60
|
+
# Unblocks an existing domain from the list of blocked domains
|
61
|
+
# @param domain The name of the domain to be deleted
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [nil]
|
64
|
+
describe 'delete_blocked_domain test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
46
70
|
# unit tests for delete_hardbounces
|
47
71
|
# Delete hardbounces
|
48
72
|
# Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)
|
@@ -80,6 +104,17 @@ describe 'TransactionalEmailsApi' do
|
|
80
104
|
end
|
81
105
|
end
|
82
106
|
|
107
|
+
# unit tests for get_blocked_domains
|
108
|
+
# Get the list of blocked domains
|
109
|
+
# Get the list of blocked domains
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [GetBlockedDomains]
|
112
|
+
describe 'get_blocked_domains test' do
|
113
|
+
it 'should work' do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
83
118
|
# unit tests for get_email_event_report
|
84
119
|
# Get all your transactional email activity (unaggregated events)
|
85
120
|
# @param [Hash] opts the optional parameters
|
@@ -93,6 +128,7 @@ describe 'TransactionalEmailsApi' do
|
|
93
128
|
# @option opts [String] :tags Filter the report for tags (serialized and urlencoded array)
|
94
129
|
# @option opts [String] :message_id Filter on a specific message id
|
95
130
|
# @option opts [Integer] :template_id Filter on a specific template id
|
131
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
96
132
|
# @return [GetEmailEventReport]
|
97
133
|
describe 'get_email_event_report test' do
|
98
134
|
it 'should work' do
|
@@ -109,6 +145,7 @@ describe 'TransactionalEmailsApi' do
|
|
109
145
|
# @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
|
110
146
|
# @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
|
111
147
|
# @option opts [String] :tag Tag of the emails
|
148
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
112
149
|
# @return [GetReports]
|
113
150
|
describe 'get_smtp_report test' do
|
114
151
|
it 'should work' do
|
@@ -133,6 +170,7 @@ describe 'TransactionalEmailsApi' do
|
|
133
170
|
# @option opts [BOOLEAN] :template_status Filter on the status of the template. Active = true, inactive = false
|
134
171
|
# @option opts [Integer] :limit Number of documents returned per page
|
135
172
|
# @option opts [Integer] :offset Index of the first document in the page
|
173
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
136
174
|
# @return [GetSmtpTemplates]
|
137
175
|
describe 'get_smtp_templates test' do
|
138
176
|
it 'should work' do
|
@@ -148,6 +186,7 @@ describe 'TransactionalEmailsApi' do
|
|
148
186
|
# @option opts [Integer] :limit Number of documents returned per page
|
149
187
|
# @option opts [Integer] :offset Index of the first document on the page
|
150
188
|
# @option opts [Array<String>] :senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
|
189
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
151
190
|
# @return [GetTransacBlockedContacts]
|
152
191
|
describe 'get_transac_blocked_contacts test' do
|
153
192
|
it 'should work' do
|
@@ -175,6 +214,7 @@ describe 'TransactionalEmailsApi' do
|
|
175
214
|
# @option opts [String] :message_id Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
|
176
215
|
# @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month.
|
177
216
|
# @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
|
217
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
178
218
|
# @return [GetTransacEmailsList]
|
179
219
|
describe 'get_transac_emails_list test' do
|
180
220
|
it 'should work' do
|
@@ -43,6 +43,7 @@ describe 'TransactionalSMSApi' do
|
|
43
43
|
# @option opts [String] :phone_number Filter the report for a specific phone number
|
44
44
|
# @option opts [String] :event Filter the report for specific events
|
45
45
|
# @option opts [String] :tags Filter the report for specific tags passed as a serialized urlencoded array
|
46
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
46
47
|
# @return [GetSmsEventReport]
|
47
48
|
describe 'get_sms_events test' do
|
48
49
|
it 'should work' do
|
@@ -71,6 +72,7 @@ describe 'TransactionalSMSApi' do
|
|
71
72
|
# @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
|
72
73
|
# @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
|
73
74
|
# @option opts [String] :tag Filter on a tag
|
75
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation
|
74
76
|
# @return [GetTransacSmsReport]
|
75
77
|
describe 'get_transac_sms_report test' do
|
76
78
|
it 'should work' do
|
@@ -0,0 +1,41 @@
|
|
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::BlockDomain
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'BlockDomain' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::BlockDomain.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of BlockDomain' do
|
31
|
+
it 'should create an instance of BlockDomain' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::BlockDomain)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "domain"' 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
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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::GetBlockedDomains
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'GetBlockedDomains' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SibApiV3Sdk::GetBlockedDomains.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of GetBlockedDomains' do
|
31
|
+
it 'should create an instance of GetBlockedDomains' do
|
32
|
+
expect(@instance).to be_instance_of(SibApiV3Sdk::GetBlockedDomains)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "domains"' 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
|
+
end
|
@@ -59,7 +59,7 @@ describe 'GetEmailEventReportEvents' do
|
|
59
59
|
describe 'test attribute "event"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed"])
|
62
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error"])
|
63
63
|
# validator.allowable_values.each do |value|
|
64
64
|
# expect { @instance.event = value }.not_to raise_error
|
65
65
|
# end
|
@@ -96,4 +96,10 @@ describe 'GetEmailEventReportEvents' do
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
+
describe 'test attribute "template_id"' do
|
100
|
+
it 'should work' do
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
99
105
|
end
|
data/testfile.rb
ADDED
@@ -0,0 +1,26 @@
|
|
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'] = 'YOUR API KEY'
|
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
|
+
|
10
|
+
# Configure API key authorization: partner-key
|
11
|
+
# config.api_key['partner-key'] = 'YOUR API KEY'
|
12
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
13
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
14
|
+
end
|
15
|
+
|
16
|
+
api_instance = SibApiV3Sdk::AccountApi.new
|
17
|
+
|
18
|
+
api_instance.setUserAgent('someagent');
|
19
|
+
|
20
|
+
begin
|
21
|
+
#Get your account information, plan and credits details
|
22
|
+
result = api_instance.get_account
|
23
|
+
p result
|
24
|
+
rescue SibApiV3Sdk::ApiError => e
|
25
|
+
puts "Exception when calling AccountApi->get_account: #{e}"
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sib-api-v3-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SendinBlue Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- docs/AddContactToList.md
|
213
213
|
- docs/AddCredits.md
|
214
214
|
- docs/AttributesApi.md
|
215
|
+
- docs/BlockDomain.md
|
215
216
|
- docs/ContactsApi.md
|
216
217
|
- docs/CreateAttribute.md
|
217
218
|
- docs/CreateAttributeEnumeration.md
|
@@ -250,6 +251,7 @@ files:
|
|
250
251
|
- docs/GetAttributes.md
|
251
252
|
- docs/GetAttributesAttributes.md
|
252
253
|
- docs/GetAttributesEnumeration.md
|
254
|
+
- docs/GetBlockedDomains.md
|
253
255
|
- docs/GetCampaignOverview.md
|
254
256
|
- docs/GetCampaignRecipients.md
|
255
257
|
- docs/GetCampaignStats.md
|
@@ -416,6 +418,7 @@ files:
|
|
416
418
|
- lib/sib-api-v3-sdk/models/add_child_domain.rb
|
417
419
|
- lib/sib-api-v3-sdk/models/add_contact_to_list.rb
|
418
420
|
- lib/sib-api-v3-sdk/models/add_credits.rb
|
421
|
+
- lib/sib-api-v3-sdk/models/block_domain.rb
|
419
422
|
- lib/sib-api-v3-sdk/models/create_attribute.rb
|
420
423
|
- lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb
|
421
424
|
- lib/sib-api-v3-sdk/models/create_child.rb
|
@@ -451,6 +454,7 @@ files:
|
|
451
454
|
- lib/sib-api-v3-sdk/models/get_attributes.rb
|
452
455
|
- lib/sib-api-v3-sdk/models/get_attributes_attributes.rb
|
453
456
|
- lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb
|
457
|
+
- lib/sib-api-v3-sdk/models/get_blocked_domains.rb
|
454
458
|
- lib/sib-api-v3-sdk/models/get_campaign_overview.rb
|
455
459
|
- lib/sib-api-v3-sdk/models/get_campaign_recipients.rb
|
456
460
|
- lib/sib-api-v3-sdk/models/get_campaign_stats.rb
|
@@ -609,6 +613,7 @@ files:
|
|
609
613
|
- spec/models/add_child_domain_spec.rb
|
610
614
|
- spec/models/add_contact_to_list_spec.rb
|
611
615
|
- spec/models/add_credits_spec.rb
|
616
|
+
- spec/models/block_domain_spec.rb
|
612
617
|
- spec/models/create_attribute_enumeration_spec.rb
|
613
618
|
- spec/models/create_attribute_spec.rb
|
614
619
|
- spec/models/create_child_spec.rb
|
@@ -644,6 +649,7 @@ files:
|
|
644
649
|
- spec/models/get_attributes_attributes_spec.rb
|
645
650
|
- spec/models/get_attributes_enumeration_spec.rb
|
646
651
|
- spec/models/get_attributes_spec.rb
|
652
|
+
- spec/models/get_blocked_domains_spec.rb
|
647
653
|
- spec/models/get_campaign_overview_spec.rb
|
648
654
|
- spec/models/get_campaign_recipients_spec.rb
|
649
655
|
- spec/models/get_campaign_stats_spec.rb
|
@@ -777,6 +783,7 @@ files:
|
|
777
783
|
- spec/models/update_webhook_spec.rb
|
778
784
|
- spec/models/upload_image_to_gallery_spec.rb
|
779
785
|
- spec/spec_helper.rb
|
786
|
+
- testfile.rb
|
780
787
|
homepage: https://www.sendinblue.com/
|
781
788
|
licenses:
|
782
789
|
- MIT
|
@@ -826,6 +833,7 @@ test_files:
|
|
826
833
|
- spec/models/add_child_domain_spec.rb
|
827
834
|
- spec/models/add_contact_to_list_spec.rb
|
828
835
|
- spec/models/add_credits_spec.rb
|
836
|
+
- spec/models/block_domain_spec.rb
|
829
837
|
- spec/models/create_attribute_enumeration_spec.rb
|
830
838
|
- spec/models/create_attribute_spec.rb
|
831
839
|
- spec/models/create_child_spec.rb
|
@@ -861,6 +869,7 @@ test_files:
|
|
861
869
|
- spec/models/get_attributes_attributes_spec.rb
|
862
870
|
- spec/models/get_attributes_enumeration_spec.rb
|
863
871
|
- spec/models/get_attributes_spec.rb
|
872
|
+
- spec/models/get_blocked_domains_spec.rb
|
864
873
|
- spec/models/get_campaign_overview_spec.rb
|
865
874
|
- spec/models/get_campaign_recipients_spec.rb
|
866
875
|
- spec/models/get_campaign_stats_spec.rb
|