mimepost 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +144 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountProfile.md +23 -0
  6. data/docs/AccountProfileResponse.md +10 -0
  7. data/docs/AccountSettings.md +9 -0
  8. data/docs/AccountsApi.md +216 -0
  9. data/docs/ApiResponse.md +10 -0
  10. data/docs/ApiResponseAllWebhooks.md +10 -0
  11. data/docs/ApiResponseAllWebhooksData.md +13 -0
  12. data/docs/ApiResponseDomainsList.md +10 -0
  13. data/docs/ApiResponseDomainsListData.md +20 -0
  14. data/docs/ApiResponseEmaillogs.md +10 -0
  15. data/docs/ApiResponseEmaillogsData.md +12 -0
  16. data/docs/ApiResponseSingleWebhooks.md +10 -0
  17. data/docs/ApiResponseStats.md +10 -0
  18. data/docs/ApiResponseStatsData.md +10 -0
  19. data/docs/ApiResponseStatsDataDatewiseSummary.md +8 -0
  20. data/docs/ApiResponseStatsDataGraphSummary.md +9 -0
  21. data/docs/ApiResponseStatsDataTotalSummary.md +8 -0
  22. data/docs/ApiResponseStatsDataTotalSummaryStatus.md +9 -0
  23. data/docs/ApiResponseWebhooks.md +10 -0
  24. data/docs/ApiResponseWebhooksData.md +8 -0
  25. data/docs/Domain.md +8 -0
  26. data/docs/DomainsApi.md +427 -0
  27. data/docs/Email.md +17 -0
  28. data/docs/EmailAttachments.md +10 -0
  29. data/docs/EmailGlobalMergeVars.md +9 -0
  30. data/docs/EmailMergeVars.md +9 -0
  31. data/docs/EmailTo.md +9 -0
  32. data/docs/EmailsApi.md +63 -0
  33. data/docs/StatsApi.md +130 -0
  34. data/docs/Webhook.md +11 -0
  35. data/docs/Webhook1.md +11 -0
  36. data/docs/WebhooksApi.md +272 -0
  37. data/example.accounts.rb +22 -0
  38. data/git_push.sh +55 -0
  39. data/lib/mimepost.rb +71 -0
  40. data/lib/mimepost/api/accounts_api.rb +227 -0
  41. data/lib/mimepost/api/domains_api.rb +429 -0
  42. data/lib/mimepost/api/emails_api.rb +77 -0
  43. data/lib/mimepost/api/stats_api.rb +158 -0
  44. data/lib/mimepost/api/webhooks_api.rb +275 -0
  45. data/lib/mimepost/api_client.rb +391 -0
  46. data/lib/mimepost/api_error.rb +38 -0
  47. data/lib/mimepost/configuration.rb +209 -0
  48. data/lib/mimepost/models/account_profile.rb +325 -0
  49. data/lib/mimepost/models/account_profile_response.rb +203 -0
  50. data/lib/mimepost/models/account_settings.rb +194 -0
  51. data/lib/mimepost/models/api_response.rb +203 -0
  52. data/lib/mimepost/models/api_response_all_webhooks.rb +205 -0
  53. data/lib/mimepost/models/api_response_all_webhooks_data.rb +231 -0
  54. data/lib/mimepost/models/api_response_domains_list.rb +205 -0
  55. data/lib/mimepost/models/api_response_domains_list_data.rb +326 -0
  56. data/lib/mimepost/models/api_response_emaillogs.rb +205 -0
  57. data/lib/mimepost/models/api_response_emaillogs_data.rb +220 -0
  58. data/lib/mimepost/models/api_response_single_webhooks.rb +203 -0
  59. data/lib/mimepost/models/api_response_stats.rb +203 -0
  60. data/lib/mimepost/models/api_response_stats_data.rb +202 -0
  61. data/lib/mimepost/models/api_response_stats_data_datewise_summary.rb +184 -0
  62. data/lib/mimepost/models/api_response_stats_data_graph_summary.rb +197 -0
  63. data/lib/mimepost/models/api_response_stats_data_total_summary.rb +184 -0
  64. data/lib/mimepost/models/api_response_stats_data_total_summary_status.rb +193 -0
  65. data/lib/mimepost/models/api_response_webhooks.rb +203 -0
  66. data/lib/mimepost/models/api_response_webhooks_data.rb +184 -0
  67. data/lib/mimepost/models/domain.rb +189 -0
  68. data/lib/mimepost/models/email.rb +297 -0
  69. data/lib/mimepost/models/email_attachments.rb +202 -0
  70. data/lib/mimepost/models/email_global_merge_vars.rb +193 -0
  71. data/lib/mimepost/models/email_merge_vars.rb +193 -0
  72. data/lib/mimepost/models/email_to.rb +195 -0
  73. data/lib/mimepost/models/webhook.rb +223 -0
  74. data/lib/mimepost/models/webhook_1.rb +223 -0
  75. data/lib/mimepost/version.rb +15 -0
  76. data/mimepost.gemspec +46 -0
  77. data/spec/api/accounts_api_spec.rb +81 -0
  78. data/spec/api/domains_api_spec.rb +122 -0
  79. data/spec/api/emails_api_spec.rb +47 -0
  80. data/spec/api/stats_api_spec.rb +63 -0
  81. data/spec/api/webhooks_api_spec.rb +90 -0
  82. data/spec/api_client_spec.rb +243 -0
  83. data/spec/configuration_spec.rb +42 -0
  84. data/spec/models/account_profile_response_spec.rb +53 -0
  85. data/spec/models/account_profile_spec.rb +131 -0
  86. data/spec/models/account_settings_spec.rb +47 -0
  87. data/spec/models/api_response_all_webhooks_data_spec.rb +71 -0
  88. data/spec/models/api_response_all_webhooks_spec.rb +53 -0
  89. data/spec/models/api_response_domains_list_data_spec.rb +117 -0
  90. data/spec/models/api_response_domains_list_spec.rb +53 -0
  91. data/spec/models/api_response_emaillogs_data_spec.rb +65 -0
  92. data/spec/models/api_response_emaillogs_spec.rb +53 -0
  93. data/spec/models/api_response_single_webhooks_spec.rb +53 -0
  94. data/spec/models/api_response_spec.rb +53 -0
  95. data/spec/models/api_response_stats_data_datewise_summary_spec.rb +41 -0
  96. data/spec/models/api_response_stats_data_graph_summary_spec.rb +47 -0
  97. data/spec/models/api_response_stats_data_spec.rb +53 -0
  98. data/spec/models/api_response_stats_data_total_summary_spec.rb +41 -0
  99. data/spec/models/api_response_stats_data_total_summary_status_spec.rb +47 -0
  100. data/spec/models/api_response_stats_spec.rb +53 -0
  101. data/spec/models/api_response_webhooks_data_spec.rb +41 -0
  102. data/spec/models/api_response_webhooks_spec.rb +53 -0
  103. data/spec/models/domain_spec.rb +41 -0
  104. data/spec/models/email_attachments_spec.rb +53 -0
  105. data/spec/models/email_global_merge_vars_spec.rb +47 -0
  106. data/spec/models/email_merge_vars_spec.rb +47 -0
  107. data/spec/models/email_spec.rb +95 -0
  108. data/spec/models/email_to_spec.rb +47 -0
  109. data/spec/models/webhook_1_spec.rb +59 -0
  110. data/spec/models/webhook_spec.rb +59 -0
  111. data/spec/spec_helper.rb +111 -0
  112. metadata +390 -0
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseAllWebhooks
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**Array<ApiResponseAllWebhooksData>**](ApiResponseAllWebhooksData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,13 @@
1
+ # Mimepost::ApiResponseAllWebhooksData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **entered** | **String** | | [optional]
8
+ **url** | **String** | | [optional]
9
+ **active** | **Integer** | | [optional]
10
+ **desc** | **String** | | [optional]
11
+ **events** | **Array<String>** | | [optional]
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseDomainsList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**Array<ApiResponseDomainsListData>**](ApiResponseDomainsListData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,20 @@
1
+ # Mimepost::ApiResponseDomainsListData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **domain** | **String** | | [optional]
8
+ **selector** | **String** | | [optional]
9
+ **instance_name** | **String** | | [optional]
10
+ **spf_verified** | **Integer** | | [optional]
11
+ **dkim_verified** | **Integer** | | [optional]
12
+ **tracking_verified** | **Integer** | | [optional]
13
+ **verified** | **Integer** | | [optional]
14
+ **approved** | **Integer** | | [optional]
15
+ **status** | **String** | | [optional]
16
+ **status_desc** | **String** | | [optional]
17
+ **entered** | **String** | | [optional]
18
+ **active** | **Integer** | | [optional]
19
+
20
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseEmaillogs
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**Array<ApiResponseEmaillogsData>**](ApiResponseEmaillogsData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # Mimepost::ApiResponseEmaillogsData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **datetime** | **String** | | [optional]
7
+ **message_id** | **String** | | [optional]
8
+ **to_email** | **String** | | [optional]
9
+ **status** | **String** | | [optional]
10
+ **details** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseSingleWebhooks
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**ApiResponseAllWebhooksData**](ApiResponseAllWebhooksData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseStats
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**ApiResponseStatsData**](ApiResponseStatsData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseStatsData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total_summary** | [**ApiResponseStatsDataTotalSummary**](ApiResponseStatsDataTotalSummary.md) | | [optional]
7
+ **datewise_summary** | [**ApiResponseStatsDataDatewiseSummary**](ApiResponseStatsDataDatewiseSummary.md) | | [optional]
8
+ **graph_summary** | [**ApiResponseStatsDataGraphSummary**](ApiResponseStatsDataGraphSummary.md) | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Mimepost::ApiResponseStatsDataDatewiseSummary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **date** | [**ApiResponseStatsDataTotalSummary**](ApiResponseStatsDataTotalSummary.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Mimepost::ApiResponseStatsDataGraphSummary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **dates** | **Array<String>** | | [optional]
7
+ **status_counts** | **Array<Integer>** | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Mimepost::ApiResponseStatsDataTotalSummary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | [**ApiResponseStatsDataTotalSummaryStatus**](ApiResponseStatsDataTotalSummaryStatus.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Mimepost::ApiResponseStatsDataTotalSummaryStatus
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **count** | **Integer** | | [optional]
7
+ **perc** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::ApiResponseWebhooks
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **Integer** | Success status, 0 for failed 1 for success | [optional]
7
+ **message** | **String** | | [optional]
8
+ **data** | [**ApiResponseWebhooksData**](ApiResponseWebhooksData.md) | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Mimepost::ApiResponseWebhooksData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+
8
+
data/docs/Domain.md ADDED
@@ -0,0 +1,8 @@
1
+ # Mimepost::Domain
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **domain** | **String** | |
7
+
8
+
@@ -0,0 +1,427 @@
1
+ # Mimepost::DomainsApi
2
+
3
+ All URIs are relative to *https://api.mimepost.com/v1/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**domains_get**](DomainsApi.md#domains_get) | **GET** /domains/ | Get a list of all the domains
8
+ [**domains_id_approve_post**](DomainsApi.md#domains_id_approve_post) | **POST** /domains/{id}/approve/ | Submit request for the approval of a verified domain
9
+ [**domains_id_delete**](DomainsApi.md#domains_id_delete) | **DELETE** /domains/{id} | Remove a single domain
10
+ [**domains_id_get**](DomainsApi.md#domains_id_get) | **GET** /domains/{id} | Get the details of a single domain
11
+ [**domains_id_verify_dkim_post**](DomainsApi.md#domains_id_verify_dkim_post) | **POST** /domains/{id}/verify_dkim/ | Request for the verification of DKIM record for a single domain
12
+ [**domains_id_verify_spf_post**](DomainsApi.md#domains_id_verify_spf_post) | **POST** /domains/{id}/verify_spf/ | Request for the verification of SPF record for a single domain
13
+ [**domains_id_verify_tracking_post**](DomainsApi.md#domains_id_verify_tracking_post) | **POST** /domains/{id}/verify_tracking/ | Request for the verification of tracking record for a single domain
14
+ [**domains_post**](DomainsApi.md#domains_post) | **POST** /domains/ | Add single domain
15
+
16
+
17
+ # **domains_get**
18
+ > ApiResponseDomainsList domains_get
19
+
20
+ Get a list of all the domains
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'mimepost'
26
+ # setup authorization
27
+ Mimepost.configure do |config|
28
+ # Configure API key authorization: api_key
29
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = Mimepost::DomainsApi.new
35
+
36
+ begin
37
+ #Get a list of all the domains
38
+ result = api_instance.domains_get
39
+ p result
40
+ rescue Mimepost::ApiError => e
41
+ puts "Exception when calling DomainsApi->domains_get: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+ This endpoint does not need any parameter.
47
+
48
+ ### Return type
49
+
50
+ [**ApiResponseDomainsList**](ApiResponseDomainsList.md)
51
+
52
+ ### Authorization
53
+
54
+ [api_key](../README.md#api_key)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **domains_id_approve_post**
64
+ > ApiResponse domains_id_approve_post(id)
65
+
66
+ Submit request for the approval of a verified domain
67
+
68
+ ### Example
69
+ ```ruby
70
+ # load the gem
71
+ require 'mimepost'
72
+ # setup authorization
73
+ Mimepost.configure do |config|
74
+ # Configure API key authorization: api_key
75
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
76
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
77
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
78
+ end
79
+
80
+ api_instance = Mimepost::DomainsApi.new
81
+
82
+ id = 56 # Integer |
83
+
84
+
85
+ begin
86
+ #Submit request for the approval of a verified domain
87
+ result = api_instance.domains_id_approve_post(id)
88
+ p result
89
+ rescue Mimepost::ApiError => e
90
+ puts "Exception when calling DomainsApi->domains_id_approve_post: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ Name | Type | Description | Notes
97
+ ------------- | ------------- | ------------- | -------------
98
+ **id** | **Integer**| |
99
+
100
+ ### Return type
101
+
102
+ [**ApiResponse**](ApiResponse.md)
103
+
104
+ ### Authorization
105
+
106
+ [api_key](../README.md#api_key)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: application/json
111
+ - **Accept**: application/json
112
+
113
+
114
+
115
+ # **domains_id_delete**
116
+ > ApiResponse domains_id_delete(id)
117
+
118
+ Remove a single domain
119
+
120
+ ### Example
121
+ ```ruby
122
+ # load the gem
123
+ require 'mimepost'
124
+ # setup authorization
125
+ Mimepost.configure do |config|
126
+ # Configure API key authorization: api_key
127
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
128
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
129
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
130
+ end
131
+
132
+ api_instance = Mimepost::DomainsApi.new
133
+
134
+ id = 56 # Integer |
135
+
136
+
137
+ begin
138
+ #Remove a single domain
139
+ result = api_instance.domains_id_delete(id)
140
+ p result
141
+ rescue Mimepost::ApiError => e
142
+ puts "Exception when calling DomainsApi->domains_id_delete: #{e}"
143
+ end
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+ Name | Type | Description | Notes
149
+ ------------- | ------------- | ------------- | -------------
150
+ **id** | **Integer**| |
151
+
152
+ ### Return type
153
+
154
+ [**ApiResponse**](ApiResponse.md)
155
+
156
+ ### Authorization
157
+
158
+ [api_key](../README.md#api_key)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: application/json
163
+ - **Accept**: application/json
164
+
165
+
166
+
167
+ # **domains_id_get**
168
+ > ApiResponseDomainsList domains_id_get(id)
169
+
170
+ Get the details of a single domain
171
+
172
+ ### Example
173
+ ```ruby
174
+ # load the gem
175
+ require 'mimepost'
176
+ # setup authorization
177
+ Mimepost.configure do |config|
178
+ # Configure API key authorization: api_key
179
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
180
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
181
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
182
+ end
183
+
184
+ api_instance = Mimepost::DomainsApi.new
185
+
186
+ id = 56 # Integer |
187
+
188
+
189
+ begin
190
+ #Get the details of a single domain
191
+ result = api_instance.domains_id_get(id)
192
+ p result
193
+ rescue Mimepost::ApiError => e
194
+ puts "Exception when calling DomainsApi->domains_id_get: #{e}"
195
+ end
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ Name | Type | Description | Notes
201
+ ------------- | ------------- | ------------- | -------------
202
+ **id** | **Integer**| |
203
+
204
+ ### Return type
205
+
206
+ [**ApiResponseDomainsList**](ApiResponseDomainsList.md)
207
+
208
+ ### Authorization
209
+
210
+ [api_key](../README.md#api_key)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: application/json
215
+ - **Accept**: application/json
216
+
217
+
218
+
219
+ # **domains_id_verify_dkim_post**
220
+ > ApiResponse domains_id_verify_dkim_post(id)
221
+
222
+ Request for the verification of DKIM record for a single domain
223
+
224
+ ### Example
225
+ ```ruby
226
+ # load the gem
227
+ require 'mimepost'
228
+ # setup authorization
229
+ Mimepost.configure do |config|
230
+ # Configure API key authorization: api_key
231
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
232
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
233
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
234
+ end
235
+
236
+ api_instance = Mimepost::DomainsApi.new
237
+
238
+ id = 56 # Integer |
239
+
240
+
241
+ begin
242
+ #Request for the verification of DKIM record for a single domain
243
+ result = api_instance.domains_id_verify_dkim_post(id)
244
+ p result
245
+ rescue Mimepost::ApiError => e
246
+ puts "Exception when calling DomainsApi->domains_id_verify_dkim_post: #{e}"
247
+ end
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+ Name | Type | Description | Notes
253
+ ------------- | ------------- | ------------- | -------------
254
+ **id** | **Integer**| |
255
+
256
+ ### Return type
257
+
258
+ [**ApiResponse**](ApiResponse.md)
259
+
260
+ ### Authorization
261
+
262
+ [api_key](../README.md#api_key)
263
+
264
+ ### HTTP request headers
265
+
266
+ - **Content-Type**: application/json
267
+ - **Accept**: application/json
268
+
269
+
270
+
271
+ # **domains_id_verify_spf_post**
272
+ > ApiResponse domains_id_verify_spf_post(id)
273
+
274
+ Request for the verification of SPF record for a single domain
275
+
276
+ ### Example
277
+ ```ruby
278
+ # load the gem
279
+ require 'mimepost'
280
+ # setup authorization
281
+ Mimepost.configure do |config|
282
+ # Configure API key authorization: api_key
283
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
284
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
285
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
286
+ end
287
+
288
+ api_instance = Mimepost::DomainsApi.new
289
+
290
+ id = 56 # Integer |
291
+
292
+
293
+ begin
294
+ #Request for the verification of SPF record for a single domain
295
+ result = api_instance.domains_id_verify_spf_post(id)
296
+ p result
297
+ rescue Mimepost::ApiError => e
298
+ puts "Exception when calling DomainsApi->domains_id_verify_spf_post: #{e}"
299
+ end
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ Name | Type | Description | Notes
305
+ ------------- | ------------- | ------------- | -------------
306
+ **id** | **Integer**| |
307
+
308
+ ### Return type
309
+
310
+ [**ApiResponse**](ApiResponse.md)
311
+
312
+ ### Authorization
313
+
314
+ [api_key](../README.md#api_key)
315
+
316
+ ### HTTP request headers
317
+
318
+ - **Content-Type**: application/json
319
+ - **Accept**: application/json
320
+
321
+
322
+
323
+ # **domains_id_verify_tracking_post**
324
+ > ApiResponse domains_id_verify_tracking_post(id)
325
+
326
+ Request for the verification of tracking record for a single domain
327
+
328
+ ### Example
329
+ ```ruby
330
+ # load the gem
331
+ require 'mimepost'
332
+ # setup authorization
333
+ Mimepost.configure do |config|
334
+ # Configure API key authorization: api_key
335
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
336
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
337
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
338
+ end
339
+
340
+ api_instance = Mimepost::DomainsApi.new
341
+
342
+ id = 56 # Integer |
343
+
344
+
345
+ begin
346
+ #Request for the verification of tracking record for a single domain
347
+ result = api_instance.domains_id_verify_tracking_post(id)
348
+ p result
349
+ rescue Mimepost::ApiError => e
350
+ puts "Exception when calling DomainsApi->domains_id_verify_tracking_post: #{e}"
351
+ end
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ Name | Type | Description | Notes
357
+ ------------- | ------------- | ------------- | -------------
358
+ **id** | **Integer**| |
359
+
360
+ ### Return type
361
+
362
+ [**ApiResponse**](ApiResponse.md)
363
+
364
+ ### Authorization
365
+
366
+ [api_key](../README.md#api_key)
367
+
368
+ ### HTTP request headers
369
+
370
+ - **Content-Type**: application/json
371
+ - **Accept**: application/json
372
+
373
+
374
+
375
+ # **domains_post**
376
+ > ApiResponse domains_post(opts)
377
+
378
+ Add single domain
379
+
380
+ ### Example
381
+ ```ruby
382
+ # load the gem
383
+ require 'mimepost'
384
+ # setup authorization
385
+ Mimepost.configure do |config|
386
+ # Configure API key authorization: api_key
387
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
388
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
389
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
390
+ end
391
+
392
+ api_instance = Mimepost::DomainsApi.new
393
+
394
+ opts = {
395
+ domain: Mimepost::Domain.new # Domain | The name of the domain name
396
+ }
397
+
398
+ begin
399
+ #Add single domain
400
+ result = api_instance.domains_post(opts)
401
+ p result
402
+ rescue Mimepost::ApiError => e
403
+ puts "Exception when calling DomainsApi->domains_post: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ Name | Type | Description | Notes
410
+ ------------- | ------------- | ------------- | -------------
411
+ **domain** | [**Domain**](Domain.md)| The name of the domain name | [optional]
412
+
413
+ ### Return type
414
+
415
+ [**ApiResponse**](ApiResponse.md)
416
+
417
+ ### Authorization
418
+
419
+ [api_key](../README.md#api_key)
420
+
421
+ ### HTTP request headers
422
+
423
+ - **Content-Type**: application/json
424
+ - **Accept**: application/json
425
+
426
+
427
+