sib-api-v3-sdk 2.1.1 → 2.1.2
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.
- checksums.yaml +4 -4
- data/docs/ContactsApi.md +3 -1
- data/docs/GetEmailEventReportEvents.md +3 -2
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +3 -0
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +20 -10
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +1 -0
- data/spec/models/get_email_event_report_events_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feebdbb2a3934137395d706ad63fc4da35de5e63
|
4
|
+
data.tar.gz: 080443333cf2847b80337bdb51e9b48c36de8e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d0b92e1c890ef974b53564dac16a884660a2f28b7c06291767d4f74de7012fe9c881a7af2d83185ab088fbd336203e15a723547d9727e3b86d95dd726129f1
|
7
|
+
data.tar.gz: d685ea4df40639c68d1ad6597a107a3692436645cb9dc644bcef48c463542204500075c6a2be8c314a671ef1b2d871d07170486105a51070f06a41a24f75477a
|
data/docs/ContactsApi.md
CHANGED
@@ -617,7 +617,8 @@ api_instance = SibApiV3Sdk::ContactsApi.new
|
|
617
617
|
|
618
618
|
opts = {
|
619
619
|
limit: 50, # Integer | Number of documents per page
|
620
|
-
offset: 0 # Integer | Index of the first document of the page
|
620
|
+
offset: 0, # Integer | Index of the first document of the page
|
621
|
+
modified_since: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
621
622
|
}
|
622
623
|
|
623
624
|
begin
|
@@ -635,6 +636,7 @@ Name | Type | Description | Notes
|
|
635
636
|
------------- | ------------- | ------------- | -------------
|
636
637
|
**limit** | **Integer**| Number of documents per page | [optional] [default to 50]
|
637
638
|
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
|
639
|
+
**modified_since** | **DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
|
638
640
|
|
639
641
|
### Return type
|
640
642
|
|
@@ -4,13 +4,14 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**email** | **String** | Email address which generates the event |
|
7
|
-
**date** | **
|
7
|
+
**date** | **DateTime** | Date on which the event has been generated |
|
8
8
|
**subject** | **String** | Subject of the event | [optional]
|
9
9
|
**message_id** | **String** | Message ID which generated the event |
|
10
10
|
**event** | **String** | Event which occurred |
|
11
|
-
**reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) |
|
11
|
+
**reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
|
12
12
|
**tag** | **String** | Tag of the email which generated the event |
|
13
13
|
**ip** | **String** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional]
|
14
14
|
**link** | **String** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
|
15
|
+
**from** | **String** | Sender email from which the emails are sent |
|
15
16
|
|
16
17
|
|
@@ -627,6 +627,7 @@ module SibApiV3Sdk
|
|
627
627
|
# @param [Hash] opts the optional parameters
|
628
628
|
# @option opts [Integer] :limit Number of documents per page (default to 50)
|
629
629
|
# @option opts [Integer] :offset Index of the first document of the page (default to 0)
|
630
|
+
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
630
631
|
# @return [GetContacts]
|
631
632
|
def get_contacts(opts = {})
|
632
633
|
data, _status_code, _headers = get_contacts_with_http_info(opts)
|
@@ -638,6 +639,7 @@ module SibApiV3Sdk
|
|
638
639
|
# @param [Hash] opts the optional parameters
|
639
640
|
# @option opts [Integer] :limit Number of documents per page
|
640
641
|
# @option opts [Integer] :offset Index of the first document of the page
|
642
|
+
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
641
643
|
# @return [Array<(GetContacts, Fixnum, Hash)>] GetContacts data, response status code and response headers
|
642
644
|
def get_contacts_with_http_info(opts = {})
|
643
645
|
if @api_client.config.debugging
|
@@ -654,6 +656,7 @@ module SibApiV3Sdk
|
|
654
656
|
query_params = {}
|
655
657
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
656
658
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
659
|
+
query_params[:'modifiedSince'] = opts[:'modified_since'] if !opts[:'modified_since'].nil?
|
657
660
|
|
658
661
|
# header parameters
|
659
662
|
header_params = {}
|
@@ -42,6 +42,9 @@ module SibApiV3Sdk
|
|
42
42
|
# The link which is sent to the user (only available if the event is requests or opened or clicks)
|
43
43
|
attr_accessor :link
|
44
44
|
|
45
|
+
# Sender email from which the emails are sent
|
46
|
+
attr_accessor :from
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -75,7 +78,8 @@ module SibApiV3Sdk
|
|
75
78
|
:'reason' => :'reason',
|
76
79
|
:'tag' => :'tag',
|
77
80
|
:'ip' => :'ip',
|
78
|
-
:'link' => :'link'
|
81
|
+
:'link' => :'link',
|
82
|
+
:'from' => :'from'
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -83,14 +87,15 @@ module SibApiV3Sdk
|
|
83
87
|
def self.swagger_types
|
84
88
|
{
|
85
89
|
:'email' => :'String',
|
86
|
-
:'date' => :'
|
90
|
+
:'date' => :'DateTime',
|
87
91
|
:'subject' => :'String',
|
88
92
|
:'message_id' => :'String',
|
89
93
|
:'event' => :'String',
|
90
94
|
:'reason' => :'String',
|
91
95
|
:'tag' => :'String',
|
92
96
|
:'ip' => :'String',
|
93
|
-
:'link' => :'String'
|
97
|
+
:'link' => :'String',
|
98
|
+
:'from' => :'String'
|
94
99
|
}
|
95
100
|
end
|
96
101
|
|
@@ -138,6 +143,10 @@ module SibApiV3Sdk
|
|
138
143
|
self.link = attributes[:'link']
|
139
144
|
end
|
140
145
|
|
146
|
+
if attributes.has_key?(:'from')
|
147
|
+
self.from = attributes[:'from']
|
148
|
+
end
|
149
|
+
|
141
150
|
end
|
142
151
|
|
143
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -160,14 +169,14 @@ module SibApiV3Sdk
|
|
160
169
|
invalid_properties.push("invalid value for 'event', event cannot be nil.")
|
161
170
|
end
|
162
171
|
|
163
|
-
if @reason.nil?
|
164
|
-
invalid_properties.push("invalid value for 'reason', reason cannot be nil.")
|
165
|
-
end
|
166
|
-
|
167
172
|
if @tag.nil?
|
168
173
|
invalid_properties.push("invalid value for 'tag', tag cannot be nil.")
|
169
174
|
end
|
170
175
|
|
176
|
+
if @from.nil?
|
177
|
+
invalid_properties.push("invalid value for 'from', from cannot be nil.")
|
178
|
+
end
|
179
|
+
|
171
180
|
return invalid_properties
|
172
181
|
end
|
173
182
|
|
@@ -180,8 +189,8 @@ module SibApiV3Sdk
|
|
180
189
|
return false if @event.nil?
|
181
190
|
event_validator = EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked"])
|
182
191
|
return false unless event_validator.valid?(@event)
|
183
|
-
return false if @reason.nil?
|
184
192
|
return false if @tag.nil?
|
193
|
+
return false if @from.nil?
|
185
194
|
return true
|
186
195
|
end
|
187
196
|
|
@@ -208,7 +217,8 @@ module SibApiV3Sdk
|
|
208
217
|
reason == o.reason &&
|
209
218
|
tag == o.tag &&
|
210
219
|
ip == o.ip &&
|
211
|
-
link == o.link
|
220
|
+
link == o.link &&
|
221
|
+
from == o.from
|
212
222
|
end
|
213
223
|
|
214
224
|
# @see the `==` method
|
@@ -220,7 +230,7 @@ module SibApiV3Sdk
|
|
220
230
|
# Calculates hash code according to all attributes.
|
221
231
|
# @return [Fixnum] Hash code
|
222
232
|
def hash
|
223
|
-
[email, date, subject, message_id, event, reason, tag, ip, link].hash
|
233
|
+
[email, date, subject, message_id, event, reason, tag, ip, link, from].hash
|
224
234
|
end
|
225
235
|
|
226
236
|
# Builds the object from hash
|
@@ -170,6 +170,7 @@ describe 'ContactsApi' do
|
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
171
|
# @option opts [Integer] :limit Number of documents per page
|
172
172
|
# @option opts [Integer] :offset Index of the first document of the page
|
173
|
+
# @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
173
174
|
# @return [GetContacts]
|
174
175
|
describe 'get_contacts test' do
|
175
176
|
it "should work" do
|
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: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SendinBlue Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|