Class: MailSlurpClient::SentEmailsControllerApi
- Inherits:
-
Object
- Object
- MailSlurpClient::SentEmailsControllerApi
- Defined in:
- lib/mailslurp_client/api/sent_emails_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_all_sent_emails(opts = {}) ⇒ nil
Delete all sent email receipts.
-
#delete_all_sent_emails_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete all sent email receipts.
-
#delete_sent_email(id, opts = {}) ⇒ nil
Delete sent email receipt.
-
#delete_sent_email_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete sent email receipt.
-
#get_all_sent_tracking_pixels(opts = {}) ⇒ PageTrackingPixelProjection
Get all sent email tracking pixels in paginated form.
-
#get_all_sent_tracking_pixels_with_http_info(opts = {}) ⇒ Array<(PageTrackingPixelProjection, Integer, Hash)>
Get all sent email tracking pixels in paginated form.
-
#get_raw_sent_email_contents(email_id, opts = {}) ⇒ nil
Get raw sent email string.
-
#get_raw_sent_email_contents_with_http_info(email_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Get raw sent email string.
-
#get_raw_sent_email_json(email_id, opts = {}) ⇒ RawEmailJson
Get raw sent email in JSON.
-
#get_raw_sent_email_json_with_http_info(email_id, opts = {}) ⇒ Array<(RawEmailJson, Integer, Hash)>
Get raw sent email in JSON.
-
#get_sent_delivery_status(delivery_id, opts = {}) ⇒ DeliveryStatusDto
Get a sent email delivery status.
-
#get_sent_delivery_status_with_http_info(delivery_id, opts = {}) ⇒ Array<(DeliveryStatusDto, Integer, Hash)>
Get a sent email delivery status.
-
#get_sent_delivery_statuses(opts = {}) ⇒ PageDeliveryStatus
Get all sent email delivery statuses.
-
#get_sent_delivery_statuses_by_sent_id(sent_id, opts = {}) ⇒ PageDeliveryStatus
Get all sent email delivery statuses.
-
#get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts = {}) ⇒ Array<(PageDeliveryStatus, Integer, Hash)>
Get all sent email delivery statuses.
-
#get_sent_delivery_statuses_with_http_info(opts = {}) ⇒ Array<(PageDeliveryStatus, Integer, Hash)>
Get all sent email delivery statuses.
-
#get_sent_email(id, opts = {}) ⇒ SentEmailDto
Get sent email receipt.
-
#get_sent_email_html_content(id, opts = {}) ⇒ String
Get sent email HTML content.
-
#get_sent_email_html_content_with_http_info(id, opts = {}) ⇒ Array<(String, Integer, Hash)>
Get sent email HTML content.
-
#get_sent_email_preview_ur_ls(id, opts = {}) ⇒ EmailPreviewUrls
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
-
#get_sent_email_preview_ur_ls_with_http_info(id, opts = {}) ⇒ Array<(EmailPreviewUrls, Integer, Hash)>
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
-
#get_sent_email_tracking_pixels(id, opts = {}) ⇒ PageTrackingPixelProjection
Get all tracking pixels for a sent email in paginated form.
-
#get_sent_email_tracking_pixels_with_http_info(id, opts = {}) ⇒ Array<(PageTrackingPixelProjection, Integer, Hash)>
Get all tracking pixels for a sent email in paginated form.
-
#get_sent_email_with_http_info(id, opts = {}) ⇒ Array<(SentEmailDto, Integer, Hash)>
Get sent email receipt.
-
#get_sent_emails(opts = {}) ⇒ PageSentEmailProjection
Get all sent emails in paginated form.
-
#get_sent_emails_with_http_info(opts = {}) ⇒ Array<(PageSentEmailProjection, Integer, Hash)>
Get all sent emails in paginated form.
-
#get_sent_emails_with_queue_results(opts = {}) ⇒ PageSentEmailWithQueueProjection
Get results of email sent with queues in paginated form.
-
#get_sent_emails_with_queue_results_with_http_info(opts = {}) ⇒ Array<(PageSentEmailWithQueueProjection, Integer, Hash)>
Get results of email sent with queues in paginated form.
-
#get_sent_organization_emails(opts = {}) ⇒ PageSentEmailProjection
Get all sent organization emails in paginated form.
-
#get_sent_organization_emails_with_http_info(opts = {}) ⇒ Array<(PageSentEmailProjection, Integer, Hash)>
Get all sent organization emails in paginated form.
-
#initialize(api_client = ApiClient.default) ⇒ SentEmailsControllerApi
constructor
A new instance of SentEmailsControllerApi.
-
#wait_for_delivery_statuses(opts = {}) ⇒ DeliveryStatusDto
Wait for delivery statuses.
-
#wait_for_delivery_statuses_with_http_info(opts = {}) ⇒ Array<(DeliveryStatusDto, Integer, Hash)>
Wait for delivery statuses.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ SentEmailsControllerApi
Returns a new instance of SentEmailsControllerApi.
19 20 21 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#delete_all_sent_emails(opts = {}) ⇒ nil
Delete all sent email receipts
25 26 27 28 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 25 def delete_all_sent_emails(opts = {}) delete_all_sent_emails_with_http_info(opts) nil end |
#delete_all_sent_emails_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete all sent email receipts
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 33 def delete_all_sent_emails_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.delete_all_sent_emails ...' end # resource path local_var_path = '/sent' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#delete_all_sent_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_sent_email(id, opts = {}) ⇒ nil
Delete sent email receipt
78 79 80 81 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 78 def delete_sent_email(id, opts = {}) delete_sent_email_with_http_info(id, opts) nil end |
#delete_sent_email_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete sent email receipt
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 87 def delete_sent_email_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.delete_sent_email ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.delete_sent_email" end # resource path local_var_path = '/sent/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#delete_sent_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_sent_tracking_pixels(opts = {}) ⇒ PageTrackingPixelProjection
Get all sent email tracking pixels in paginated form
141 142 143 144 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 141 def get_all_sent_tracking_pixels(opts = {}) data, _status_code, _headers = get_all_sent_tracking_pixels_with_http_info(opts) data end |
#get_all_sent_tracking_pixels_with_http_info(opts = {}) ⇒ Array<(PageTrackingPixelProjection, Integer, Hash)>
Get all sent email tracking pixels in paginated form
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 155 def get_all_sent_tracking_pixels_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_all_sent_tracking_pixels ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/tracking-pixels' # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageTrackingPixelProjection' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_all_sent_tracking_pixels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_raw_sent_email_contents(email_id, opts = {}) ⇒ nil
Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint
213 214 215 216 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 213 def get_raw_sent_email_contents(email_id, opts = {}) get_raw_sent_email_contents_with_http_info(email_id, opts) nil end |
#get_raw_sent_email_contents_with_http_info(email_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 223 def get_raw_sent_email_contents_with_http_info(email_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_raw_sent_email_contents ...' end # verify the required parameter 'email_id' is set if @api_client.config.client_side_validation && email_id.nil? fail ArgumentError, "Missing the required parameter 'email_id' when calling SentEmailsControllerApi.get_raw_sent_email_contents" end # resource path local_var_path = '/sent/{emailId}/raw'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_raw_sent_email_contents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_raw_sent_email_json(email_id, opts = {}) ⇒ RawEmailJson
Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
273 274 275 276 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 273 def get_raw_sent_email_json(email_id, opts = {}) data, _status_code, _headers = get_raw_sent_email_json_with_http_info(email_id, opts) data end |
#get_raw_sent_email_json_with_http_info(email_id, opts = {}) ⇒ Array<(RawEmailJson, Integer, Hash)>
Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 283 def get_raw_sent_email_json_with_http_info(email_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_raw_sent_email_json ...' end # verify the required parameter 'email_id' is set if @api_client.config.client_side_validation && email_id.nil? fail ArgumentError, "Missing the required parameter 'email_id' when calling SentEmailsControllerApi.get_raw_sent_email_json" end # resource path local_var_path = '/sent/{emailId}/raw/json'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'RawEmailJson' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_raw_sent_email_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_delivery_status(delivery_id, opts = {}) ⇒ DeliveryStatusDto
Get a sent email delivery status
334 335 336 337 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 334 def get_sent_delivery_status(delivery_id, opts = {}) data, _status_code, _headers = get_sent_delivery_status_with_http_info(delivery_id, opts) data end |
#get_sent_delivery_status_with_http_info(delivery_id, opts = {}) ⇒ Array<(DeliveryStatusDto, Integer, Hash)>
Get a sent email delivery status
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 343 def get_sent_delivery_status_with_http_info(delivery_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_status ...' end # verify the required parameter 'delivery_id' is set if @api_client.config.client_side_validation && delivery_id.nil? fail ArgumentError, "Missing the required parameter 'delivery_id' when calling SentEmailsControllerApi.get_sent_delivery_status" end # resource path local_var_path = '/sent/delivery-status/{deliveryId}'.sub('{' + 'deliveryId' + '}', CGI.escape(delivery_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'DeliveryStatusDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_delivery_statuses(opts = {}) ⇒ PageDeliveryStatus
Get all sent email delivery statuses
398 399 400 401 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 398 def get_sent_delivery_statuses(opts = {}) data, _status_code, _headers = get_sent_delivery_statuses_with_http_info(opts) data end |
#get_sent_delivery_statuses_by_sent_id(sent_id, opts = {}) ⇒ PageDeliveryStatus
Get all sent email delivery statuses
472 473 474 475 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 472 def get_sent_delivery_statuses_by_sent_id(sent_id, opts = {}) data, _status_code, _headers = get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts) data end |
#get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts = {}) ⇒ Array<(PageDeliveryStatus, Integer, Hash)>
Get all sent email delivery statuses
486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 486 def get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_statuses_by_sent_id ...' end # verify the required parameter 'sent_id' is set if @api_client.config.client_side_validation && sent_id.nil? fail ArgumentError, "Missing the required parameter 'sent_id' when calling SentEmailsControllerApi.get_sent_delivery_statuses_by_sent_id" end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/{sentId}/delivery-status'.sub('{' + 'sentId' + '}', CGI.escape(sent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageDeliveryStatus' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_statuses_by_sent_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_delivery_statuses_with_http_info(opts = {}) ⇒ Array<(PageDeliveryStatus, Integer, Hash)>
Get all sent email delivery statuses
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 411 def get_sent_delivery_statuses_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_statuses ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/delivery-status' # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageDeliveryStatus' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_email(id, opts = {}) ⇒ SentEmailDto
Get sent email receipt
546 547 548 549 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 546 def get_sent_email(id, opts = {}) data, _status_code, _headers = get_sent_email_with_http_info(id, opts) data end |
#get_sent_email_html_content(id, opts = {}) ⇒ String
Get sent email HTML content
606 607 608 609 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 606 def get_sent_email_html_content(id, opts = {}) data, _status_code, _headers = get_sent_email_html_content_with_http_info(id, opts) data end |
#get_sent_email_html_content_with_http_info(id, opts = {}) ⇒ Array<(String, Integer, Hash)>
Get sent email HTML content
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 615 def get_sent_email_html_content_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_email_html_content ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.get_sent_email_html_content" end # resource path local_var_path = '/sent/{id}/html'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/html']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'String' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_email_html_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_email_preview_ur_ls(id, opts = {}) ⇒ EmailPreviewUrls
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
667 668 669 670 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 667 def get_sent_email_preview_ur_ls(id, opts = {}) data, _status_code, _headers = get_sent_email_preview_ur_ls_with_http_info(id, opts) data end |
#get_sent_email_preview_ur_ls_with_http_info(id, opts = {}) ⇒ Array<(EmailPreviewUrls, Integer, Hash)>
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 677 def get_sent_email_preview_ur_ls_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_email_preview_ur_ls ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.get_sent_email_preview_ur_ls" end # resource path local_var_path = '/sent/{id}/urls'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'EmailPreviewUrls' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_email_preview_ur_ls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_email_tracking_pixels(id, opts = {}) ⇒ PageTrackingPixelProjection
Get all tracking pixels for a sent email in paginated form
734 735 736 737 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 734 def get_sent_email_tracking_pixels(id, opts = {}) data, _status_code, _headers = get_sent_email_tracking_pixels_with_http_info(id, opts) data end |
#get_sent_email_tracking_pixels_with_http_info(id, opts = {}) ⇒ Array<(PageTrackingPixelProjection, Integer, Hash)>
Get all tracking pixels for a sent email in paginated form
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 749 def get_sent_email_tracking_pixels_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_email_tracking_pixels ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.get_sent_email_tracking_pixels" end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/{id}/tracking-pixels'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageTrackingPixelProjection' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_email_tracking_pixels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_email_with_http_info(id, opts = {}) ⇒ Array<(SentEmailDto, Integer, Hash)>
Get sent email receipt
555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 555 def get_sent_email_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_email ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.get_sent_email" end # resource path local_var_path = '/sent/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SentEmailDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_emails(opts = {}) ⇒ PageSentEmailProjection
Get all sent emails in paginated form
816 817 818 819 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 816 def get_sent_emails(opts = {}) data, _status_code, _headers = get_sent_emails_with_http_info(opts) data end |
#get_sent_emails_with_http_info(opts = {}) ⇒ Array<(PageSentEmailProjection, Integer, Hash)>
Get all sent emails in paginated form
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 831 def get_sent_emails_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_emails ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageSentEmailProjection' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_emails_with_queue_results(opts = {}) ⇒ PageSentEmailWithQueueProjection
Get results of email sent with queues in paginated form
893 894 895 896 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 893 def get_sent_emails_with_queue_results(opts = {}) data, _status_code, _headers = get_sent_emails_with_queue_results_with_http_info(opts) data end |
#get_sent_emails_with_queue_results_with_http_info(opts = {}) ⇒ Array<(PageSentEmailWithQueueProjection, Integer, Hash)>
Get results of email sent with queues in paginated form
906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 906 def get_sent_emails_with_queue_results_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_emails_with_queue_results ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/queue-results' # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageSentEmailWithQueueProjection' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_emails_with_queue_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_sent_organization_emails(opts = {}) ⇒ PageSentEmailProjection
Get all sent organization emails in paginated form
968 969 970 971 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 968 def get_sent_organization_emails(opts = {}) data, _status_code, _headers = get_sent_organization_emails_with_http_info(opts) data end |
#get_sent_organization_emails_with_http_info(opts = {}) ⇒ Array<(PageSentEmailProjection, Integer, Hash)>
Get all sent organization emails in paginated form
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 983 def get_sent_organization_emails_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_organization_emails ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/sent/organization' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageSentEmailProjection' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_organization_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#wait_for_delivery_statuses(opts = {}) ⇒ DeliveryStatusDto
Wait for delivery statuses
1046 1047 1048 1049 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 1046 def wait_for_delivery_statuses(opts = {}) data, _status_code, _headers = wait_for_delivery_statuses_with_http_info(opts) data end |
#wait_for_delivery_statuses_with_http_info(opts = {}) ⇒ Array<(DeliveryStatusDto, Integer, Hash)>
Wait for delivery statuses
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/mailslurp_client/api/sent_emails_controller_api.rb', line 1060 def wait_for_delivery_statuses_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.wait_for_delivery_statuses ...' end if @api_client.config.client_side_validation && !opts[:'index'].nil? && opts[:'index'] > 2147483647 fail ArgumentError, 'invalid value for "opts[:"index"]" when calling SentEmailsControllerApi.wait_for_delivery_statuses, must be smaller than or equal to 2147483647.' end if @api_client.config.client_side_validation && !opts[:'index'].nil? && opts[:'index'] < 0 fail ArgumentError, 'invalid value for "opts[:"index"]" when calling SentEmailsControllerApi.wait_for_delivery_statuses, must be greater than or equal to 0.' end # resource path local_var_path = '/sent/delivery-status/wait-for' # query parameters query_params = opts[:query_params] || {} query_params[:'sentId'] = opts[:'sent_id'] if !opts[:'sent_id'].nil? query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? query_params[:'timeout'] = opts[:'timeout'] if !opts[:'timeout'].nil? query_params[:'index'] = opts[:'index'] if !opts[:'index'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'DeliveryStatusDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SentEmailsControllerApi#wait_for_delivery_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |