hubspot-api-client 13.1.0 → 13.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +16 -16
- data/README.md +4 -2
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +2 -2
- data/lib/hubspot/codegen/cms/site-search/api/public_api.rb +1 -4
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +2 -2
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/{search_hit_field.rb → indexed_field.rb} +35 -35
- data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +23 -21
- data/lib/hubspot/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping.rb → collection_response_with_total_url_mapping_forward_paging.rb} +4 -6
- data/lib/hubspot/codegen/cms/url-redirects/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +14 -226
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +31 -31
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/files/files/api/files_api.rb +2 -2
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +3 -3
- data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +18 -14
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +10 -6
- data/lib/hubspot/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view.rb → collection_response_smtp_api_token_view_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +15 -15
- data/lib/hubspot/codegen/marketing/transactional/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +3 -13
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +22 -30
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/spec/codegen/cms/site-search/api/public_api_spec.rb +0 -1
- data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/{search_hit_field_spec.rb → indexed_field_spec.rb} +10 -10
- data/spec/codegen/cms/url-redirects/api/redirects_api_spec.rb +3 -5
- data/spec/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping_spec.rb → collection_response_with_total_url_mapping_forward_paging_spec.rb} +6 -6
- data/spec/codegen/cms/url-redirects/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/cms/url-redirects/models/url_mapping_create_request_body_spec.rb +10 -10
- data/spec/codegen/cms/url-redirects/models/url_mapping_spec.rb +2 -78
- data/spec/codegen/crm/contacts/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +14 -14
- data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +26 -26
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +17 -17
- data/spec/codegen/crm/objects/feedback_submissions/api/public_object_api_spec.rb +2 -2
- data/spec/codegen/crm/quotes/api/public_object_api_spec.rb +2 -2
- data/spec/codegen/marketing/transactional/api/public_smtp_tokens_api_spec.rb +2 -2
- data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +1 -1
- data/spec/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view_spec.rb → collection_response_smtp_api_token_view_forward_paging_spec.rb} +6 -6
- data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +7 -7
- data/spec/codegen/marketing/transactional/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +4 -4
- metadata +17 -17
@@ -16,12 +16,6 @@ module Hubspot
|
|
16
16
|
module Cms
|
17
17
|
module UrlRedirects
|
18
18
|
class UrlMappingCreateRequestBody
|
19
|
-
attr_accessor :route_prefix
|
20
|
-
|
21
|
-
attr_accessor :destination
|
22
|
-
|
23
|
-
attr_accessor :redirect_style
|
24
|
-
|
25
19
|
attr_accessor :precedence
|
26
20
|
|
27
21
|
attr_accessor :is_only_after_not_found
|
@@ -36,35 +30,41 @@ module Hubspot
|
|
36
30
|
|
37
31
|
attr_accessor :is_protocol_agnostic
|
38
32
|
|
33
|
+
attr_accessor :route_prefix
|
34
|
+
|
35
|
+
attr_accessor :destination
|
36
|
+
|
37
|
+
attr_accessor :redirect_style
|
38
|
+
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'route_prefix' => :'routePrefix',
|
43
|
-
:'destination' => :'destination',
|
44
|
-
:'redirect_style' => :'redirectStyle',
|
45
42
|
:'precedence' => :'precedence',
|
46
43
|
:'is_only_after_not_found' => :'isOnlyAfterNotFound',
|
47
44
|
:'is_match_full_url' => :'isMatchFullUrl',
|
48
45
|
:'is_match_query_string' => :'isMatchQueryString',
|
49
46
|
:'is_pattern' => :'isPattern',
|
50
47
|
:'is_trailing_slash_optional' => :'isTrailingSlashOptional',
|
51
|
-
:'is_protocol_agnostic' => :'isProtocolAgnostic'
|
48
|
+
:'is_protocol_agnostic' => :'isProtocolAgnostic',
|
49
|
+
:'route_prefix' => :'routePrefix',
|
50
|
+
:'destination' => :'destination',
|
51
|
+
:'redirect_style' => :'redirectStyle'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'route_prefix' => :'String',
|
59
|
-
:'destination' => :'String',
|
60
|
-
:'redirect_style' => :'Integer',
|
61
58
|
:'precedence' => :'Integer',
|
62
59
|
:'is_only_after_not_found' => :'Boolean',
|
63
60
|
:'is_match_full_url' => :'Boolean',
|
64
61
|
:'is_match_query_string' => :'Boolean',
|
65
62
|
:'is_pattern' => :'Boolean',
|
66
63
|
:'is_trailing_slash_optional' => :'Boolean',
|
67
|
-
:'is_protocol_agnostic' => :'Boolean'
|
64
|
+
:'is_protocol_agnostic' => :'Boolean',
|
65
|
+
:'route_prefix' => :'String',
|
66
|
+
:'destination' => :'String',
|
67
|
+
:'redirect_style' => :'Integer'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
@@ -89,18 +89,6 @@ module Hubspot
|
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
91
91
|
|
92
|
-
if attributes.key?(:'route_prefix')
|
93
|
-
self.route_prefix = attributes[:'route_prefix']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'destination')
|
97
|
-
self.destination = attributes[:'destination']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'redirect_style')
|
101
|
-
self.redirect_style = attributes[:'redirect_style']
|
102
|
-
end
|
103
|
-
|
104
92
|
if attributes.key?(:'precedence')
|
105
93
|
self.precedence = attributes[:'precedence']
|
106
94
|
end
|
@@ -128,6 +116,18 @@ module Hubspot
|
|
128
116
|
if attributes.key?(:'is_protocol_agnostic')
|
129
117
|
self.is_protocol_agnostic = attributes[:'is_protocol_agnostic']
|
130
118
|
end
|
119
|
+
|
120
|
+
if attributes.key?(:'route_prefix')
|
121
|
+
self.route_prefix = attributes[:'route_prefix']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'destination')
|
125
|
+
self.destination = attributes[:'destination']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'redirect_style')
|
129
|
+
self.redirect_style = attributes[:'redirect_style']
|
130
|
+
end
|
131
131
|
end
|
132
132
|
|
133
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -163,16 +163,16 @@ module Hubspot
|
|
163
163
|
def ==(o)
|
164
164
|
return true if self.equal?(o)
|
165
165
|
self.class == o.class &&
|
166
|
-
route_prefix == o.route_prefix &&
|
167
|
-
destination == o.destination &&
|
168
|
-
redirect_style == o.redirect_style &&
|
169
166
|
precedence == o.precedence &&
|
170
167
|
is_only_after_not_found == o.is_only_after_not_found &&
|
171
168
|
is_match_full_url == o.is_match_full_url &&
|
172
169
|
is_match_query_string == o.is_match_query_string &&
|
173
170
|
is_pattern == o.is_pattern &&
|
174
171
|
is_trailing_slash_optional == o.is_trailing_slash_optional &&
|
175
|
-
is_protocol_agnostic == o.is_protocol_agnostic
|
172
|
+
is_protocol_agnostic == o.is_protocol_agnostic &&
|
173
|
+
route_prefix == o.route_prefix &&
|
174
|
+
destination == o.destination &&
|
175
|
+
redirect_style == o.redirect_style
|
176
176
|
end
|
177
177
|
|
178
178
|
# @see the `==` method
|
@@ -184,7 +184,7 @@ module Hubspot
|
|
184
184
|
# Calculates hash code according to all attributes.
|
185
185
|
# @return [Integer] Hash code
|
186
186
|
def hash
|
187
|
-
[
|
187
|
+
[precedence, is_only_after_not_found, is_match_full_url, is_match_query_string, is_pattern, is_trailing_slash_optional, is_protocol_agnostic, route_prefix, destination, redirect_style].hash
|
188
188
|
end
|
189
189
|
|
190
190
|
# Builds the object from hash
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -205,7 +205,7 @@ module Hubspot
|
|
205
205
|
|
206
206
|
# query parameters
|
207
207
|
query_params = opts[:query_params] || {}
|
208
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
208
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
209
209
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
210
210
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
211
211
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -286,7 +286,7 @@ module Hubspot
|
|
286
286
|
query_params = opts[:query_params] || {}
|
287
287
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
288
288
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
289
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
289
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
290
290
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
291
291
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
292
292
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -188,7 +188,7 @@ module Hubspot
|
|
188
188
|
|
189
189
|
# query parameters
|
190
190
|
query_params = opts[:query_params] || {}
|
191
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
191
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
192
192
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
193
193
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
194
194
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -263,7 +263,7 @@ module Hubspot
|
|
263
263
|
query_params = opts[:query_params] || {}
|
264
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
265
265
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
266
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
266
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
267
267
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
268
268
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
269
269
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -187,7 +187,7 @@ module Hubspot
|
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
190
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
190
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
191
191
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
192
192
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
193
193
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -262,7 +262,7 @@ module Hubspot
|
|
262
262
|
query_params = opts[:query_params] || {}
|
263
263
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
264
264
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
265
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
266
266
|
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
267
267
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
268
268
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
@@ -287,7 +287,7 @@ module Hubspot
|
|
287
287
|
|
288
288
|
# query parameters
|
289
289
|
query_params = opts[:query_params] || {}
|
290
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
290
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
291
291
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
292
292
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
293
293
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -380,7 +380,7 @@ module Hubspot
|
|
380
380
|
|
381
381
|
# query parameters
|
382
382
|
query_params = opts[:query_params] || {}
|
383
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
383
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
384
384
|
|
385
385
|
# header parameters
|
386
386
|
header_params = opts[:header_params] || {}
|
@@ -333,7 +333,7 @@ module Hubspot
|
|
333
333
|
|
334
334
|
# query parameters
|
335
335
|
query_params = opts[:query_params] || {}
|
336
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
336
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
337
337
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
338
338
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
339
339
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -417,7 +417,7 @@ module Hubspot
|
|
417
417
|
|
418
418
|
# query parameters
|
419
419
|
query_params = opts[:query_params] || {}
|
420
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
420
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
421
421
|
|
422
422
|
# header parameters
|
423
423
|
header_params = opts[:header_params] || {}
|
@@ -487,7 +487,7 @@ module Hubspot
|
|
487
487
|
|
488
488
|
# query parameters
|
489
489
|
query_params = opts[:query_params] || {}
|
490
|
-
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :
|
490
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
491
491
|
|
492
492
|
# header parameters
|
493
493
|
header_params = opts[:header_params] || {}
|
@@ -65,7 +65,7 @@ module Hubspot
|
|
65
65
|
return_type = opts[:return_type]
|
66
66
|
|
67
67
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
68
|
+
auth_names = opts[:auth_names] || ['oauth2']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
71
|
:header_params => header_params,
|
@@ -85,23 +85,27 @@ module Hubspot
|
|
85
85
|
|
86
86
|
# Create a SMTP API token.
|
87
87
|
# Create a SMTP API token.
|
88
|
+
# @param smtp_api_token_request_egg [SmtpApiTokenRequestEgg] A request object that includes the campaign name tied to the token and whether contacts should be created for email recipients.
|
88
89
|
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [SmtpApiTokenRequestEgg] :smtp_api_token_request_egg A request object that includes the campaign name tied to the token and whether contacts should be created for recipients of emails.
|
90
90
|
# @return [SmtpApiTokenView]
|
91
|
-
def create_token(opts = {})
|
92
|
-
data, _status_code, _headers = create_token_with_http_info(opts)
|
91
|
+
def create_token(smtp_api_token_request_egg, opts = {})
|
92
|
+
data, _status_code, _headers = create_token_with_http_info(smtp_api_token_request_egg, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
96
96
|
# Create a SMTP API token.
|
97
97
|
# Create a SMTP API token.
|
98
|
+
# @param smtp_api_token_request_egg [SmtpApiTokenRequestEgg] A request object that includes the campaign name tied to the token and whether contacts should be created for email recipients.
|
98
99
|
# @param [Hash] opts the optional parameters
|
99
|
-
# @option opts [SmtpApiTokenRequestEgg] :smtp_api_token_request_egg A request object that includes the campaign name tied to the token and whether contacts should be created for recipients of emails.
|
100
100
|
# @return [Array<(SmtpApiTokenView, Integer, Hash)>] SmtpApiTokenView data, response status code and response headers
|
101
|
-
def create_token_with_http_info(opts = {})
|
101
|
+
def create_token_with_http_info(smtp_api_token_request_egg, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.create_token ...'
|
104
104
|
end
|
105
|
+
# verify the required parameter 'smtp_api_token_request_egg' is set
|
106
|
+
if @api_client.config.client_side_validation && smtp_api_token_request_egg.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'smtp_api_token_request_egg' when calling PublicSmtpTokensApi.create_token"
|
108
|
+
end
|
105
109
|
# resource path
|
106
110
|
local_var_path = '/marketing/v3/transactional/smtp-tokens'
|
107
111
|
|
@@ -119,13 +123,13 @@ module Hubspot
|
|
119
123
|
form_params = opts[:form_params] || {}
|
120
124
|
|
121
125
|
# http body (model)
|
122
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
126
|
+
post_body = opts[:body] || @api_client.object_to_http_body(smtp_api_token_request_egg)
|
123
127
|
|
124
128
|
# return_type
|
125
129
|
return_type = opts[:return_type] || 'SmtpApiTokenView'
|
126
130
|
|
127
131
|
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['
|
132
|
+
auth_names = opts[:auth_names] || ['oauth2']
|
129
133
|
|
130
134
|
new_options = opts.merge(
|
131
135
|
:header_params => header_params,
|
@@ -187,7 +191,7 @@ module Hubspot
|
|
187
191
|
return_type = opts[:return_type] || 'SmtpApiTokenView'
|
188
192
|
|
189
193
|
# auth_names
|
190
|
-
auth_names = opts[:auth_names] || ['
|
194
|
+
auth_names = opts[:auth_names] || ['oauth2']
|
191
195
|
|
192
196
|
new_options = opts.merge(
|
193
197
|
:header_params => header_params,
|
@@ -212,7 +216,7 @@ module Hubspot
|
|
212
216
|
# @option opts [String] :email_campaign_id Identifier assigned to the campaign provided during the token creation.
|
213
217
|
# @option opts [String] :after Starting point to get the next set of results.
|
214
218
|
# @option opts [Integer] :limit Maximum number of tokens to return.
|
215
|
-
# @return [
|
219
|
+
# @return [CollectionResponseSmtpApiTokenViewForwardPaging]
|
216
220
|
def get_tokens_page(opts = {})
|
217
221
|
data, _status_code, _headers = get_tokens_page_with_http_info(opts)
|
218
222
|
data
|
@@ -225,7 +229,7 @@ module Hubspot
|
|
225
229
|
# @option opts [String] :email_campaign_id Identifier assigned to the campaign provided during the token creation.
|
226
230
|
# @option opts [String] :after Starting point to get the next set of results.
|
227
231
|
# @option opts [Integer] :limit Maximum number of tokens to return.
|
228
|
-
# @return [Array<(
|
232
|
+
# @return [Array<(CollectionResponseSmtpApiTokenViewForwardPaging, Integer, Hash)>] CollectionResponseSmtpApiTokenViewForwardPaging data, response status code and response headers
|
229
233
|
def get_tokens_page_with_http_info(opts = {})
|
230
234
|
if @api_client.config.debugging
|
231
235
|
@api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.get_tokens_page ...'
|
@@ -252,10 +256,10 @@ module Hubspot
|
|
252
256
|
post_body = opts[:body]
|
253
257
|
|
254
258
|
# return_type
|
255
|
-
return_type = opts[:return_type] || '
|
259
|
+
return_type = opts[:return_type] || 'CollectionResponseSmtpApiTokenViewForwardPaging'
|
256
260
|
|
257
261
|
# auth_names
|
258
|
-
auth_names = opts[:auth_names] || ['
|
262
|
+
auth_names = opts[:auth_names] || ['oauth2']
|
259
263
|
|
260
264
|
new_options = opts.merge(
|
261
265
|
:header_params => header_params,
|
@@ -317,7 +321,7 @@ module Hubspot
|
|
317
321
|
return_type = opts[:return_type] || 'SmtpApiTokenView'
|
318
322
|
|
319
323
|
# auth_names
|
320
|
-
auth_names = opts[:auth_names] || ['
|
324
|
+
auth_names = opts[:auth_names] || ['oauth2']
|
321
325
|
|
322
326
|
new_options = opts.merge(
|
323
327
|
:header_params => header_params,
|
@@ -23,23 +23,27 @@ module Hubspot
|
|
23
23
|
end
|
24
24
|
# Send a single transactional email asynchronously.
|
25
25
|
# Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
|
26
|
+
# @param public_single_send_request_egg [PublicSingleSendRequestEgg] A request object describing the email to send.
|
26
27
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
|
28
28
|
# @return [EmailSendStatusView]
|
29
|
-
def send_email(opts = {})
|
30
|
-
data, _status_code, _headers = send_email_with_http_info(opts)
|
29
|
+
def send_email(public_single_send_request_egg, opts = {})
|
30
|
+
data, _status_code, _headers = send_email_with_http_info(public_single_send_request_egg, opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
34
|
# Send a single transactional email asynchronously.
|
35
35
|
# Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
|
36
|
+
# @param public_single_send_request_egg [PublicSingleSendRequestEgg] A request object describing the email to send.
|
36
37
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
|
38
38
|
# @return [Array<(EmailSendStatusView, Integer, Hash)>] EmailSendStatusView data, response status code and response headers
|
39
|
-
def send_email_with_http_info(opts = {})
|
39
|
+
def send_email_with_http_info(public_single_send_request_egg, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: SingleSendApi.send_email ...'
|
42
42
|
end
|
43
|
+
# verify the required parameter 'public_single_send_request_egg' is set
|
44
|
+
if @api_client.config.client_side_validation && public_single_send_request_egg.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'public_single_send_request_egg' when calling SingleSendApi.send_email"
|
46
|
+
end
|
43
47
|
# resource path
|
44
48
|
local_var_path = '/marketing/v3/transactional/single-email/send'
|
45
49
|
|
@@ -57,7 +61,7 @@ module Hubspot
|
|
57
61
|
form_params = opts[:form_params] || {}
|
58
62
|
|
59
63
|
# http body (model)
|
60
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
64
|
+
post_body = opts[:body] || @api_client.object_to_http_body(public_single_send_request_egg)
|
61
65
|
|
62
66
|
# return_type
|
63
67
|
return_type = opts[:return_type] || 'EmailSendStatusView'
|