mailslurp_client 5.0.0 → 7.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +127 -40
- data/docs/AttachmentControllerApi.md +124 -0
- data/docs/AttachmentMetaData.md +23 -0
- data/docs/BasicAuthOptions.md +10 -0
- data/docs/BulkActionsControllerApi.md +165 -0
- data/docs/BulkSendEmailOptions.md +11 -1
- data/docs/CommonActionsControllerApi.md +167 -0
- data/docs/ContactControllerApi.md +274 -0
- data/docs/ContactDto.md +31 -0
- data/docs/ContactProjection.md +27 -0
- data/docs/CreateContactOptions.md +31 -0
- data/docs/CreateDomainOptions.md +17 -0
- data/docs/CreateGroupOptions.md +19 -0
- data/docs/CreateTemplateOptions.md +19 -0
- data/docs/CreateWebhookOptions.md +13 -2
- data/docs/DomainControllerApi.md +223 -0
- data/docs/DomainDto.md +29 -0
- data/docs/DomainPreview.md +21 -0
- data/docs/Email.md +40 -15
- data/docs/EmailAnalysis.md +18 -5
- data/docs/EmailControllerApi.md +740 -0
- data/docs/EmailPreview.md +24 -6
- data/docs/EmailProjection.md +33 -0
- data/docs/ForwardEmailOptions.md +12 -0
- data/docs/GroupContactsDto.md +19 -0
- data/docs/GroupControllerApi.md +437 -0
- data/docs/GroupDto.md +23 -0
- data/docs/GroupProjection.md +23 -0
- data/docs/HTMLValidationResult.md +21 -0
- data/docs/Inbox.md +26 -4
- data/docs/InboxControllerApi.md +652 -0
- data/docs/InboxProjection.md +29 -0
- data/docs/JsonNode.md +59 -0
- data/docs/MatchOption.md +13 -2
- data/docs/MatchOptions.md +9 -0
- data/docs/PageContactProjection.md +37 -0
- data/docs/PageEmailPreview.md +37 -0
- data/docs/PageEmailProjection.md +37 -0
- data/docs/PageGroupProjection.md +37 -0
- data/docs/PageInboxProjection.md +37 -0
- data/docs/PageTemplateProjection.md +37 -0
- data/docs/PageWebhookProjection.md +37 -0
- data/docs/Pageable.md +27 -0
- data/docs/RawEmailJson.md +17 -0
- data/docs/SendEmailOptions.md +33 -6
- data/docs/SetInboxFavouritedOptions.md +17 -0
- data/docs/Sort.md +21 -0
- data/docs/TemplateControllerApi.md +274 -0
- data/docs/TemplateDto.md +25 -0
- data/docs/TemplateProjection.md +25 -0
- data/docs/TemplateVariable.md +19 -0
- data/docs/UnreadCount.md +17 -0
- data/docs/UpdateGroupContacts.md +17 -0
- data/docs/UpdateInboxOptions.md +25 -0
- data/docs/UploadAttachmentOptions.md +12 -1
- data/docs/ValidationDto.md +19 -0
- data/docs/ValidationMessage.md +19 -0
- data/docs/WaitForConditions.md +29 -0
- data/docs/WaitForControllerApi.md +317 -0
- data/docs/WebhookControllerApi.md +339 -0
- data/docs/WebhookDto.md +33 -0
- data/docs/WebhookProjection.md +27 -0
- data/docs/WebhookTestRequest.md +23 -0
- data/docs/WebhookTestResponse.md +19 -0
- data/docs/WebhookTestResult.md +21 -0
- data/git_push.sh +10 -7
- data/lib/mailslurp_client.rb +56 -7
- data/lib/mailslurp_client/api/attachment_controller_api.rb +157 -0
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +203 -0
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +201 -0
- data/lib/mailslurp_client/api/contact_controller_api.rb +323 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +852 -0
- data/lib/mailslurp_client/api/group_controller_api.rb +519 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +763 -0
- data/lib/mailslurp_client/api/template_controller_api.rb +323 -0
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +359 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +405 -0
- data/lib/mailslurp_client/api_client.rb +36 -39
- data/lib/mailslurp_client/api_error.rb +23 -4
- data/lib/mailslurp_client/configuration.rb +8 -11
- data/lib/mailslurp_client/models/attachment_meta_data.rb +253 -0
- data/lib/mailslurp_client/models/basic_auth_options.rb +39 -15
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +42 -19
- data/lib/mailslurp_client/models/contact_dto.rb +288 -0
- data/lib/mailslurp_client/models/contact_projection.rb +261 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +277 -0
- data/lib/mailslurp_client/models/create_domain_options.rb +208 -0
- data/lib/mailslurp_client/models/create_group_options.rb +220 -0
- data/lib/mailslurp_client/models/create_template_options.rb +225 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +54 -29
- data/lib/mailslurp_client/models/domain_dto.rb +296 -0
- data/lib/mailslurp_client/models/domain_preview.rb +240 -0
- data/lib/mailslurp_client/models/email.rb +86 -78
- data/lib/mailslurp_client/models/email_analysis.rb +46 -48
- data/lib/mailslurp_client/models/email_preview.rb +77 -41
- data/lib/mailslurp_client/models/email_projection.rb +306 -0
- data/lib/mailslurp_client/models/forward_email_options.rb +40 -17
- data/lib/mailslurp_client/models/group_contacts_dto.rb +227 -0
- data/lib/mailslurp_client/models/{webhook.rb → group_dto.rb} +60 -54
- data/lib/mailslurp_client/models/group_projection.rb +248 -0
- data/lib/mailslurp_client/models/html_validation_result.rb +243 -0
- data/lib/mailslurp_client/models/inbox.rb +104 -26
- data/lib/mailslurp_client/models/inbox_projection.rb +272 -0
- data/lib/mailslurp_client/models/json_node.rb +429 -0
- data/lib/mailslurp_client/models/match_option.rb +48 -24
- data/lib/mailslurp_client/models/match_options.rb +37 -14
- data/lib/mailslurp_client/models/page_contact_projection.rb +298 -0
- data/lib/mailslurp_client/models/page_email_preview.rb +298 -0
- data/lib/mailslurp_client/models/page_email_projection.rb +298 -0
- data/lib/mailslurp_client/models/page_group_projection.rb +298 -0
- data/lib/mailslurp_client/models/page_inbox_projection.rb +298 -0
- data/lib/mailslurp_client/models/page_template_projection.rb +298 -0
- data/lib/mailslurp_client/models/page_webhook_projection.rb +298 -0
- data/lib/mailslurp_client/models/pageable.rb +251 -0
- data/lib/mailslurp_client/models/raw_email_json.rb +211 -0
- data/lib/mailslurp_client/models/send_email_options.rb +141 -46
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +208 -0
- data/lib/mailslurp_client/models/sort.rb +224 -0
- data/lib/mailslurp_client/models/template_dto.rb +269 -0
- data/lib/mailslurp_client/models/template_projection.rb +269 -0
- data/lib/mailslurp_client/models/template_variable.rb +259 -0
- data/lib/mailslurp_client/models/unread_count.rb +211 -0
- data/lib/mailslurp_client/models/update_group_contacts.rb +213 -0
- data/lib/mailslurp_client/models/update_inbox_options.rb +250 -0
- data/lib/mailslurp_client/models/upload_attachment_options.rb +43 -20
- data/lib/mailslurp_client/models/validation_dto.rb +225 -0
- data/lib/mailslurp_client/models/validation_message.rb +220 -0
- data/lib/mailslurp_client/models/wait_for_conditions.rb +315 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +326 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +277 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +284 -0
- data/lib/mailslurp_client/models/webhook_test_response.rb +215 -0
- data/lib/mailslurp_client/models/webhook_test_result.rb +235 -0
- data/lib/mailslurp_client/version.rb +5 -5
- data/mailslurp_client.gemspec +4 -10
- data/spec/api/attachment_controller_api_spec.rb +61 -0
- data/spec/api/bulk_actions_controller_api_spec.rb +68 -0
- data/spec/api/common_actions_controller_api_spec.rb +129 -0
- data/spec/api/contact_controller_api_spec.rb +91 -0
- data/spec/api/domain_controller_api_spec.rb +82 -0
- data/spec/api/email_controller_api_spec.rb +162 -0
- data/spec/api/group_controller_api_spec.rb +126 -0
- data/spec/api/inbox_controller_api_spec.rb +172 -0
- data/spec/api/template_controller_api_spec.rb +91 -0
- data/spec/api/wait_for_controller_api_spec.rb +107 -0
- data/spec/api/webhook_controller_api_spec.rb +107 -0
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/attachment_meta_data_spec.rb +59 -0
- data/spec/models/basic_auth_options_spec.rb +4 -4
- data/spec/models/bulk_send_email_options_spec.rb +4 -4
- data/spec/models/contact_dto_spec.rb +83 -0
- data/spec/models/contact_projection_spec.rb +71 -0
- data/spec/models/create_contact_options_spec.rb +83 -0
- data/spec/models/create_domain_options_spec.rb +41 -0
- data/spec/models/create_group_options_spec.rb +47 -0
- data/spec/models/create_template_options_spec.rb +47 -0
- data/spec/models/create_webhook_options_spec.rb +6 -6
- data/spec/models/domain_dto_spec.rb +77 -0
- data/spec/models/domain_preview_spec.rb +53 -0
- data/spec/models/email_analysis_spec.rb +4 -4
- data/spec/models/email_preview_spec.rb +41 -5
- data/spec/models/email_projection_spec.rb +89 -0
- data/spec/models/email_spec.rb +17 -5
- data/spec/models/forward_email_options_spec.rb +4 -4
- data/spec/models/group_contacts_dto_spec.rb +47 -0
- data/spec/models/group_dto_spec.rb +59 -0
- data/spec/models/group_projection_spec.rb +59 -0
- data/spec/models/html_validation_result_spec.rb +53 -0
- data/spec/models/inbox_projection_spec.rb +77 -0
- data/spec/models/inbox_spec.rb +35 -5
- data/spec/models/json_node_spec.rb +171 -0
- data/spec/models/match_option_spec.rb +4 -4
- data/spec/models/match_options_spec.rb +4 -4
- data/spec/models/page_contact_projection_spec.rb +101 -0
- data/spec/models/page_email_preview_spec.rb +101 -0
- data/spec/models/page_email_projection_spec.rb +101 -0
- data/spec/models/page_group_projection_spec.rb +101 -0
- data/spec/models/page_inbox_projection_spec.rb +101 -0
- data/spec/models/page_template_projection_spec.rb +101 -0
- data/spec/models/page_webhook_projection_spec.rb +101 -0
- data/spec/models/pageable_spec.rb +71 -0
- data/spec/models/raw_email_json_spec.rb +41 -0
- data/spec/models/send_email_options_spec.rb +45 -5
- data/spec/models/set_inbox_favourited_options_spec.rb +41 -0
- data/spec/models/sort_spec.rb +53 -0
- data/spec/models/template_dto_spec.rb +65 -0
- data/spec/models/template_projection_spec.rb +65 -0
- data/spec/models/template_variable_spec.rb +51 -0
- data/spec/models/unread_count_spec.rb +41 -0
- data/spec/models/update_group_contacts_spec.rb +41 -0
- data/spec/models/{webhook_spec.rb → update_inbox_options_spec.rb} +14 -20
- data/spec/models/upload_attachment_options_spec.rb +4 -4
- data/spec/models/validation_dto_spec.rb +47 -0
- data/spec/models/validation_message_spec.rb +47 -0
- data/spec/models/wait_for_conditions_spec.rb +85 -0
- data/spec/models/webhook_dto_spec.rb +93 -0
- data/spec/models/webhook_projection_spec.rb +71 -0
- data/spec/models/webhook_test_request_spec.rb +63 -0
- data/spec/models/webhook_test_response_spec.rb +47 -0
- data/spec/models/webhook_test_result_spec.rb +53 -0
- data/spec/spec_helper.rb +4 -4
- metadata +223 -149
- data/Gemfile.lock +0 -79
- data/docs/CommonOperationsApi.md +0 -499
- data/docs/ExtraOperationsApi.md +0 -1021
- data/docs/Webhook.md +0 -13
- data/lib/mailslurp_client/api/common_operations_api.rb +0 -502
- data/lib/mailslurp_client/api/extra_operations_api.rb +0 -1054
- data/spec/api/common_operations_api_spec.rb +0 -95
- data/spec/api/extra_operations_api_spec.rb +0 -231
data/docs/EmailPreview.md
CHANGED
@@ -1,13 +1,31 @@
|
|
1
1
|
# MailSlurpClient::EmailPreview
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
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
|
+
```
|
12
30
|
|
13
31
|
|
@@ -0,0 +1,33 @@
|
|
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
|
+
|
data/docs/ForwardEmailOptions.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# MailSlurpClient::ForwardEmailOptions
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**to** | **Array<String>** | |
|
@@ -8,4 +9,15 @@ Name | Type | Description | Notes
|
|
8
9
|
**cc** | **Array<String>** | | [optional]
|
9
10
|
**bcc** | **Array<String>** | | [optional]
|
10
11
|
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'MailSlurpClient'
|
16
|
+
|
17
|
+
instance = MailSlurpClient::ForwardEmailOptions.new(to: null,
|
18
|
+
subject: null,
|
19
|
+
cc: null,
|
20
|
+
bcc: null)
|
21
|
+
```
|
22
|
+
|
11
23
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# MailSlurpClient::GroupContactsDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**contacts** | [**Array<ContactDto>**](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
|
+
|
@@ -0,0 +1,437 @@
|
|
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 'ASC']
|
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<GroupProjection> 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<GroupProjection>**](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
|
+
|