mailslurp_client 7.0.8 → 7.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client.rb +12 -3
  3. metadata +11 -372
  4. data/Gemfile +0 -9
  5. data/LICENSE +0 -22
  6. data/Makefile +0 -3
  7. data/README.md +0 -239
  8. data/Rakefile +0 -10
  9. data/docs/AliasControllerApi.md +0 -337
  10. data/docs/AttachmentControllerApi.md +0 -126
  11. data/docs/AttachmentMetaData.md +0 -23
  12. data/docs/BasicAuthOptions.md +0 -19
  13. data/docs/BulkActionsControllerApi.md +0 -165
  14. data/docs/BulkSendEmailOptions.md +0 -19
  15. data/docs/CommonActionsControllerApi.md +0 -218
  16. data/docs/ContactControllerApi.md +0 -274
  17. data/docs/ContactDto.md +0 -31
  18. data/docs/ContactProjection.md +0 -27
  19. data/docs/CreateAnonymousAliasOptions.md +0 -17
  20. data/docs/CreateContactOptions.md +0 -31
  21. data/docs/CreateDomainOptions.md +0 -17
  22. data/docs/CreateGroupOptions.md +0 -19
  23. data/docs/CreateOwnedAliasOptions.md +0 -23
  24. data/docs/CreateTemplateOptions.md +0 -19
  25. data/docs/CreateWebhookOptions.md +0 -21
  26. data/docs/DomainControllerApi.md +0 -223
  27. data/docs/DomainDto.md +0 -29
  28. data/docs/DomainPreview.md +0 -21
  29. data/docs/Email.md +0 -49
  30. data/docs/EmailAnalysis.md +0 -25
  31. data/docs/EmailControllerApi.md +0 -740
  32. data/docs/EmailPreview.md +0 -31
  33. data/docs/EmailProjection.md +0 -33
  34. data/docs/FormControllerApi.md +0 -79
  35. data/docs/ForwardEmailOptions.md +0 -23
  36. data/docs/GroupContactsDto.md +0 -19
  37. data/docs/GroupControllerApi.md +0 -437
  38. data/docs/GroupDto.md +0 -23
  39. data/docs/GroupProjection.md +0 -23
  40. data/docs/HTMLValidationResult.md +0 -21
  41. data/docs/Inbox.md +0 -33
  42. data/docs/InboxControllerApi.md +0 -705
  43. data/docs/InboxProjection.md +0 -29
  44. data/docs/JsonNode.md +0 -59
  45. data/docs/MatchOption.md +0 -21
  46. data/docs/MatchOptions.md +0 -17
  47. data/docs/ModelAlias.md +0 -31
  48. data/docs/PageAlias.md +0 -37
  49. data/docs/PageContactProjection.md +0 -37
  50. data/docs/PageEmailPreview.md +0 -37
  51. data/docs/PageEmailProjection.md +0 -37
  52. data/docs/PageGroupProjection.md +0 -37
  53. data/docs/PageInboxProjection.md +0 -37
  54. data/docs/PageTemplateProjection.md +0 -37
  55. data/docs/PageWebhookProjection.md +0 -37
  56. data/docs/Pageable.md +0 -27
  57. data/docs/RawEmailJson.md +0 -17
  58. data/docs/SendEmailOptions.md +0 -45
  59. data/docs/SetInboxFavouritedOptions.md +0 -17
  60. data/docs/SimpleSendEmailOptions.md +0 -23
  61. data/docs/Sort.md +0 -21
  62. data/docs/TemplateControllerApi.md +0 -274
  63. data/docs/TemplateDto.md +0 -25
  64. data/docs/TemplateProjection.md +0 -25
  65. data/docs/TemplateVariable.md +0 -19
  66. data/docs/UnreadCount.md +0 -17
  67. data/docs/UpdateGroupContacts.md +0 -17
  68. data/docs/UpdateInboxOptions.md +0 -25
  69. data/docs/UploadAttachmentOptions.md +0 -21
  70. data/docs/ValidationDto.md +0 -19
  71. data/docs/ValidationMessage.md +0 -19
  72. data/docs/WaitForConditions.md +0 -29
  73. data/docs/WaitForControllerApi.md +0 -317
  74. data/docs/WebhookControllerApi.md +0 -339
  75. data/docs/WebhookDto.md +0 -33
  76. data/docs/WebhookProjection.md +0 -27
  77. data/docs/WebhookTestRequest.md +0 -23
  78. data/docs/WebhookTestResponse.md +0 -19
  79. data/docs/WebhookTestResult.md +0 -21
  80. data/git_push.sh +0 -58
  81. data/lib/mailslurp_client/api/alias_controller_api.rb +0 -405
  82. data/lib/mailslurp_client/api/attachment_controller_api.rb +0 -160
  83. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +0 -203
  84. data/lib/mailslurp_client/api/common_actions_controller_api.rb +0 -257
  85. data/lib/mailslurp_client/api/contact_controller_api.rb +0 -323
  86. data/lib/mailslurp_client/api/domain_controller_api.rb +0 -264
  87. data/lib/mailslurp_client/api/email_controller_api.rb +0 -852
  88. data/lib/mailslurp_client/api/form_controller_api.rb +0 -104
  89. data/lib/mailslurp_client/api/group_controller_api.rb +0 -519
  90. data/lib/mailslurp_client/api/inbox_controller_api.rb +0 -822
  91. data/lib/mailslurp_client/api/template_controller_api.rb +0 -323
  92. data/lib/mailslurp_client/api/wait_for_controller_api.rb +0 -359
  93. data/lib/mailslurp_client/api/webhook_controller_api.rb +0 -405
  94. data/lib/mailslurp_client/api_client.rb +0 -386
  95. data/lib/mailslurp_client/api_error.rb +0 -57
  96. data/lib/mailslurp_client/configuration.rb +0 -248
  97. data/lib/mailslurp_client/models/attachment_meta_data.rb +0 -238
  98. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -226
  99. data/lib/mailslurp_client/models/bulk_send_email_options.rb +0 -219
  100. data/lib/mailslurp_client/models/contact_dto.rb +0 -288
  101. data/lib/mailslurp_client/models/contact_projection.rb +0 -261
  102. data/lib/mailslurp_client/models/create_anonymous_alias_options.rb +0 -208
  103. data/lib/mailslurp_client/models/create_contact_options.rb +0 -277
  104. data/lib/mailslurp_client/models/create_domain_options.rb +0 -208
  105. data/lib/mailslurp_client/models/create_group_options.rb +0 -220
  106. data/lib/mailslurp_client/models/create_owned_alias_options.rb +0 -238
  107. data/lib/mailslurp_client/models/create_template_options.rb +0 -225
  108. data/lib/mailslurp_client/models/create_webhook_options.rb +0 -227
  109. data/lib/mailslurp_client/models/domain_dto.rb +0 -296
  110. data/lib/mailslurp_client/models/domain_preview.rb +0 -240
  111. data/lib/mailslurp_client/models/email.rb +0 -376
  112. data/lib/mailslurp_client/models/email_analysis.rb +0 -248
  113. data/lib/mailslurp_client/models/email_preview.rb +0 -286
  114. data/lib/mailslurp_client/models/email_projection.rb +0 -307
  115. data/lib/mailslurp_client/models/forward_email_options.rb +0 -244
  116. data/lib/mailslurp_client/models/group_contacts_dto.rb +0 -227
  117. data/lib/mailslurp_client/models/group_dto.rb +0 -248
  118. data/lib/mailslurp_client/models/group_projection.rb +0 -248
  119. data/lib/mailslurp_client/models/html_validation_result.rb +0 -243
  120. data/lib/mailslurp_client/models/inbox.rb +0 -290
  121. data/lib/mailslurp_client/models/inbox_projection.rb +0 -272
  122. data/lib/mailslurp_client/models/json_node.rb +0 -429
  123. data/lib/mailslurp_client/models/match_option.rb +0 -274
  124. data/lib/mailslurp_client/models/match_options.rb +0 -210
  125. data/lib/mailslurp_client/models/model_alias.rb +0 -284
  126. data/lib/mailslurp_client/models/page_alias.rb +0 -298
  127. data/lib/mailslurp_client/models/page_contact_projection.rb +0 -298
  128. data/lib/mailslurp_client/models/page_email_preview.rb +0 -298
  129. data/lib/mailslurp_client/models/page_email_projection.rb +0 -298
  130. data/lib/mailslurp_client/models/page_group_projection.rb +0 -298
  131. data/lib/mailslurp_client/models/page_inbox_projection.rb +0 -298
  132. data/lib/mailslurp_client/models/page_template_projection.rb +0 -298
  133. data/lib/mailslurp_client/models/page_webhook_projection.rb +0 -298
  134. data/lib/mailslurp_client/models/pageable.rb +0 -251
  135. data/lib/mailslurp_client/models/raw_email_json.rb +0 -211
  136. data/lib/mailslurp_client/models/send_email_options.rb +0 -392
  137. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +0 -208
  138. data/lib/mailslurp_client/models/simple_send_email_options.rb +0 -237
  139. data/lib/mailslurp_client/models/sort.rb +0 -224
  140. data/lib/mailslurp_client/models/template_dto.rb +0 -269
  141. data/lib/mailslurp_client/models/template_projection.rb +0 -269
  142. data/lib/mailslurp_client/models/template_variable.rb +0 -259
  143. data/lib/mailslurp_client/models/unread_count.rb +0 -211
  144. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -213
  145. data/lib/mailslurp_client/models/update_inbox_options.rb +0 -250
  146. data/lib/mailslurp_client/models/upload_attachment_options.rb +0 -228
  147. data/lib/mailslurp_client/models/validation_dto.rb +0 -217
  148. data/lib/mailslurp_client/models/validation_message.rb +0 -220
  149. data/lib/mailslurp_client/models/wait_for_conditions.rb +0 -316
  150. data/lib/mailslurp_client/models/webhook_dto.rb +0 -326
  151. data/lib/mailslurp_client/models/webhook_projection.rb +0 -277
  152. data/lib/mailslurp_client/models/webhook_test_request.rb +0 -284
  153. data/lib/mailslurp_client/models/webhook_test_response.rb +0 -215
  154. data/lib/mailslurp_client/models/webhook_test_result.rb +0 -235
  155. data/lib/mailslurp_client/version.rb +0 -15
  156. data/mailslurp_client.gemspec +0 -39
  157. data/spec/api/alias_controller_api_spec.rb +0 -107
  158. data/spec/api/attachment_controller_api_spec.rb +0 -61
  159. data/spec/api/bulk_actions_controller_api_spec.rb +0 -68
  160. data/spec/api/common_actions_controller_api_spec.rb +0 -129
  161. data/spec/api/contact_controller_api_spec.rb +0 -91
  162. data/spec/api/domain_controller_api_spec.rb +0 -82
  163. data/spec/api/email_controller_api_spec.rb +0 -162
  164. data/spec/api/form_controller_api_spec.rb +0 -54
  165. data/spec/api/group_controller_api_spec.rb +0 -126
  166. data/spec/api/inbox_controller_api_spec.rb +0 -172
  167. data/spec/api/template_controller_api_spec.rb +0 -91
  168. data/spec/api/wait_for_controller_api_spec.rb +0 -107
  169. data/spec/api/webhook_controller_api_spec.rb +0 -107
  170. data/spec/api_client_spec.rb +0 -226
  171. data/spec/configuration_spec.rb +0 -42
  172. data/spec/models/attachment_meta_data_spec.rb +0 -59
  173. data/spec/models/basic_auth_options_spec.rb +0 -47
  174. data/spec/models/bulk_send_email_options_spec.rb +0 -47
  175. data/spec/models/contact_dto_spec.rb +0 -83
  176. data/spec/models/contact_projection_spec.rb +0 -71
  177. data/spec/models/create_anonymous_alias_options_spec.rb +0 -41
  178. data/spec/models/create_contact_options_spec.rb +0 -83
  179. data/spec/models/create_domain_options_spec.rb +0 -41
  180. data/spec/models/create_group_options_spec.rb +0 -47
  181. data/spec/models/create_owned_alias_options_spec.rb +0 -59
  182. data/spec/models/create_template_options_spec.rb +0 -47
  183. data/spec/models/create_webhook_options_spec.rb +0 -53
  184. data/spec/models/domain_dto_spec.rb +0 -77
  185. data/spec/models/domain_preview_spec.rb +0 -53
  186. data/spec/models/email_analysis_spec.rb +0 -65
  187. data/spec/models/email_preview_spec.rb +0 -83
  188. data/spec/models/email_projection_spec.rb +0 -89
  189. data/spec/models/email_spec.rb +0 -137
  190. data/spec/models/forward_email_options_spec.rb +0 -59
  191. data/spec/models/group_contacts_dto_spec.rb +0 -47
  192. data/spec/models/group_dto_spec.rb +0 -59
  193. data/spec/models/group_projection_spec.rb +0 -59
  194. data/spec/models/html_validation_result_spec.rb +0 -53
  195. data/spec/models/inbox_projection_spec.rb +0 -77
  196. data/spec/models/inbox_spec.rb +0 -89
  197. data/spec/models/json_node_spec.rb +0 -171
  198. data/spec/models/match_option_spec.rb +0 -61
  199. data/spec/models/match_options_spec.rb +0 -41
  200. data/spec/models/model_alias_spec.rb +0 -83
  201. data/spec/models/page_alias_spec.rb +0 -101
  202. data/spec/models/page_contact_projection_spec.rb +0 -101
  203. data/spec/models/page_email_preview_spec.rb +0 -101
  204. data/spec/models/page_email_projection_spec.rb +0 -101
  205. data/spec/models/page_group_projection_spec.rb +0 -101
  206. data/spec/models/page_inbox_projection_spec.rb +0 -101
  207. data/spec/models/page_template_projection_spec.rb +0 -101
  208. data/spec/models/page_webhook_projection_spec.rb +0 -101
  209. data/spec/models/pageable_spec.rb +0 -71
  210. data/spec/models/raw_email_json_spec.rb +0 -41
  211. data/spec/models/send_email_options_spec.rb +0 -129
  212. data/spec/models/set_inbox_favourited_options_spec.rb +0 -41
  213. data/spec/models/simple_send_email_options_spec.rb +0 -59
  214. data/spec/models/sort_spec.rb +0 -53
  215. data/spec/models/template_dto_spec.rb +0 -65
  216. data/spec/models/template_projection_spec.rb +0 -65
  217. data/spec/models/template_variable_spec.rb +0 -51
  218. data/spec/models/unread_count_spec.rb +0 -41
  219. data/spec/models/update_group_contacts_spec.rb +0 -41
  220. data/spec/models/update_inbox_options_spec.rb +0 -65
  221. data/spec/models/upload_attachment_options_spec.rb +0 -53
  222. data/spec/models/validation_dto_spec.rb +0 -47
  223. data/spec/models/validation_message_spec.rb +0 -47
  224. data/spec/models/wait_for_conditions_spec.rb +0 -85
  225. data/spec/models/webhook_dto_spec.rb +0 -93
  226. data/spec/models/webhook_projection_spec.rb +0 -71
  227. data/spec/models/webhook_test_request_spec.rb +0 -63
  228. data/spec/models/webhook_test_response_spec.rb +0 -47
  229. data/spec/models/webhook_test_result_spec.rb +0 -53
  230. data/spec/spec_helper.rb +0 -111
