unione 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/AGENTS.md +99 -0
- data/LICENSE +21 -0
- data/README.md +270 -0
- data/docs/ConfirmedEmail.md +109 -0
- data/docs/Domain.md +257 -0
- data/docs/Email.md +126 -0
- data/docs/EmailValidation.md +54 -0
- data/docs/EventDump.md +157 -0
- data/docs/Obsolete.md +119 -0
- data/docs/Project.md +174 -0
- data/docs/Suppression.md +163 -0
- data/docs/System.md +73 -0
- data/docs/Tag.md +73 -0
- data/docs/Template.md +164 -0
- data/docs/Webhook.md +182 -0
- data/lib/unione/api/confirmed_email/confirmed_email_api.rb +47 -0
- data/lib/unione/api/confirmed_email/model/confirmed_email.rb +49 -0
- data/lib/unione/api/confirmed_email/model/confirmed_email_create_response.rb +50 -0
- data/lib/unione/api/confirmed_email/model/confirmed_email_delete_response.rb +50 -0
- data/lib/unione/api/confirmed_email/model/confirmed_email_list_response.rb +50 -0
- data/lib/unione/api/confirmed_email/model/confirmed_email_request.rb +42 -0
- data/lib/unione/api/domain/domain_api.rb +129 -0
- data/lib/unione/api/domain/model/dkim_status.rb +18 -0
- data/lib/unione/api/domain/model/domain_delete_request.rb +42 -0
- data/lib/unione/api/domain/model/domain_delete_response.rb +51 -0
- data/lib/unione/api/domain/model/domain_get_dns_records_request.rb +42 -0
- data/lib/unione/api/domain/model/domain_get_dns_records_response.rb +76 -0
- data/lib/unione/api/domain/model/domain_get_sandbox_domain_response.rb +51 -0
- data/lib/unione/api/domain/model/domain_list_request.rb +60 -0
- data/lib/unione/api/domain/model/domain_list_response.rb +51 -0
- data/lib/unione/api/domain/model/domain_list_response_domains_item.rb +58 -0
- data/lib/unione/api/domain/model/domain_list_response_domains_item_dkim.rb +52 -0
- data/lib/unione/api/domain/model/domain_list_response_domains_item_verification_record.rb +50 -0
- data/lib/unione/api/domain/model/domain_validate_dkim_request.rb +42 -0
- data/lib/unione/api/domain/model/domain_validate_dkim_response.rb +51 -0
- data/lib/unione/api/domain/model/domain_validate_verification_record_request.rb +42 -0
- data/lib/unione/api/domain/model/domain_validate_verification_record_response.rb +51 -0
- data/lib/unione/api/email/email_api.rb +56 -0
- data/lib/unione/api/email/model/email_send_request.rb +42 -0
- data/lib/unione/api/email/model/email_send_response.rb +83 -0
- data/lib/unione/api/email/model/email_subscribe_request.rb +58 -0
- data/lib/unione/api/email/model/message_object.rb +291 -0
- data/lib/unione/api/email/model/message_object_options.rb +70 -0
- data/lib/unione/api/email/model/message_object_recipients_item.rb +77 -0
- data/lib/unione/api/email_validation/email_validation_api.rb +34 -0
- data/lib/unione/api/email_validation/model/email_validation_single_request.rb +42 -0
- data/lib/unione/api/email_validation/model/email_validation_single_response.rb +140 -0
- data/lib/unione/api/event_dump/event_dump_api.rb +67 -0
- data/lib/unione/api/event_dump/model/event_dump_create_request.rb +119 -0
- data/lib/unione/api/event_dump/model/event_dump_create_response.rb +52 -0
- data/lib/unione/api/event_dump/model/event_dump_delete_request.rb +43 -0
- data/lib/unione/api/event_dump/model/event_dump_files_object.rb +51 -0
- data/lib/unione/api/event_dump/model/event_dump_get_request.rb +43 -0
- data/lib/unione/api/event_dump/model/event_dump_get_response.rb +51 -0
- data/lib/unione/api/event_dump/model/event_dump_list_response.rb +52 -0
- data/lib/unione/api/event_dump/model/event_dump_object.rb +66 -0
- data/lib/unione/api/event_dump/model/filter_object.rb +139 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_check_request.rb +42 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_check_response.rb +59 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_list_request.rb +43 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_list_response.rb +51 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_list_response_unsubscribed_item.rb +50 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_set_message.rb +25 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_set_request.rb +42 -0
- data/lib/unione/api/obsolete/model/obsolete_unsubscribed_set_response.rb +64 -0
- data/lib/unione/api/obsolete/obsolete_api.rb +57 -0
- data/lib/unione/api/project/model/project_create_request.rb +42 -0
- data/lib/unione/api/project/model/project_create_response.rb +60 -0
- data/lib/unione/api/project/model/project_delete_request.rb +52 -0
- data/lib/unione/api/project/model/project_list_object.rb +146 -0
- data/lib/unione/api/project/model/project_list_request.rb +50 -0
- data/lib/unione/api/project/model/project_list_response.rb +51 -0
- data/lib/unione/api/project/model/project_object.rb +94 -0
- data/lib/unione/api/project/model/project_update_object.rb +130 -0
- data/lib/unione/api/project/model/project_update_request.rb +60 -0
- data/lib/unione/api/project/model/project_update_response.rb +52 -0
- data/lib/unione/api/project/project_api.rb +71 -0
- data/lib/unione/api/suppression/model/suppression_delete_request.rb +42 -0
- data/lib/unione/api/suppression/model/suppression_get_object.rb +91 -0
- data/lib/unione/api/suppression/model/suppression_get_request.rb +52 -0
- data/lib/unione/api/suppression/model/suppression_get_response.rb +59 -0
- data/lib/unione/api/suppression/model/suppression_list_object.rb +91 -0
- data/lib/unione/api/suppression/model/suppression_list_request.rb +94 -0
- data/lib/unione/api/suppression/model/suppression_list_response.rb +61 -0
- data/lib/unione/api/suppression/model/suppression_set_request.rb +69 -0
- data/lib/unione/api/suppression/suppression_api.rb +63 -0
- data/lib/unione/api/system/model/project_accounting_object.rb +62 -0
- data/lib/unione/api/system/model/system_info_response.rb +95 -0
- data/lib/unione/api/system/model/system_info_response_accounting.rb +68 -0
- data/lib/unione/api/system/model/system_ping_response.rb +51 -0
- data/lib/unione/api/system/system_api.rb +35 -0
- data/lib/unione/api/tag/model/tag_delete_request.rb +42 -0
- data/lib/unione/api/tag/model/tag_list_response.rb +51 -0
- data/lib/unione/api/tag/model/tags_response_object.rb +50 -0
- data/lib/unione/api/tag/tag_api.rb +40 -0
- data/lib/unione/api/template/model/editor_type.rb +19 -0
- data/lib/unione/api/template/model/template_delete_request.rb +42 -0
- data/lib/unione/api/template/model/template_get_request.rb +42 -0
- data/lib/unione/api/template/model/template_get_response.rb +51 -0
- data/lib/unione/api/template/model/template_list_object.rb +232 -0
- data/lib/unione/api/template/model/template_list_request.rb +52 -0
- data/lib/unione/api/template/model/template_list_response.rb +51 -0
- data/lib/unione/api/template/model/template_object.rb +201 -0
- data/lib/unione/api/template/model/template_set_request.rb +42 -0
- data/lib/unione/api/template/model/template_set_response.rb +51 -0
- data/lib/unione/api/template/template_api.rb +66 -0
- data/lib/unione/api/webhook/model/block_type.rb +20 -0
- data/lib/unione/api/webhook/model/device_type.rb +22 -0
- data/lib/unione/api/webhook/model/domain_status.rb +19 -0
- data/lib/unione/api/webhook/model/event_name.rb +19 -0
- data/lib/unione/api/webhook/model/traffic_type.rb +24 -0
- data/lib/unione/api/webhook/model/webhook_callback.rb +52 -0
- data/lib/unione/api/webhook/model/webhook_callback_events_by_user_item.rb +66 -0
- data/lib/unione/api/webhook/model/webhook_callback_events_by_user_item_events_item.rb +52 -0
- data/lib/unione/api/webhook/model/webhook_callback_events_by_user_item_events_item_event_data.rb +167 -0
- data/lib/unione/api/webhook/model/webhook_callback_events_by_user_item_events_item_event_data_delivery_info.rb +192 -0
- data/lib/unione/api/webhook/model/webhook_delete_request.rb +42 -0
- data/lib/unione/api/webhook/model/webhook_event_format.rb +18 -0
- data/lib/unione/api/webhook/model/webhook_events_object.rb +52 -0
- data/lib/unione/api/webhook/model/webhook_get_request.rb +42 -0
- data/lib/unione/api/webhook/model/webhook_get_response.rb +51 -0
- data/lib/unione/api/webhook/model/webhook_list_request.rb +51 -0
- data/lib/unione/api/webhook/model/webhook_list_response.rb +51 -0
- data/lib/unione/api/webhook/model/webhook_object.rb +123 -0
- data/lib/unione/api/webhook/model/webhook_set_request.rb +109 -0
- data/lib/unione/api/webhook/model/webhook_set_response.rb +51 -0
- data/lib/unione/api/webhook/model/webhook_status.rb +21 -0
- data/lib/unione/api/webhook/webhook_api.rb +89 -0
- data/lib/unione/client/api_client.rb +93 -0
- data/lib/unione/client/api_error.rb +22 -0
- data/lib/unione/client/configuration.rb +49 -0
- data/lib/unione/client/decode.rb +33 -0
- data/lib/unione/common/model/attachments_array_item.rb +59 -0
- data/lib/unione/common/model/body_object.rb +57 -0
- data/lib/unione/common/model/email_counter_mode.rb +21 -0
- data/lib/unione/common/model/email_status.rb +23 -0
- data/lib/unione/common/model/headers_object.rb +72 -0
- data/lib/unione/common/model/inline_attachments_array_item.rb +59 -0
- data/lib/unione/common/model/success_response.rb +41 -0
- data/lib/unione/common/model/template_engine.rb +19 -0
- data/lib/unione/common/model/verification_record_status.rb +16 -0
- data/lib/unione/uni_one_client.rb +127 -0
- data/lib/unione/version.rb +5 -0
- data/lib/unione.rb +130 -0
- metadata +187 -0
data/docs/Domain.md
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Domain
|
|
2
|
+
|
|
3
|
+
[Back to the list of sections](../README.md)
|
|
4
|
+
|
|
5
|
+
You can use these methods to setup sender domains and check their statuses. They might be useful in case you want to automate adding domains for your own clients.
|
|
6
|
+
|
|
7
|
+
To add new sender domain thru API you should take following steps:
|
|
8
|
+
- Get DNS records with [domain/get-dns-records](https://docs.unione.io/en/web-api-ref#domain-get-dns-records) method and add them to your DNS provider.
|
|
9
|
+
- Every 5-10 minutes call [domain/list](https://docs.unione.io/en/web-api-ref#domain-list) method for your domain (or several domains) and check verification-record.status and dkim.status in the response. You can call it more often if you like, but please not more than once per minute.
|
|
10
|
+
- If verification-record.status="unconfirmed" then you should call [domain/validate-verification-record](https://docs.unione.io/en/web-api-ref#domain-validate-verification-record) to trigger verification record validation.
|
|
11
|
+
- If dkim.status="inactive" then start DKIM checking by calling [domain/validate-dkim](https://docs.unione.io/en/web-api-ref#domain-validate-dkim) (UniOne itself checks DKIM every 30 minutes also)
|
|
12
|
+
- When you get verification-record.status="confirmed" and dkim.status="active" for the domain then you can stop checking it's status with domain/list and start using it as a sender domain.
|
|
13
|
+
|
|
14
|
+
`UniOne::Api::Domain::DomainApi`, `client.domain`
|
|
15
|
+
|
|
16
|
+
| Method | Endpoint | Description |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| [`get_dns_records`](#get_dns_records) | `POST /domain/get-dns-records.json` | Returns info on domain DNS setup for using with UniOne. |
|
|
19
|
+
| [`validate_verification_record`](#validate_verification_record) | `POST /domain/validate-verification-record.json` | Triggers verification record validation for domain. |
|
|
20
|
+
| [`validate_dkim`](#validate_dkim) | `POST /domain/validate-dkim.json` | Validates DKIM record for domain. |
|
|
21
|
+
| [`list`](#list) | `POST /domain/list.json` | Returns a list of all registered domains for user or project, together with statuses of last validations. |
|
|
22
|
+
| [`get_sandbox_domain`](#get_sandbox_domain) | `POST /domain/get-sandbox-domain.json` | Creates a sandbox domain for the account or returns the existing one. |
|
|
23
|
+
| [`delete`](#delete) | `POST /domain/delete.json` | Deletes a domain. Attention: you should use project's API key to delete a project's domain. |
|
|
24
|
+
|
|
25
|
+
## get_dns_records
|
|
26
|
+
|
|
27
|
+
`POST /domain/get-dns-records.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-get-dns-records)
|
|
28
|
+
|
|
29
|
+
Returns info on domain DNS setup for using with UniOne.
|
|
30
|
+
|
|
31
|
+
In order to send emails you have to confirm that you own the domain that you are going to send emails from and setup DKIM signature for the domain. This method allows you to register your domain in UniOne and generate verification record and DKIM key, or return previously generated ones if domain is already registered.
|
|
32
|
+
You should add then DNS records like this to all of the domains you want to confirm:
|
|
33
|
+
|
|
34
|
+
`@ IN TXT "unione-validate-hash=483bb362ebdbeedd755cfb1d4d661"`
|
|
35
|
+
|
|
36
|
+
`us._domainkey IN TXT "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDo7"`
|
|
37
|
+
|
|
38
|
+
`@ IN TXT "v=spf1 include:spf.unione.io ~all"`
|
|
39
|
+
|
|
40
|
+
- First record value should contain "verification-record" field returned by get-dns-records method "as is".
|
|
41
|
+
- Second record value should contain "dkim" field value after "p=". Mind the name of this record! "us._domainkey." prefix is important for DKIM selector of UniOne to work properly.
|
|
42
|
+
- Third record contains optional, but very recommended SPF entry. Probably you already have one, then just add append include:spf.unione.io right after v=spf1.
|
|
43
|
+
|
|
44
|
+
Syntax requirements of different DNS providers may differ:
|
|
45
|
+
- sometimes it's necesarry to put full domain name instead of @ sign.
|
|
46
|
+
- some providers require add TTL value (like 3600)
|
|
47
|
+
- some providers don't require quotes for enclosing values
|
|
48
|
+
Please check requirements of your provider and advice your users to do it.
|
|
49
|
+
|
|
50
|
+
### Request: `DomainGetDnsRecordsRequest`
|
|
51
|
+
|
|
52
|
+
| Field | Type | Required | Description |
|
|
53
|
+
|---|---|---|---|
|
|
54
|
+
| `domain` | `String` | yes | Domain to get DNS records for. |
|
|
55
|
+
|
|
56
|
+
### Response: `DomainGetDnsRecordsResponse`
|
|
57
|
+
|
|
58
|
+
| Field | Type | Description |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `status` | `String` | "success" string (`success`) |
|
|
61
|
+
| `domain` | `String` | Domain to get DNS records for. |
|
|
62
|
+
| `verification_record` | `String` | Record to be added "as is" to verify ownership of this domain. |
|
|
63
|
+
| `dkim` | `String` | DKIM signature for the domain. This property contains only the key part, you should prepend it with "v=DKIM1; k=rsa; p=" for the TXT record to be valid. |
|
|
64
|
+
| `dmarc` | `String` | Target of the CNAME record for the "_dmarc" host of the domain. |
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```ruby
|
|
69
|
+
require 'unione'
|
|
70
|
+
|
|
71
|
+
Domain = UniOne::Api::Domain::Model
|
|
72
|
+
|
|
73
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
74
|
+
|
|
75
|
+
response = client.domain.get_dns_records(Domain::DomainGetDnsRecordsRequest.new(
|
|
76
|
+
domain: 'example.com'
|
|
77
|
+
))
|
|
78
|
+
p response.domain
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## validate_verification_record
|
|
82
|
+
|
|
83
|
+
`POST /domain/validate-verification-record.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-validate-verification-record)
|
|
84
|
+
|
|
85
|
+
Triggers verification record validation for domain.
|
|
86
|
+
|
|
87
|
+
If you get 200 OK then it means the validation process started succesfully, but it doesn't mean the verification record is valid. You should check later verification-record.status field returned by [domain/list](https://docs.unione.io/en/web-api-ref#domain-list) method to get the result. Please read more [here](https://docs.unione.io/en/web-api-ref#domain).
|
|
88
|
+
|
|
89
|
+
### Request: `DomainValidateVerificationRecordRequest`
|
|
90
|
+
|
|
91
|
+
| Field | Type | Required | Description |
|
|
92
|
+
|---|---|---|---|
|
|
93
|
+
| `domain` | `String` | yes | Domain to validate verification record for. |
|
|
94
|
+
|
|
95
|
+
### Response: `DomainValidateVerificationRecordResponse`
|
|
96
|
+
|
|
97
|
+
| Field | Type | Description |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `status` | `String` | "success" string (`success`) |
|
|
100
|
+
| `message` | `String` | Debug message. |
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
```ruby
|
|
105
|
+
require 'unione'
|
|
106
|
+
|
|
107
|
+
Domain = UniOne::Api::Domain::Model
|
|
108
|
+
|
|
109
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
110
|
+
|
|
111
|
+
response = client.domain.validate_verification_record(Domain::DomainValidateVerificationRecordRequest.new(
|
|
112
|
+
domain: 'example.com'
|
|
113
|
+
))
|
|
114
|
+
p response.message
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## validate_dkim
|
|
118
|
+
|
|
119
|
+
`POST /domain/validate-dkim.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-validate-dkim)
|
|
120
|
+
|
|
121
|
+
Validates DKIM record for domain.
|
|
122
|
+
|
|
123
|
+
If you get 200 OK then it means the validation process started succesfully, but it doesn't mean the DKIM record is valid. You should check later dkim.status field returned by [domain/list](https://docs.unione.io/en/web-api-ref#domain-list) method to get the result. Please read more [here](https://docs.unione.io/en/web-api-ref#domain).
|
|
124
|
+
|
|
125
|
+
### Request: `DomainValidateDkimRequest`
|
|
126
|
+
|
|
127
|
+
| Field | Type | Required | Description |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| `domain` | `String` | yes | Domain to validate DKIM record for. |
|
|
130
|
+
|
|
131
|
+
### Response: `DomainValidateDkimResponse`
|
|
132
|
+
|
|
133
|
+
| Field | Type | Description |
|
|
134
|
+
|---|---|---|
|
|
135
|
+
| `status` | `String` | "success" string (`success`) |
|
|
136
|
+
| `message` | `String` | Debug message. |
|
|
137
|
+
|
|
138
|
+
### Example
|
|
139
|
+
|
|
140
|
+
```ruby
|
|
141
|
+
require 'unione'
|
|
142
|
+
|
|
143
|
+
Domain = UniOne::Api::Domain::Model
|
|
144
|
+
|
|
145
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
146
|
+
|
|
147
|
+
response = client.domain.validate_dkim(Domain::DomainValidateDkimRequest.new(
|
|
148
|
+
domain: 'example.com'
|
|
149
|
+
))
|
|
150
|
+
p response.message
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## list
|
|
154
|
+
|
|
155
|
+
`POST /domain/list.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-list)
|
|
156
|
+
|
|
157
|
+
Returns a list of all registered domains for user or project, together with statuses of last validations.
|
|
158
|
+
|
|
159
|
+
Returns last status of ownership validation and DKIM validation for each domain. Read more [here](https://docs.unione.io/en/web-api-ref#domain).
|
|
160
|
+
|
|
161
|
+
### Request: `DomainListRequest`
|
|
162
|
+
|
|
163
|
+
| Field | Type | Required | Description |
|
|
164
|
+
|---|---|---|---|
|
|
165
|
+
| `domain` | `String` | | Optional domain name if you want to get the status of single domain only. |
|
|
166
|
+
| `limit` | `Integer` | | Limits the number of domains returned. Default is 50. |
|
|
167
|
+
| `offset` | `Integer` | | Index of the first domain in the list, starting with 0. |
|
|
168
|
+
|
|
169
|
+
### Response: `DomainListResponse`
|
|
170
|
+
|
|
171
|
+
| Field | Type | Description |
|
|
172
|
+
|---|---|---|
|
|
173
|
+
| `status` | `String` | "success" string (`success`) |
|
|
174
|
+
| `domains` | `Array<DomainListResponseDomainsItem>` | Array of objects describing domains. |
|
|
175
|
+
|
|
176
|
+
### Example
|
|
177
|
+
|
|
178
|
+
```ruby
|
|
179
|
+
require 'unione'
|
|
180
|
+
|
|
181
|
+
Domain = UniOne::Api::Domain::Model
|
|
182
|
+
|
|
183
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
184
|
+
|
|
185
|
+
response = client.domain.list(Domain::DomainListRequest.new(
|
|
186
|
+
domain: 'example.com'
|
|
187
|
+
))
|
|
188
|
+
p response.domains
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## get_sandbox_domain
|
|
192
|
+
|
|
193
|
+
`POST /domain/get-sandbox-domain.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-get-sandbox-domain)
|
|
194
|
+
|
|
195
|
+
Creates a sandbox domain for the account or returns the existing one.
|
|
196
|
+
|
|
197
|
+
Returns an account sandbox domain that is ready for use in the `from_email` field of [email/send](https://docs.unione.io/en/web-api-ref#email-send). If the account has no sandbox domain, UniOne creates one and returns it. Repeated calls return the same domain.
|
|
198
|
+
|
|
199
|
+
The method is available only with an account API key. Project API keys cannot create sandbox domains.
|
|
200
|
+
|
|
201
|
+
### Request
|
|
202
|
+
|
|
203
|
+
The method has no parameters.
|
|
204
|
+
|
|
205
|
+
### Response: `DomainGetSandboxDomainResponse`
|
|
206
|
+
|
|
207
|
+
| Field | Type | Description |
|
|
208
|
+
|---|---|---|
|
|
209
|
+
| `status` | `String` | "success" string (`success`) |
|
|
210
|
+
| `domain` | `String` | Sandbox domain name. |
|
|
211
|
+
|
|
212
|
+
### Example
|
|
213
|
+
|
|
214
|
+
```ruby
|
|
215
|
+
require 'unione'
|
|
216
|
+
|
|
217
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
218
|
+
|
|
219
|
+
response = client.domain.get_sandbox_domain
|
|
220
|
+
p response.domain
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## delete
|
|
224
|
+
|
|
225
|
+
`POST /domain/delete.json` · [Documentation](https://docs.unione.io/en/web-api-ref#domain-delete)
|
|
226
|
+
|
|
227
|
+
Deletes a domain. Attention: you should use project's API key to delete a project's domain.
|
|
228
|
+
|
|
229
|
+
Deletes a domain.
|
|
230
|
+
|
|
231
|
+
### Request: `DomainDeleteRequest`
|
|
232
|
+
|
|
233
|
+
| Field | Type | Required | Description |
|
|
234
|
+
|---|---|---|---|
|
|
235
|
+
| `domain` | `String` | yes | Domain name to delete. |
|
|
236
|
+
|
|
237
|
+
### Response: `DomainDeleteResponse`
|
|
238
|
+
|
|
239
|
+
| Field | Type | Description |
|
|
240
|
+
|---|---|---|
|
|
241
|
+
| `status` | `String` | "success" string (`success`) |
|
|
242
|
+
| `message` | `String` | Domain deleted |
|
|
243
|
+
|
|
244
|
+
### Example
|
|
245
|
+
|
|
246
|
+
```ruby
|
|
247
|
+
require 'unione'
|
|
248
|
+
|
|
249
|
+
Domain = UniOne::Api::Domain::Model
|
|
250
|
+
|
|
251
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
252
|
+
|
|
253
|
+
response = client.domain.delete(Domain::DomainDeleteRequest.new(
|
|
254
|
+
domain: 'example.com'
|
|
255
|
+
))
|
|
256
|
+
p response.message
|
|
257
|
+
```
|
data/docs/Email.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Email
|
|
2
|
+
|
|
3
|
+
[Back to the list of sections](../README.md)
|
|
4
|
+
|
|
5
|
+
This group of methods is related with email sending.
|
|
6
|
+
|
|
7
|
+
`UniOne::Api::Email::EmailApi`, `client.email`
|
|
8
|
+
|
|
9
|
+
| Method | Endpoint | Description |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| [`send_email`](#send_email) | `POST /email/send.json` | Sends an email or a bunch of emails |
|
|
12
|
+
| [`subscribe`](#subscribe) | `POST /email/subscribe.json` | Sends an email with (re)subscribe link. |
|
|
13
|
+
|
|
14
|
+
## send_email
|
|
15
|
+
|
|
16
|
+
`POST /email/send.json` · [Documentation](https://docs.unione.io/en/web-api-ref#email-send)
|
|
17
|
+
|
|
18
|
+
Sends an email or a bunch of emails
|
|
19
|
+
|
|
20
|
+
While sending you can provide substitutions (merge tags), use a template, turn on read or click tracking, etc.
|
|
21
|
+
|
|
22
|
+
Restrictions:
|
|
23
|
+
* maximum request size is 10 MB
|
|
24
|
+
* maximum number of recipients is 500
|
|
25
|
+
* The symbol '/' is not allowed in attachment names
|
|
26
|
+
|
|
27
|
+
If the list of recipients contains invalid, non-existent, duplicate, or unsubscribed emails, those emails will be returned in the output parameter failed_emails, and the email will be sent to all other valid emails addresses. If all the emails addresses fall into failed_emails, sending will not be carried out and API error 204 will be returned.
|
|
28
|
+
|
|
29
|
+
### Request: `EmailSendRequest`
|
|
30
|
+
|
|
31
|
+
| Field | Type | Required | Description |
|
|
32
|
+
|---|---|---|---|
|
|
33
|
+
| `message` | `MessageObject` | yes | Object containing all message properties. |
|
|
34
|
+
|
|
35
|
+
### Response: `EmailSendResponse`
|
|
36
|
+
|
|
37
|
+
| Field | Type | Description |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `status` | `String` | "success" string (`success`) |
|
|
40
|
+
| `job_id` | `String` | Job identifier, might be useful for investigating errors. |
|
|
41
|
+
| `emails` | `Array<String>` | Array of recipients emails successfully accepted for sending. |
|
|
42
|
+
| `failed_emails` | `Hash{String => String}` | Object with emails rejected for sending as property names and their statuses as property values, e.g.: {"email1@gmail.com": "temporary_unavailable"}. Possible statuses:<br><br>- __unsubscribed__ - specified email is unsubscribed;<br>- __invalid__ - the email does not exist or has been entered incorrectly;<br>- __duplicate__ - the email already exists in the request, email duplicating is prevented;<br>- __temporary_unavailable__ - the email address is unavailable. This means that over the next three days sending to this address will return an error. Email may be temporarily unavailable due to several reasons, e.g.:<br><br>- a previous email has been rejected by the recipient's server for spam;<br>- the recipient's mailbox is full or is not used;<br>- recipient's domain does not accept mail;<br>- sending server was rejected due to blacklisting;<br><br>- __permanent_unavailable__ - the email address is permanently unavailable or unsubscribed globally.<br>- __complained__ - the recipient reported spam in the previous emails;<br>- __blocked__ - sending to the email is prohibited by administration of UniOne.<br>We may added new statuses in the future. |
|
|
43
|
+
|
|
44
|
+
### Example
|
|
45
|
+
|
|
46
|
+
```ruby
|
|
47
|
+
require 'unione'
|
|
48
|
+
|
|
49
|
+
Common = UniOne::Common::Model
|
|
50
|
+
Email = UniOne::Api::Email::Model
|
|
51
|
+
|
|
52
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
53
|
+
|
|
54
|
+
response = client.email.send_email(Email::EmailSendRequest.new(
|
|
55
|
+
message: Email::MessageObject.new(
|
|
56
|
+
recipients: [
|
|
57
|
+
Email::MessageObjectRecipientsItem.new(
|
|
58
|
+
email: 'user@example.com',
|
|
59
|
+
substitutions: {
|
|
60
|
+
'CustomerId' => '12452',
|
|
61
|
+
'to_name' => 'John Smith',
|
|
62
|
+
},
|
|
63
|
+
metadata: {
|
|
64
|
+
'campaign_id' => 'c77f4f4e-3561-49f7-9f07-c35be01b4f43',
|
|
65
|
+
'customer_hash' => 'b253ac7',
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
],
|
|
69
|
+
template_id: '00000000-0000-0000-0000-000000000000',
|
|
70
|
+
global_language: 'en',
|
|
71
|
+
template_engine: Common::TemplateEngine::VELOCITY,
|
|
72
|
+
body: Common::BodyObject.new(
|
|
73
|
+
html: '<b>Hello, {{to_name}}</b>',
|
|
74
|
+
plaintext: 'Hello, {{to_name}}',
|
|
75
|
+
amp: '<!doctype html><html amp4email><head> <meta charset="utf-8"><script async src="https://cdn.ampproject.org/v0.js"></script> <style amp4email-boilerplate>body{visibility:hidden}</style></head><body> Hello, AMP4EMAIL world.</body></html>'
|
|
76
|
+
),
|
|
77
|
+
subject: 'UniOne test email ',
|
|
78
|
+
from_email: 'email@example.com',
|
|
79
|
+
from_name: 'John Smith',
|
|
80
|
+
reply_to: 'email@example.com',
|
|
81
|
+
reply_to_name: 'John Smith',
|
|
82
|
+
idempotence_key: 'SG1VsbG68sIH2dvc5mx890kIQ'
|
|
83
|
+
)
|
|
84
|
+
))
|
|
85
|
+
p response.job_id
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## subscribe
|
|
89
|
+
|
|
90
|
+
`POST /email/subscribe.json` · [Documentation](https://docs.unione.io/en/web-api-ref#email-subscribe)
|
|
91
|
+
|
|
92
|
+
Sends an email with (re)subscribe link.
|
|
93
|
+
|
|
94
|
+
This method allows subscription renewal by a former subscriber who has previously unsubscribed, or who is blocked because of complaints. This method sends an email with a new subscription link to a former subscriber. Once the recipient clicks the link, their subscription status is restored.
|
|
95
|
+
There is a default restriction that limits this method to being used once a day. If you need to resubscribe more often, please ask support about it.
|
|
96
|
+
|
|
97
|
+
### Request: `EmailSubscribeRequest`
|
|
98
|
+
|
|
99
|
+
| Field | Type | Required | Description |
|
|
100
|
+
|---|---|---|---|
|
|
101
|
+
| `from_email` | `String` | yes | Sender’s email on a confirmed domain. (Field alias "email_address_from" is supported, too). |
|
|
102
|
+
| `from_name` | `String` | yes | Sender’s name. (Field alias "name_from" is supported, too). |
|
|
103
|
+
| `to_email` | `String` | yes | Recipient’s email. (Field alias "email_address_to" is supported, too). |
|
|
104
|
+
|
|
105
|
+
### Response: `SuccessResponse`
|
|
106
|
+
|
|
107
|
+
| Field | Type | Description |
|
|
108
|
+
|---|---|---|
|
|
109
|
+
| `status` | `String` | "success" string (`success`) |
|
|
110
|
+
|
|
111
|
+
### Example
|
|
112
|
+
|
|
113
|
+
```ruby
|
|
114
|
+
require 'unione'
|
|
115
|
+
|
|
116
|
+
Email = UniOne::Api::Email::Model
|
|
117
|
+
|
|
118
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
119
|
+
|
|
120
|
+
response = client.email.subscribe(Email::EmailSubscribeRequest.new(
|
|
121
|
+
from_email: 'email@example.com',
|
|
122
|
+
from_name: 'Example',
|
|
123
|
+
to_email: 'email@example.com'
|
|
124
|
+
))
|
|
125
|
+
p response
|
|
126
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# EmailValidation
|
|
2
|
+
|
|
3
|
+
[Back to the list of sections](../README.md)
|
|
4
|
+
|
|
5
|
+
Email validation methods. As a result of the check, you’ll get detailed information on email validity. It will help eliminate nonexistent emails, decrease the number of complaints, clean up the subscribers list and eventually enhance your sender reputation score. For example, you may add validation to a subscription form on your site to let users know they’ve just entered an invalid address.
|
|
6
|
+
|
|
7
|
+
`UniOne::Api::EmailValidation::EmailValidationApi`, `client.email_validation`
|
|
8
|
+
|
|
9
|
+
| Method | Endpoint | Description |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| [`single`](#single) | `POST /email-validation/single.json` | A maximum of two concurrent requests are allowed; if you send more requests, an error will be returned. Since the verification process should be completed promptly, we've set a time limit on email check. If we encounter a slow email server that does not respond in 5 seconds, you may get an “unknown” status. |
|
|
12
|
+
|
|
13
|
+
## single
|
|
14
|
+
|
|
15
|
+
`POST /email-validation/single.json` · [Documentation](https://docs.unione.io/en/web-api-ref#email-validation-single)
|
|
16
|
+
|
|
17
|
+
A maximum of two concurrent requests are allowed; if you send more requests, an error will be returned. Since the verification process should be completed promptly, we've set a time limit on email check. If we encounter a slow email server that does not respond in 5 seconds, you may get an “unknown” status.
|
|
18
|
+
|
|
19
|
+
### Request: `EmailValidationSingleRequest`
|
|
20
|
+
|
|
21
|
+
| Field | Type | Required | Description |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| `email` | `String` | yes | Email address to be checked. |
|
|
24
|
+
|
|
25
|
+
### Response: `EmailValidationSingleResponse`
|
|
26
|
+
|
|
27
|
+
| Field | Type | Description |
|
|
28
|
+
|---|---|---|
|
|
29
|
+
| `status` | `String` | "success" string (`success`) |
|
|
30
|
+
| `email` | `String` | Email address to be checked. |
|
|
31
|
+
| `result` | `String` | Possible statuses:<br><br>- "valid" - the address is valid,<br>- "invalid" - the address is invalid,<br>- "suspicious" - the address looks suspicious,<br>- "unknown" - could not perform validation, the domain’s mail server has not responded within the time limit. |
|
|
32
|
+
| `cause` | `String` | Possible statuses:<br><br>- "no_mx_record" - no MX record found for the target domain,<br>- "syntax_error" - the address syntax is invalid,<br>- "possible_typo" - the address is likely to have a typo,<br>- "mailbox_not_found" - the address does not exist,<br>- "global_suppression" - the address has been marked as unreachable due to multiple previous delivery errors,<br>- "disposable" - this is a disposable one-time email address which is usually valid for a few minutes only,<br>- "role" - the address is not likely to belong to an actual person, but rather to a certain business staff role,<br>- "abuse" - the address is known to be a source of a large number of complaints, sometimes issued automatically,<br>- "spamtrap" - this email is a spam trap, it is published openly but never used for actual emails. Sending messages to such addresses has a huge negative impact on reputation score,<br>- "smtp_connection_failed" - the domain’s SMTP server does not respond; the address may contain a typo. |
|
|
33
|
+
| `validity` | `Integer` | Validity score, from 0 to 100 (0 – invalid, 100 – valid). |
|
|
34
|
+
| `local_part` | `String` | Local part (everything preceding the @ sign). |
|
|
35
|
+
| `domain` | `String` | Domain name part. |
|
|
36
|
+
| `mx_found` | `Boolean` | True if the address’ domain does have an MX record, false if does not. |
|
|
37
|
+
| `mx_record` | `String` | Preferred MX record for the domain. |
|
|
38
|
+
| `did_you_mean` | `String` | For addresses which are likely to have typing errors (cause=possible_typo), a suggested variant with a fixed typo. |
|
|
39
|
+
| `processed_at` | `String` | Email check date and time, YYYY-MM-DD hh:mm:ss UTC. |
|
|
40
|
+
|
|
41
|
+
### Example
|
|
42
|
+
|
|
43
|
+
```ruby
|
|
44
|
+
require 'unione'
|
|
45
|
+
|
|
46
|
+
EmailValidation = UniOne::Api::EmailValidation::Model
|
|
47
|
+
|
|
48
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
49
|
+
|
|
50
|
+
response = client.email_validation.single(EmailValidation::EmailValidationSingleRequest.new(
|
|
51
|
+
email: 'email@example.com'
|
|
52
|
+
))
|
|
53
|
+
p response.email
|
|
54
|
+
```
|
data/docs/EventDump.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# EventDump
|
|
2
|
+
|
|
3
|
+
[Back to the list of sections](../README.md)
|
|
4
|
+
|
|
5
|
+
These methods are used to obtain a list of events for a given period of time. The data is stored for up to 45 days, depending on your tariff, i. e. you may fetch all event data starting from 00:00:00 31 days ago and up to current time. For custom tarifs with big sending volumes event dumps are available only for the last 7 days.
|
|
6
|
+
|
|
7
|
+
`UniOne::Api::EventDump::EventDumpApi`, `client.event_dump`
|
|
8
|
+
|
|
9
|
+
| Method | Endpoint | Description |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| [`create`](#create) | `POST /event-dump/create.json` | This asynchronous method initiates the preparation of data dump in CSV format. The number of dump files created or stored is limited to 10; to order more files, you have to delete one of the previous ones or wait until they will be deleted automatically. A newly created dump file is kept for 8 hours. If the request period is more than a day or there are too many events then several files will be generated and each file will contain no more than 100,000 events. File contains columns with the following information - 'event_time', 'job_id', 'from_email', 'email', 'status', 'delivery_status', 'metadata', 'destination_response', 'user_agent', 'url', 'ip', 'tags' and 'project_id' (for accounts with projects enabled). You can change the fields and include 'subject' field using 'dump_fileds' parameter. |
|
|
12
|
+
| [`get`](#get) | `POST /event-dump/get.json` | Returns dump properties for a given identifier |
|
|
13
|
+
| [`list`](#list) | `POST /event-dump/list.json` | This method does not require any parameters; returns the full list of existing dumps. |
|
|
14
|
+
| [`delete`](#delete) | `POST /event-dump/delete.json` | Removes dump from queue or storage. |
|
|
15
|
+
|
|
16
|
+
## create
|
|
17
|
+
|
|
18
|
+
`POST /event-dump/create.json` · [Documentation](https://docs.unione.io/en/web-api-ref#event-dump-create)
|
|
19
|
+
|
|
20
|
+
This asynchronous method initiates the preparation of data dump in CSV format. The number of dump files created or stored is limited to 10; to order more files, you have to delete one of the previous ones or wait until they will be deleted automatically. A newly created dump file is kept for 8 hours. If the request period is more than a day or there are too many events then several files will be generated and each file will contain no more than 100,000 events. File contains columns with the following information - 'event_time', 'job_id', 'from_email', 'email', 'status', 'delivery_status', 'metadata', 'destination_response', 'user_agent', 'url', 'ip', 'tags' and 'project_id' (for accounts with projects enabled). You can change the fields and include 'subject' field using 'dump_fileds' parameter.
|
|
21
|
+
|
|
22
|
+
### Request: `EventDumpCreateRequest`
|
|
23
|
+
|
|
24
|
+
| Field | Type | Required | Description |
|
|
25
|
+
|---|---|---|---|
|
|
26
|
+
| `start_time` | `String` | yes | Date and time in YYYY-MM-DD hh:mm:ss format, specifying period start time. Data is stored for up to 32 days, depending on your tariff. |
|
|
27
|
+
| `end_time` | `String` | | Date and time in YYYY-MM-DD hh:mm:ss format, specifying period end time (non-inclusive). |
|
|
28
|
+
| `limit` | `Integer` | | Maximum number of events returned (default is 50). If this value is over 100 000, several files will be created, each having 100 000 events maximum. |
|
|
29
|
+
| `all_projects` | `Boolean` | | For accounts with projects enabled, the value all_projects=true allows to fetch data for all existing projects. |
|
|
30
|
+
| `filter` | `FilterObject` | | An object with the properties of the event dump filter. |
|
|
31
|
+
| `dump_fields` | `Array<String>` | | An array of strings containing the names of columns you need in your report, in your preferred order. If the 'dump_fields' array is missing or empty, a default field list and order will be applied. Allowed values, in their default order, are - 'project_id', 'event_time', 'job_id', 'from_email', 'email', 'status', 'delivery_status', 'metadata', 'destination_response', 'user_agent', 'url', 'ip', 'tags'. For maximum security, the 'subject' field is not included by default, but you can add it by explicitly including in the 'dump_fields' array. |
|
|
32
|
+
| `aggregate` | `String` | | Allows you to obtain aggregated statistics for a given time period. The two allowed values are:<br><br>- __day_status__ - fetch aggregated statistics (the filter value must be missing or empty, as filters are not allowed with this option);<br>- __an empty string__ - used by default, event_dump/create works as if the aggregate parameter is omitted. |
|
|
33
|
+
| `delimiter` | `String` | | Field delimiter, can be set to either ',' or ';', defaults to ','. |
|
|
34
|
+
| `format` | `String` | | File format, either “csv” (default) or “csv_gzip”. |
|
|
35
|
+
|
|
36
|
+
### Response: `EventDumpCreateResponse`
|
|
37
|
+
|
|
38
|
+
| Field | Type | Description |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `status` | `String` | "success" string (`success`) |
|
|
41
|
+
| `dump_id` | `String` | Dump identifier, used to call the [event-dump/get](https://docs.unione.io/en/web-api-ref#event-dump-get) method. |
|
|
42
|
+
|
|
43
|
+
### Example
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
require 'unione'
|
|
47
|
+
|
|
48
|
+
EventDump = UniOne::Api::EventDump::Model
|
|
49
|
+
|
|
50
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
51
|
+
|
|
52
|
+
response = client.event_dump.create(EventDump::EventDumpCreateRequest.new(
|
|
53
|
+
start_time: '2022-07-20 00:00:00',
|
|
54
|
+
end_time: '2022-07-21 00:00:00',
|
|
55
|
+
limit: 50,
|
|
56
|
+
dump_fields: ['string1'],
|
|
57
|
+
aggregate: 'day_status',
|
|
58
|
+
delimiter: ';',
|
|
59
|
+
format: 'csv'
|
|
60
|
+
))
|
|
61
|
+
p response.dump_id
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## get
|
|
65
|
+
|
|
66
|
+
`POST /event-dump/get.json` · [Documentation](https://docs.unione.io/en/web-api-ref#event-dump-get)
|
|
67
|
+
|
|
68
|
+
Returns dump properties for a given identifier
|
|
69
|
+
|
|
70
|
+
### Request: `EventDumpGetRequest`
|
|
71
|
+
|
|
72
|
+
| Field | Type | Required | Description |
|
|
73
|
+
|---|---|---|---|
|
|
74
|
+
| `dump_id` | `String` | yes | Dump identifier received by the method [event-dump/create](https://docs.unione.io/en/web-api-ref#event-dump-create). |
|
|
75
|
+
|
|
76
|
+
### Response: `EventDumpGetResponse`
|
|
77
|
+
|
|
78
|
+
| Field | Type | Description |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
| `status` | `String` | "success" string (`success`) |
|
|
81
|
+
| `event_dump` | `EventDumpObject` | An object with the properties of the event dump. |
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```ruby
|
|
86
|
+
require 'unione'
|
|
87
|
+
|
|
88
|
+
EventDump = UniOne::Api::EventDump::Model
|
|
89
|
+
|
|
90
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
91
|
+
|
|
92
|
+
response = client.event_dump.get(EventDump::EventDumpGetRequest.new(
|
|
93
|
+
dump_id: 'Gqfasjh34tlasd'
|
|
94
|
+
))
|
|
95
|
+
p response.event_dump
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## list
|
|
99
|
+
|
|
100
|
+
`POST /event-dump/list.json` · [Documentation](https://docs.unione.io/en/web-api-ref#event-dump-list)
|
|
101
|
+
|
|
102
|
+
This method does not require any parameters; returns the full list of existing dumps.
|
|
103
|
+
|
|
104
|
+
### Request
|
|
105
|
+
|
|
106
|
+
The method has no parameters.
|
|
107
|
+
|
|
108
|
+
### Response: `EventDumpListResponse`
|
|
109
|
+
|
|
110
|
+
| Field | Type | Description |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| `status` | `String` | "success" string (`success`) |
|
|
113
|
+
| `event_dumps` | `Array<EventDumpObject>` | An array of objects describing event dumps. Each object is similar to 'event_dump' object returned by the [event-dump/get](https://docs.unione.io/en/web-api-ref#event-dump-get) method. |
|
|
114
|
+
|
|
115
|
+
### Example
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
require 'unione'
|
|
119
|
+
|
|
120
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
121
|
+
|
|
122
|
+
response = client.event_dump.list
|
|
123
|
+
p response.event_dumps
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## delete
|
|
127
|
+
|
|
128
|
+
`POST /event-dump/delete.json` · [Documentation](https://docs.unione.io/en/web-api-ref#event-dump-delete)
|
|
129
|
+
|
|
130
|
+
Removes dump from queue or storage.
|
|
131
|
+
|
|
132
|
+
### Request: `EventDumpDeleteRequest`
|
|
133
|
+
|
|
134
|
+
| Field | Type | Required | Description |
|
|
135
|
+
|---|---|---|---|
|
|
136
|
+
| `dump_id` | `String` | yes | Dump identifier, obtained via the [event-dump/create](https://docs.unione.io/en/web-api-ref#event-dump-create) method. |
|
|
137
|
+
|
|
138
|
+
### Response: `SuccessResponse`
|
|
139
|
+
|
|
140
|
+
| Field | Type | Description |
|
|
141
|
+
|---|---|---|
|
|
142
|
+
| `status` | `String` | "success" string (`success`) |
|
|
143
|
+
|
|
144
|
+
### Example
|
|
145
|
+
|
|
146
|
+
```ruby
|
|
147
|
+
require 'unione'
|
|
148
|
+
|
|
149
|
+
EventDump = UniOne::Api::EventDump::Model
|
|
150
|
+
|
|
151
|
+
client = UniOne.client('YOUR_API_KEY')
|
|
152
|
+
|
|
153
|
+
response = client.event_dump.delete(EventDump::EventDumpDeleteRequest.new(
|
|
154
|
+
dump_id: 'Gqfasjh34tlasd'
|
|
155
|
+
))
|
|
156
|
+
p response
|
|
157
|
+
```
|