mailslurp_client 15.21.0 → 16.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,81 +0,0 @@
1
- =begin
2
- #MailSlurp API
3
-
4
- #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
-
6
- The version of the OpenAPI document: 6.5.2
7
- Contact: contact@mailslurp.dev
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module MailSlurpClient
16
- class SseControllerApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # @param x_api_key [String]
23
- # @param [Hash] opts the optional parameters
24
- # @return [Array<String>]
25
- def stream_events(x_api_key, opts = {})
26
- data, _status_code, _headers = stream_events_with_http_info(x_api_key, opts)
27
- data
28
- end
29
-
30
- # @param x_api_key [String]
31
- # @param [Hash] opts the optional parameters
32
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
33
- def stream_events_with_http_info(x_api_key, opts = {})
34
- if @api_client.config.debugging
35
- @api_client.config.logger.debug 'Calling API: SseControllerApi.stream_events ...'
36
- end
37
- # verify the required parameter 'x_api_key' is set
38
- if @api_client.config.client_side_validation && x_api_key.nil?
39
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling SseControllerApi.stream_events"
40
- end
41
- # resource path
42
- local_var_path = '/sse'
43
-
44
- # query parameters
45
- query_params = opts[:query_params] || {}
46
-
47
- # header parameters
48
- header_params = opts[:header_params] || {}
49
- # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['text/event-stream'])
51
- header_params[:'x-api-key'] = x_api_key
52
-
53
- # form parameters
54
- form_params = opts[:form_params] || {}
55
-
56
- # http body (model)
57
- post_body = opts[:body]
58
-
59
- # return_type
60
- return_type = opts[:return_type] || 'Array<String>'
61
-
62
- # auth_names
63
- auth_names = opts[:auth_names] || ['API_KEY']
64
-
65
- new_options = opts.merge(
66
- :header_params => header_params,
67
- :query_params => query_params,
68
- :form_params => form_params,
69
- :body => post_body,
70
- :auth_names => auth_names,
71
- :return_type => return_type
72
- )
73
-
74
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
75
- if @api_client.config.debugging
76
- @api_client.config.logger.debug "API called: SseControllerApi#stream_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
- end
78
- return data, status_code, headers
79
- end
80
- end
81
- end