@@ -1,31 +0,0 @@
1
- # MailSlurpClient::EmailPreview
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **attachments** | **Array<String>** | List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. | [optional]
8
- **bcc** | **Array<String>** | List of `BCC` recipients email was addressed to | [optional]
9
- **cc** | **Array<String>** | List of `CC` recipients email was addressed to | [optional]
10
- **created_at** | **DateTime** | When was the email received by MailSlurp | [optional]
11
- **id** | **String** | ID of the email | [optional]
12
- **read** | **Boolean** | Has the email been viewed ever | [optional]
13
- **subject** | **String** | The subject line of the email message | [optional]
14
- **to** | **Array<String>** | List of `To` recipients email was addressed to | [optional]
15
-
16
- ## Code Sample
17
-
18
- ```ruby
19
- require 'MailSlurpClient'
20
-
21
- instance = MailSlurpClient::EmailPreview.new(attachments: null,
22
- bcc: null,
23
- cc: null,
24
- created_at: null,
25
- id: null,
26
- read: null,
27
- subject: null,
28
- to: null)
29
- ```
30
-
31
-
@@ -1,33 +0,0 @@
1
- # MailSlurpClient::EmailProjection
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **attachments** | **Array<String>** | | [optional]
8
- **bcc** | **Array<String>** | | [optional]
9
- **cc** | **Array<String>** | | [optional]
10
- **created_at** | **DateTime** | |
11
- **id** | **String** | |
12
- **inbox_id** | **String** | |
13
- **read** | **Boolean** | | [optional]
14
- **subject** | **String** | | [optional]
15
- **to** | **Array<String>** | |
16
-
17
- ## Code Sample
18
-
19
- ```ruby
20
- require 'MailSlurpClient'
21
-
22
- instance = MailSlurpClient::EmailProjection.new(attachments: null,
23
- bcc: null,
24
- cc: null,
25
- created_at: null,
26
- id: null,
27
- inbox_id: null,
28
- read: null,
29
- subject: null,
30
- to: null)
31
- ```
32
-
33
-
@@ -1,79 +0,0 @@
1
- # MailSlurpClient::FormControllerApi
2
-
3
- All URIs are relative to *https://api.mailslurp.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**submit_form**](FormControllerApi.md#submit_form) | **POST** /forms | Submit a form to be parsed and sent as an email to an address determined by the form fields
8
-
9
-
10
-
11
- ## submit_form
12
-
13
- > String submit_form(opts)
14
-
15
- Submit a form to be parsed and sent as an email to an address determined by the form fields
16
-
17
- This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address or a `_toAlias` email alias ID to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://api.mailslurp.com/forms?_toAlias=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`.
18
-
19
- ### Example
20
-
21
- ```ruby
22
- # load the gem
23
- require 'mailslurp_client'
24
- # setup authorization
25
- MailSlurpClient.configure do |config|
26
- # Configure API key authorization: API_KEY
27
- config.api_key['x-api-key'] = 'YOUR API KEY'
28
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
- #config.api_key_prefix['x-api-key'] = 'Bearer'
30
- end
31
-
32
- api_instance = MailSlurpClient::FormControllerApi.new
33
- opts = {
34
- _email_address: '_email_address_example', # String | Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later.
35
- _redirect_to: '_redirect_to_example', # String | Optional URL to redirect form submitter to after submission. If not present user will see a success message.
36
- _spam_check: '_spam_check_example', # String | Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored.
37
- _subject: '_subject_example', # String | Optional subject of the email that will be sent.
38
- _success_message: '_success_message_example', # String | Optional success message to display if no _redirectTo present.
39
- _to: '_to_example', # String | The email address that submitted form should be sent to. Either this or _toAlias must be present for a form to be successfully submitted..
40
- _to_alias: '_to_alias_example', # String | ID of an email alias to that form should be sent to. Aliases must be created before submission and can be used to hide an email address and reduce spam.
41
- other_parameters: 'other_parameters_example' # String | All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent.
42
- }
43
-
44
- begin
45
- #Submit a form to be parsed and sent as an email to an address determined by the form fields
46
- result = api_instance.submit_form(opts)
47
- p result
48
- rescue MailSlurpClient::ApiError => e
49
- puts "Exception when calling FormControllerApi->submit_form: #{e}"
50
- end
51
- ```
52
-
53
- ### Parameters
54
-
55
-
56
- Name | Type | Description | Notes
57
- ------------- | ------------- | ------------- | -------------
58
- **_email_address** | **String**| Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. | [optional]
59
- **_redirect_to** | **String**| Optional URL to redirect form submitter to after submission. If not present user will see a success message. | [optional]
60
- **_spam_check** | **String**| Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. | [optional]
61
- **_subject** | **String**| Optional subject of the email that will be sent. | [optional]
62
- **_success_message** | **String**| Optional success message to display if no _redirectTo present. | [optional]
63
- **_to** | **String**| The email address that submitted form should be sent to. Either this or _toAlias must be present for a form to be successfully submitted.. | [optional]
64
- **_to_alias** | **String**| ID of an email alias to that form should be sent to. Aliases must be created before submission and can be used to hide an email address and reduce spam. | [optional]
65
- **other_parameters** | **String**| All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. | [optional]
66
-
67
- ### Return type
68
-
69
- **String**
70
-
71
- ### Authorization
72
-
73
- [API_KEY](../README.md#API_KEY)
74
-
75
- ### HTTP request headers
76
-
77
- - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
78
- - **Accept**: application/json
79
-
@@ -1,23 +0,0 @@
1
- # MailSlurpClient::ForwardEmailOptions
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **bcc** | **Array&lt;String&gt;** | Optional bcc recipients | [optional]
8
- **cc** | **Array&lt;String&gt;** | Optional cc recipients | [optional]
9
- **subject** | **String** | Subject for forwarded email | [optional]
10
- **to** | **Array&lt;String&gt;** | To recipients for forwarded email | [optional]
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'MailSlurpClient'
16
-
17
- instance = MailSlurpClient::ForwardEmailOptions.new(bcc: null,
18
- cc: null,
19
- subject: null,
20
- to: null)
21
- ```
22
-
23
-
@@ -1,19 +0,0 @@
1
- # MailSlurpClient::GroupContactsDto
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **contacts** | [**Array&lt;ContactDto&gt;**](ContactDto.md) | |
8
- **group** | [**GroupDto**](GroupDto.md) | |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'MailSlurpClient'
14
-
15
- instance = MailSlurpClient::GroupContactsDto.new(contacts: null,
16
- group: null)
17
- ```
18
-
19
-
@@ -1,437 +0,0 @@
1
- # MailSlurpClient::GroupControllerApi
2
-
3
- All URIs are relative to *https://api.mailslurp.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**add_contacts_to_group**](GroupControllerApi.md#add_contacts_to_group) | **PUT** /groups/{groupId}/contacts | Add contacts to a group
8
- [**create_group**](GroupControllerApi.md#create_group) | **POST** /groups | Create a group
9
- [**delete_group**](GroupControllerApi.md#delete_group) | **DELETE** /groups/{groupId} | Delete group
10
- [**get_all_groups**](GroupControllerApi.md#get_all_groups) | **GET** /groups/paginated | Get all Contact Groups in paginated format
11
- [**get_group**](GroupControllerApi.md#get_group) | **GET** /groups/{groupId} | Get group
12
- [**get_group_with_contacts**](GroupControllerApi.md#get_group_with_contacts) | **GET** /groups/{groupId}/contacts | Get group and contacts belonging to it
13
- [**get_groups**](GroupControllerApi.md#get_groups) | **GET** /groups | Get all groups
14
- [**remove_contacts_from_group**](GroupControllerApi.md#remove_contacts_from_group) | **DELETE** /groups/{groupId}/contacts | Remove contacts from a group
15
-
16
-
17
-
18
- ## add_contacts_to_group
19
-
20
- > GroupContactsDto add_contacts_to_group(group_id, update_group_contacts_option)
21
-
22
- Add contacts to a group
23
-
24
- ### Example
25
-
26
- ```ruby
27
- # load the gem
28
- require 'mailslurp_client'
29
- # setup authorization
30
- MailSlurpClient.configure do |config|
31
- # Configure API key authorization: API_KEY
32
- config.api_key['x-api-key'] = 'YOUR API KEY'
33
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
- #config.api_key_prefix['x-api-key'] = 'Bearer'
35
- end
36
-
37
- api_instance = MailSlurpClient::GroupControllerApi.new
38
- group_id = 'group_id_example' # String | groupId
39
- update_group_contacts_option = MailSlurpClient::UpdateGroupContacts.new # UpdateGroupContacts | updateGroupContactsOption
40
-
41
- begin
42
- #Add contacts to a group
43
- result = api_instance.add_contacts_to_group(group_id, update_group_contacts_option)
44
- p result
45
- rescue MailSlurpClient::ApiError => e
46
- puts "Exception when calling GroupControllerApi->add_contacts_to_group: #{e}"
47
- end
48
- ```
49
-
50
- ### Parameters
51
-
52
-
53
- Name | Type | Description | Notes
54
- ------------- | ------------- | ------------- | -------------
55
- **group_id** | [**String**](.md)| groupId |
56
- **update_group_contacts_option** | [**UpdateGroupContacts**](UpdateGroupContacts.md)| updateGroupContactsOption |
57
-
58
- ### Return type
59
-
60
- [**GroupContactsDto**](GroupContactsDto.md)
61
-
62
- ### Authorization
63
-
64
- [API_KEY](../README.md#API_KEY)
65
-
66
- ### HTTP request headers
67
-
68
- - **Content-Type**: application/json
69
- - **Accept**: application/json
70
-
71
-
72
- ## create_group
73
-
74
- > GroupDto create_group(create_group_options)
75
-
76
- Create a group
77
-
78
- ### Example
79
-
80
- ```ruby
81
- # load the gem
82
- require 'mailslurp_client'
83
- # setup authorization
84
- MailSlurpClient.configure do |config|
85
- # Configure API key authorization: API_KEY
86
- config.api_key['x-api-key'] = 'YOUR API KEY'
87
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
88
- #config.api_key_prefix['x-api-key'] = 'Bearer'
89
- end
90
-
91
- api_instance = MailSlurpClient::GroupControllerApi.new
92
- create_group_options = MailSlurpClient::CreateGroupOptions.new # CreateGroupOptions | createGroupOptions
93
-
94
- begin
95
- #Create a group
96
- result = api_instance.create_group(create_group_options)
97
- p result
98
- rescue MailSlurpClient::ApiError => e
99
- puts "Exception when calling GroupControllerApi->create_group: #{e}"
100
- end
101
- ```
102
-
103
- ### Parameters
104
-
105
-
106
- Name | Type | Description | Notes
107
- ------------- | ------------- | ------------- | -------------
108
- **create_group_options** | [**CreateGroupOptions**](CreateGroupOptions.md)| createGroupOptions |
109
-
110
- ### Return type
111
-
112
- [**GroupDto**](GroupDto.md)
113
-
114
- ### Authorization
115
-
116
- [API_KEY](../README.md#API_KEY)
117
-
118
- ### HTTP request headers
119
-
120
- - **Content-Type**: application/json
121
- - **Accept**: application/json
122
-
123
-
124
- ## delete_group
125
-
126
- > delete_group(group_id)
127
-
128
- Delete group
129
-
130
- ### Example
131
-
132
- ```ruby
133
- # load the gem
134
- require 'mailslurp_client'
135
- # setup authorization
136
- MailSlurpClient.configure do |config|
137
- # Configure API key authorization: API_KEY
138
- config.api_key['x-api-key'] = 'YOUR API KEY'
139
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
- #config.api_key_prefix['x-api-key'] = 'Bearer'
141
- end
142
-
143
- api_instance = MailSlurpClient::GroupControllerApi.new
144
- group_id = 'group_id_example' # String | groupId
145
-
146
- begin
147
- #Delete group
148
- api_instance.delete_group(group_id)
149
- rescue MailSlurpClient::ApiError => e
150
- puts "Exception when calling GroupControllerApi->delete_group: #{e}"
151
- end
152
- ```
153
-
154
- ### Parameters
155
-
156
-
157
- Name | Type | Description | Notes
158
- ------------- | ------------- | ------------- | -------------
159
- **group_id** | [**String**](.md)| groupId |
160
-
161
- ### Return type
162
-
163
- nil (empty response body)
164
-
165
- ### Authorization
166
-
167
- [API_KEY](../README.md#API_KEY)
168
-
169
- ### HTTP request headers
170
-
171
- - **Content-Type**: Not defined
172
- - **Accept**: Not defined
173
-
174
-
175
- ## get_all_groups
176
-
177
- > PageGroupProjection get_all_groups(opts)
178
-
179
- Get all Contact Groups in paginated format
180
-
181
- ### Example
182
-
183
- ```ruby
184
- # load the gem
185
- require 'mailslurp_client'
186
- # setup authorization
187
- MailSlurpClient.configure do |config|
188
- # Configure API key authorization: API_KEY
189
- config.api_key['x-api-key'] = 'YOUR API KEY'
190
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
191
- #config.api_key_prefix['x-api-key'] = 'Bearer'
192
- end
193
-
194
- api_instance = MailSlurpClient::GroupControllerApi.new
195
- opts = {
196
- page: 0, # Integer | Optional page index in inbox list pagination
197
- size: 20, # Integer | Optional page size in inbox list pagination
198
- sort: 'ASC' # String | Optional createdAt sort direction ASC or DESC
199
- }
200
-
201
- begin
202
- #Get all Contact Groups in paginated format
203
- result = api_instance.get_all_groups(opts)
204
- p result
205
- rescue MailSlurpClient::ApiError => e
206
- puts "Exception when calling GroupControllerApi->get_all_groups: #{e}"
207
- end
208
- ```
209
-
210
- ### Parameters
211
-
212
-
213
- Name | Type | Description | Notes
214
- ------------- | ------------- | ------------- | -------------
215
- **page** | **Integer**| Optional page index in inbox list pagination | [optional] [default to 0]
216
- **size** | **Integer**| Optional page size in inbox list pagination | [optional] [default to 20]
217
- **sort** | **String**| Optional createdAt sort direction ASC or DESC | [optional] [default to &#39;ASC&#39;]
218
-
219
- ### Return type
220
-
221
- [**PageGroupProjection**](PageGroupProjection.md)
222
-
223
- ### Authorization
224
-
225
- [API_KEY](../README.md#API_KEY)
226
-
227
- ### HTTP request headers
228
-
229
- - **Content-Type**: Not defined
230
- - **Accept**: application/json
231
-
232
-
233
- ## get_group
234
-
235
- > GroupDto get_group(group_id)
236
-
237
- Get group
238
-
239
- ### Example
240
-
241
- ```ruby
242
- # load the gem
243
- require 'mailslurp_client'
244
- # setup authorization
245
- MailSlurpClient.configure do |config|
246
- # Configure API key authorization: API_KEY
247
- config.api_key['x-api-key'] = 'YOUR API KEY'
248
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
249
- #config.api_key_prefix['x-api-key'] = 'Bearer'
250
- end
251
-
252
- api_instance = MailSlurpClient::GroupControllerApi.new
253
- group_id = 'group_id_example' # String | groupId
254
-
255
- begin
256
- #Get group
257
- result = api_instance.get_group(group_id)
258
- p result
259
- rescue MailSlurpClient::ApiError => e
260
- puts "Exception when calling GroupControllerApi->get_group: #{e}"
261
- end
262
- ```
263
-
264
- ### Parameters
265
-
266
-
267
- Name | Type | Description | Notes
268
- ------------- | ------------- | ------------- | -------------
269
- **group_id** | [**String**](.md)| groupId |
270
-
271
- ### Return type
272
-
273
- [**GroupDto**](GroupDto.md)
274
-
275
- ### Authorization
276
-
277
- [API_KEY](../README.md#API_KEY)
278
-
279
- ### HTTP request headers
280
-
281
- - **Content-Type**: Not defined
282
- - **Accept**: application/json
283
-
284
-
285
- ## get_group_with_contacts
286
-
287
- > GroupContactsDto get_group_with_contacts(group_id)
288
-
289
- Get group and contacts belonging to it
290
-
291
- ### Example
292
-
293
- ```ruby
294
- # load the gem
295
- require 'mailslurp_client'
296
- # setup authorization
297
- MailSlurpClient.configure do |config|
298
- # Configure API key authorization: API_KEY
299
- config.api_key['x-api-key'] = 'YOUR API KEY'
300
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
301
- #config.api_key_prefix['x-api-key'] = 'Bearer'
302
- end
303
-
304
- api_instance = MailSlurpClient::GroupControllerApi.new
305
- group_id = 'group_id_example' # String | groupId
306
-
307
- begin
308
- #Get group and contacts belonging to it
309
- result = api_instance.get_group_with_contacts(group_id)
310
- p result
311
- rescue MailSlurpClient::ApiError => e
312
- puts "Exception when calling GroupControllerApi->get_group_with_contacts: #{e}"
313
- end
314
- ```
315
-
316
- ### Parameters
317
-
318
-
319
- Name | Type | Description | Notes
320
- ------------- | ------------- | ------------- | -------------
321
- **group_id** | [**String**](.md)| groupId |
322
-
323
- ### Return type
324
-
325
- [**GroupContactsDto**](GroupContactsDto.md)
326
-
327
- ### Authorization
328
-
329
- [API_KEY](../README.md#API_KEY)
330
-
331
- ### HTTP request headers
332
-
333
- - **Content-Type**: Not defined
334
- - **Accept**: application/json
335
-
336
-
337
- ## get_groups
338
-
339
- > Array&lt;GroupProjection&gt; get_groups
340
-
341
- Get all groups
342
-
343
- ### Example
344
-
345
- ```ruby
346
- # load the gem
347
- require 'mailslurp_client'
348
- # setup authorization
349
- MailSlurpClient.configure do |config|
350
- # Configure API key authorization: API_KEY
351
- config.api_key['x-api-key'] = 'YOUR API KEY'
352
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
353
- #config.api_key_prefix['x-api-key'] = 'Bearer'
354
- end
355
-
356
- api_instance = MailSlurpClient::GroupControllerApi.new
357
-
358
- begin
359
- #Get all groups
360
- result = api_instance.get_groups
361
- p result
362
- rescue MailSlurpClient::ApiError => e
363
- puts "Exception when calling GroupControllerApi->get_groups: #{e}"
364
- end
365
- ```
366
-
367
- ### Parameters
368
-
369
- This endpoint does not need any parameter.
370
-
371
- ### Return type
372
-
373
- [**Array&lt;GroupProjection&gt;**](GroupProjection.md)
374
-
375
- ### Authorization
376
-
377
- [API_KEY](../README.md#API_KEY)
378
-
379
- ### HTTP request headers
380
-
381
- - **Content-Type**: Not defined
382
- - **Accept**: application/json
383
-
384
-
385
- ## remove_contacts_from_group
386
-
387
- > GroupContactsDto remove_contacts_from_group(group_id, update_group_contacts_option)
388
-
389
- Remove contacts from a group
390
-
391
- ### Example
392
-
393
- ```ruby
394
- # load the gem
395
- require 'mailslurp_client'
396
- # setup authorization
397
- MailSlurpClient.configure do |config|
398
- # Configure API key authorization: API_KEY
399
- config.api_key['x-api-key'] = 'YOUR API KEY'
400
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
401
- #config.api_key_prefix['x-api-key'] = 'Bearer'
402
- end
403
-
404
- api_instance = MailSlurpClient::GroupControllerApi.new
405
- group_id = 'group_id_example' # String | groupId
406
- update_group_contacts_option = MailSlurpClient::UpdateGroupContacts.new # UpdateGroupContacts | updateGroupContactsOption
407
-
408
- begin
409
- #Remove contacts from a group
410
- result = api_instance.remove_contacts_from_group(group_id, update_group_contacts_option)
411
- p result
412
- rescue MailSlurpClient::ApiError => e
413
- puts "Exception when calling GroupControllerApi->remove_contacts_from_group: #{e}"
414
- end
415
- ```
416
-
417
- ### Parameters
418
-
419
-
420
- Name | Type | Description | Notes
421
- ------------- | ------------- | ------------- | -------------
422
- **group_id** | [**String**](.md)| groupId |
423
- **update_group_contacts_option** | [**UpdateGroupContacts**](UpdateGroupContacts.md)| updateGroupContactsOption |
424
-
425
- ### Return type
426
-
427
- [**GroupContactsDto**](GroupContactsDto.md)
428
-
429
- ### Authorization
430
-
431
- [API_KEY](../README.md#API_KEY)
432
-
433
- ### HTTP request headers
434
-
435
- - **Content-Type**: application/json
436
- - **Accept**: application/json
437
-