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