pingram 1.0.45 → 1.0.47
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/Gemfile.lock +1 -1
- data/lib/pingram/api/broadcasts_api.rb +2 -2
- data/lib/pingram/api/domains_api.rb +109 -35
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/get_senders_response_inner.rb +135 -159
- data/lib/pingram/models/{domain_dns_check_records_inner.rb → get_senders_response_inner_dns_records_inner.rb} +98 -90
- data/lib/pingram/models/get_users_response_users_inner_email_suppression_status.rb +52 -27
- data/lib/pingram/models/{check_domain_dns_request.rb → patch_domain_request.rb} +35 -5
- data/lib/pingram/models/{post_senders_request_body.rb → post_domain_request.rb} +60 -19
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +3 -6
- metadata +5 -8
- data/lib/pingram/models/domain_dns_check.rb +0 -244
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +0 -193
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +0 -287
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '009986128af03b0cb9b8ad06bf72d06f29730e5c4cd37d50a3072a0a428697ff'
|
|
4
|
+
data.tar.gz: d972d04526b8c4d5d7e59d6fbf1cda9a5ca32533b7c7e1a4d4b4a17480fa28ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee86ad7f5401e6ba635ec931fd1ebcad6eca64cbddc47e5b002274c51816f3617a0705a5502750403971cc3bb12612156687ba22bb8323e3629415ee9952f808
|
|
7
|
+
data.tar.gz: ddeef5acc0e8558a4048681f132e898e912bd8c8f571fbf27f2a5c0bb3bbc23e6b8f567e46afd06036329489cc5ecf7591966a6559750721c1fefaef3f948df5
|
data/Gemfile.lock
CHANGED
|
@@ -601,7 +601,7 @@ module Pingram
|
|
|
601
601
|
end
|
|
602
602
|
|
|
603
603
|
# Resume a paused email broadcast
|
|
604
|
-
# Resume a paused email broadcast. Continues sending remaining recipients. Broadcasts paused for spam content cannot be resumed.
|
|
604
|
+
# Resume a paused email broadcast. Continues sending remaining recipients. Broadcasts paused for spam content or a deliverability review cannot be resumed.
|
|
605
605
|
# @param broadcast_id [String] Broadcast ID
|
|
606
606
|
# @param [Hash] opts the optional parameters
|
|
607
607
|
# @return [BroadcastResponse]
|
|
@@ -611,7 +611,7 @@ module Pingram
|
|
|
611
611
|
end
|
|
612
612
|
|
|
613
613
|
# Resume a paused email broadcast
|
|
614
|
-
# Resume a paused email broadcast. Continues sending remaining recipients. Broadcasts paused for spam content cannot be resumed.
|
|
614
|
+
# Resume a paused email broadcast. Continues sending remaining recipients. Broadcasts paused for spam content or a deliverability review cannot be resumed.
|
|
615
615
|
# @param broadcast_id [String] Broadcast ID
|
|
616
616
|
# @param [Hash] opts the optional parameters
|
|
617
617
|
# @return [Array<(BroadcastResponse, Integer, Hash)>] BroadcastResponse data, response status code and response headers
|
|
@@ -19,28 +19,28 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
# @param
|
|
22
|
+
# Add a domain
|
|
23
|
+
# Add a domain you already own. A subdomain such as mail.example.com is recommended. Mail from a subdomain is easier to deliver, and receiving mail there does not replace mail already arriving at the bare domain. This does not purchase, transfer, renew, or control the domain, does not edit DNS, and does not disable sending or receiving on other platforms. It saves the domain and returns it. Verification starts once the DKIM record is public. Publish the DKIM record so mail can be sent from addresses on this domain. When inbound is on, publishing the inbound MX routes that domain's inbound email to Pingram.
|
|
24
|
+
# @param post_domain_request [PostDomainRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [Array<GetSendersResponseInner>]
|
|
27
|
-
def domains_add_domain(
|
|
28
|
-
data, _status_code, _headers = domains_add_domain_with_http_info(
|
|
27
|
+
def domains_add_domain(post_domain_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = domains_add_domain_with_http_info(post_domain_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# @param
|
|
32
|
+
# Add a domain
|
|
33
|
+
# Add a domain you already own. A subdomain such as mail.example.com is recommended. Mail from a subdomain is easier to deliver, and receiving mail there does not replace mail already arriving at the bare domain. This does not purchase, transfer, renew, or control the domain, does not edit DNS, and does not disable sending or receiving on other platforms. It saves the domain and returns it. Verification starts once the DKIM record is public. Publish the DKIM record so mail can be sent from addresses on this domain. When inbound is on, publishing the inbound MX routes that domain's inbound email to Pingram.
|
|
34
|
+
# @param post_domain_request [PostDomainRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
|
|
37
|
-
def domains_add_domain_with_http_info(
|
|
37
|
+
def domains_add_domain_with_http_info(post_domain_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: DomainsApi.domains_add_domain ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
41
|
+
# verify the required parameter 'post_domain_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && post_domain_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'post_domain_request' when calling DomainsApi.domains_add_domain"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/domains'
|
|
@@ -62,7 +62,7 @@ module Pingram
|
|
|
62
62
|
form_params = opts[:form_params] || {}
|
|
63
63
|
|
|
64
64
|
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(post_domain_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
68
|
return_type = opts[:debug_return_type] || 'Array<GetSendersResponseInner>'
|
|
@@ -87,9 +87,72 @@ module Pingram
|
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
# Check a domain and refresh its status
|
|
91
|
+
# Check a domain already on this account and refresh its status. Returns the domain and its latest DNS status in our system. It does not return live DNS results as live DNS records take time to propagate to our system.
|
|
92
|
+
# @param sender [String] Domain name (URL encoded)
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Array<GetSendersResponseInner>]
|
|
95
|
+
def domains_check_domain(sender, opts = {})
|
|
96
|
+
data, _status_code, _headers = domains_check_domain_with_http_info(sender, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check a domain and refresh its status
|
|
101
|
+
# Check a domain already on this account and refresh its status. Returns the domain and its latest DNS status in our system. It does not return live DNS results as live DNS records take time to propagate to our system.
|
|
102
|
+
# @param sender [String] Domain name (URL encoded)
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
|
|
105
|
+
def domains_check_domain_with_http_info(sender, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: DomainsApi.domains_check_domain ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'sender' is set
|
|
110
|
+
if @api_client.config.client_side_validation && sender.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'sender' when calling DomainsApi.domains_check_domain"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/domains/{sender}/check'.sub('{' + 'sender' + '}', CGI.escape(sender.to_s))
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = opts[:form_params] || {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = opts[:debug_body]
|
|
129
|
+
|
|
130
|
+
# return_type
|
|
131
|
+
return_type = opts[:debug_return_type] || 'Array<GetSendersResponseInner>'
|
|
132
|
+
|
|
133
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
135
|
+
|
|
136
|
+
new_options = opts.merge(
|
|
137
|
+
:operation => :"DomainsApi.domains_check_domain",
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => return_type
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: DomainsApi#domains_check_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
|
|
90
153
|
# Remove a sender domain from the account
|
|
91
|
-
# Remove a sending domain from this account. You can no longer send from it, and
|
|
92
|
-
# @param sender [String]
|
|
154
|
+
# Remove a sending domain from this account. You can no longer send from it, and it no longer receives mail here. The tracking subdomain this account created for it stops serving opens, clicks, and unsubscribe for new mail.
|
|
155
|
+
# @param sender [String] Domain name (URL encoded)
|
|
93
156
|
# @param [Hash] opts the optional parameters
|
|
94
157
|
# @return [SuccessResponse]
|
|
95
158
|
def domains_delete_domain(sender, opts = {})
|
|
@@ -98,8 +161,8 @@ module Pingram
|
|
|
98
161
|
end
|
|
99
162
|
|
|
100
163
|
# Remove a sender domain from the account
|
|
101
|
-
# Remove a sending domain from this account. You can no longer send from it, and
|
|
102
|
-
# @param sender [String]
|
|
164
|
+
# Remove a sending domain from this account. You can no longer send from it, and it no longer receives mail here. The tracking subdomain this account created for it stops serving opens, clicks, and unsubscribe for new mail.
|
|
165
|
+
# @param sender [String] Domain name (URL encoded)
|
|
103
166
|
# @param [Hash] opts the optional parameters
|
|
104
167
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
105
168
|
def domains_delete_domain_with_http_info(sender, opts = {})
|
|
@@ -151,7 +214,7 @@ module Pingram
|
|
|
151
214
|
end
|
|
152
215
|
|
|
153
216
|
# List domains already added to this Pingram account for email
|
|
154
|
-
# List domains already added to this Pingram account for email. Each entry includes
|
|
217
|
+
# List domains already added to this Pingram account for email. Each entry includes whether you can send, whether the domain receives mail, whether tracked links use the domain, and a plain summary of how sending, receiving, and tracking stand. Does not search a registrar, purchase or transfer a domain, change DNS, or include domains that have not been added to this account.
|
|
155
218
|
# @param [Hash] opts the optional parameters
|
|
156
219
|
# @return [Array<GetSendersResponseInner>]
|
|
157
220
|
def domains_list_domains(opts = {})
|
|
@@ -160,7 +223,7 @@ module Pingram
|
|
|
160
223
|
end
|
|
161
224
|
|
|
162
225
|
# List domains already added to this Pingram account for email
|
|
163
|
-
# List domains already added to this Pingram account for email. Each entry includes
|
|
226
|
+
# List domains already added to this Pingram account for email. Each entry includes whether you can send, whether the domain receives mail, whether tracked links use the domain, and a plain summary of how sending, receiving, and tracking stand. Does not search a registrar, purchase or transfer a domain, change DNS, or include domains that have not been added to this account.
|
|
164
227
|
# @param [Hash] opts the optional parameters
|
|
165
228
|
# @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
|
|
166
229
|
def domains_list_domains_with_http_info(opts = {})
|
|
@@ -207,31 +270,37 @@ module Pingram
|
|
|
207
270
|
return data, status_code, headers
|
|
208
271
|
end
|
|
209
272
|
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
# @param sender [String]
|
|
273
|
+
# Update a domain
|
|
274
|
+
# Update inbound mail, open tracking, click tracking, or the tracking host on a domain already on this account. Leave a field out to keep its current value. Returns the domain.
|
|
275
|
+
# @param sender [String] Domain name (URL encoded)
|
|
276
|
+
# @param patch_domain_request [PatchDomainRequest]
|
|
213
277
|
# @param [Hash] opts the optional parameters
|
|
214
278
|
# @return [Array<GetSendersResponseInner>]
|
|
215
|
-
def
|
|
216
|
-
data, _status_code, _headers =
|
|
279
|
+
def domains_update_domain(sender, patch_domain_request, opts = {})
|
|
280
|
+
data, _status_code, _headers = domains_update_domain_with_http_info(sender, patch_domain_request, opts)
|
|
217
281
|
data
|
|
218
282
|
end
|
|
219
283
|
|
|
220
|
-
#
|
|
221
|
-
#
|
|
222
|
-
# @param sender [String]
|
|
284
|
+
# Update a domain
|
|
285
|
+
# Update inbound mail, open tracking, click tracking, or the tracking host on a domain already on this account. Leave a field out to keep its current value. Returns the domain.
|
|
286
|
+
# @param sender [String] Domain name (URL encoded)
|
|
287
|
+
# @param patch_domain_request [PatchDomainRequest]
|
|
223
288
|
# @param [Hash] opts the optional parameters
|
|
224
289
|
# @return [Array<(Array<GetSendersResponseInner>, Integer, Hash)>] Array<GetSendersResponseInner> data, response status code and response headers
|
|
225
|
-
def
|
|
290
|
+
def domains_update_domain_with_http_info(sender, patch_domain_request, opts = {})
|
|
226
291
|
if @api_client.config.debugging
|
|
227
|
-
@api_client.config.logger.debug 'Calling API: DomainsApi.
|
|
292
|
+
@api_client.config.logger.debug 'Calling API: DomainsApi.domains_update_domain ...'
|
|
228
293
|
end
|
|
229
294
|
# verify the required parameter 'sender' is set
|
|
230
295
|
if @api_client.config.client_side_validation && sender.nil?
|
|
231
|
-
fail ArgumentError, "Missing the required parameter 'sender' when calling DomainsApi.
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'sender' when calling DomainsApi.domains_update_domain"
|
|
297
|
+
end
|
|
298
|
+
# verify the required parameter 'patch_domain_request' is set
|
|
299
|
+
if @api_client.config.client_side_validation && patch_domain_request.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'patch_domain_request' when calling DomainsApi.domains_update_domain"
|
|
232
301
|
end
|
|
233
302
|
# resource path
|
|
234
|
-
local_var_path = '/domains/{sender}
|
|
303
|
+
local_var_path = '/domains/{sender}'.sub('{' + 'sender' + '}', CGI.escape(sender.to_s))
|
|
235
304
|
|
|
236
305
|
# query parameters
|
|
237
306
|
query_params = opts[:query_params] || {}
|
|
@@ -240,12 +309,17 @@ module Pingram
|
|
|
240
309
|
header_params = opts[:header_params] || {}
|
|
241
310
|
# HTTP header 'Accept' (if needed)
|
|
242
311
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
312
|
+
# HTTP header 'Content-Type'
|
|
313
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
314
|
+
if !content_type.nil?
|
|
315
|
+
header_params['Content-Type'] = content_type
|
|
316
|
+
end
|
|
243
317
|
|
|
244
318
|
# form parameters
|
|
245
319
|
form_params = opts[:form_params] || {}
|
|
246
320
|
|
|
247
321
|
# http body (model)
|
|
248
|
-
post_body = opts[:debug_body]
|
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_domain_request)
|
|
249
323
|
|
|
250
324
|
# return_type
|
|
251
325
|
return_type = opts[:debug_return_type] || 'Array<GetSendersResponseInner>'
|
|
@@ -254,7 +328,7 @@ module Pingram
|
|
|
254
328
|
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
255
329
|
|
|
256
330
|
new_options = opts.merge(
|
|
257
|
-
:operation => :"DomainsApi.
|
|
331
|
+
:operation => :"DomainsApi.domains_update_domain",
|
|
258
332
|
:header_params => header_params,
|
|
259
333
|
:query_params => query_params,
|
|
260
334
|
:form_params => form_params,
|
|
@@ -263,9 +337,9 @@ module Pingram
|
|
|
263
337
|
:return_type => return_type
|
|
264
338
|
)
|
|
265
339
|
|
|
266
|
-
data, status_code, headers = @api_client.call_api(:
|
|
340
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
267
341
|
if @api_client.config.debugging
|
|
268
|
-
@api_client.config.logger.debug "API called: DomainsApi#
|
|
342
|
+
@api_client.config.logger.debug "API called: DomainsApi#domains_update_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
343
|
end
|
|
270
344
|
return data, status_code, headers
|
|
271
345
|
end
|
data/lib/pingram/api_client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Pingram
|
|
|
32
32
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
33
33
|
def initialize(config = Configuration.default)
|
|
34
34
|
@config = config
|
|
35
|
-
@user_agent = "pingram-ruby/1.0.
|
|
35
|
+
@user_agent = "pingram-ruby/1.0.47"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|