mimepost 1.0.0

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.
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
data/docs/Email.md ADDED
@@ -0,0 +1,17 @@
1
+ # Mimepost::Email
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **html** | **String** | |
7
+ **subject** | **String** | |
8
+ **from_email** | **String** | |
9
+ **from_name** | **String** | | [optional]
10
+ **global_merge_vars** | [**Array<EmailGlobalMergeVars>**](EmailGlobalMergeVars.md) | | [optional]
11
+ **to** | [**Array<EmailTo>**](EmailTo.md) | |
12
+ **cc** | **Array<String>** | | [optional]
13
+ **bcc** | **Array<String>** | | [optional]
14
+ **attachments** | [**Array<EmailAttachments>**](EmailAttachments.md) | | [optional]
15
+ **vars** | **Hash<String, String>** | | [optional]
16
+
17
+
@@ -0,0 +1,10 @@
1
+ # Mimepost::EmailAttachments
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **type** | **String** | | [optional]
8
+ **content** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # Mimepost::EmailGlobalMergeVars
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **value** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Mimepost::EmailMergeVars
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **value** | **String** | | [optional]
8
+
9
+
data/docs/EmailTo.md ADDED
@@ -0,0 +1,9 @@
1
+ # Mimepost::EmailTo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | | [optional]
7
+ **merge_vars** | [**Array<EmailMergeVars>**](EmailMergeVars.md) | | [optional]
8
+
9
+
data/docs/EmailsApi.md ADDED
@@ -0,0 +1,63 @@
1
+ # Mimepost::EmailsApi
2
+
3
+ All URIs are relative to *https://api.mimepost.com/v1/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**send_email**](EmailsApi.md#send_email) | **POST** /emails/ | Send email
8
+
9
+
10
+ # **send_email**
11
+ > ApiResponse send_email(body)
12
+
13
+ Send email
14
+
15
+
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'mimepost'
21
+ # setup authorization
22
+ Mimepost.configure do |config|
23
+ # Configure API key authorization: api_key
24
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = Mimepost::EmailsApi.new
30
+
31
+ body = Mimepost::Email.new # Email | Single Email object
32
+
33
+
34
+ begin
35
+ #Send email
36
+ result = api_instance.send_email(body)
37
+ p result
38
+ rescue Mimepost::ApiError => e
39
+ puts "Exception when calling EmailsApi->send_email: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **body** | [**Email**](Email.md)| Single Email object |
48
+
49
+ ### Return type
50
+
51
+ [**ApiResponse**](ApiResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [api_key](../README.md#api_key)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+
data/docs/StatsApi.md ADDED
@@ -0,0 +1,130 @@
1
+ # Mimepost::StatsApi
2
+
3
+ All URIs are relative to *https://api.mimepost.com/v1/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**emaillogs_get**](StatsApi.md#emaillogs_get) | **GET** /emaillogs/ | Get the logs of a particular date
8
+ [**stats_get**](StatsApi.md#stats_get) | **GET** /stats/ | Get the summary of stats for a range of dates
9
+
10
+
11
+ # **emaillogs_get**
12
+ > ApiResponseEmaillogs emaillogs_get(start_date, end_date, opts)
13
+
14
+ Get the logs of a particular date
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'mimepost'
20
+ # setup authorization
21
+ Mimepost.configure do |config|
22
+ # Configure API key authorization: api_key
23
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
24
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
25
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
26
+ end
27
+
28
+ api_instance = Mimepost::StatsApi.new
29
+
30
+ start_date = 'start_date_example' # String | Start Date in yyyymmdd format example 20190801
31
+
32
+ end_date = 'end_date_example' # String | End Date in yyyymmdd format example 20190803
33
+
34
+ opts = {
35
+ status: 'status_example', # String |
36
+ to: 'to_example', # String |
37
+ page: 56, # Integer |
38
+ limit: 56 # Integer |
39
+ }
40
+
41
+ begin
42
+ #Get the logs of a particular date
43
+ result = api_instance.emaillogs_get(start_date, end_date, opts)
44
+ p result
45
+ rescue Mimepost::ApiError => e
46
+ puts "Exception when calling StatsApi->emaillogs_get: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **start_date** | **String**| Start Date in yyyymmdd format example 20190801 |
55
+ **end_date** | **String**| End Date in yyyymmdd format example 20190803 |
56
+ **status** | **String**| | [optional]
57
+ **to** | **String**| | [optional]
58
+ **page** | **Integer**| | [optional]
59
+ **limit** | **Integer**| | [optional]
60
+
61
+ ### Return type
62
+
63
+ [**ApiResponseEmaillogs**](ApiResponseEmaillogs.md)
64
+
65
+ ### Authorization
66
+
67
+ [api_key](../README.md#api_key)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: application/json
72
+ - **Accept**: application/json
73
+
74
+
75
+
76
+ # **stats_get**
77
+ > ApiResponseStats stats_get(start_date, end_date)
78
+
79
+ Get the summary of stats for a range of dates
80
+
81
+ ### Example
82
+ ```ruby
83
+ # load the gem
84
+ require 'mimepost'
85
+ # setup authorization
86
+ Mimepost.configure do |config|
87
+ # Configure API key authorization: api_key
88
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
89
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
90
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
91
+ end
92
+
93
+ api_instance = Mimepost::StatsApi.new
94
+
95
+ start_date = 'start_date_example' # String | Start Date in yyyymmdd format example 20190801
96
+
97
+ end_date = 'end_date_example' # String | End Date in yyyymmdd format example 20190803
98
+
99
+
100
+ begin
101
+ #Get the summary of stats for a range of dates
102
+ result = api_instance.stats_get(start_date, end_date)
103
+ p result
104
+ rescue Mimepost::ApiError => e
105
+ puts "Exception when calling StatsApi->stats_get: #{e}"
106
+ end
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ Name | Type | Description | Notes
112
+ ------------- | ------------- | ------------- | -------------
113
+ **start_date** | **String**| Start Date in yyyymmdd format example 20190801 |
114
+ **end_date** | **String**| End Date in yyyymmdd format example 20190803 |
115
+
116
+ ### Return type
117
+
118
+ [**ApiResponseStats**](ApiResponseStats.md)
119
+
120
+ ### Authorization
121
+
122
+ [api_key](../README.md#api_key)
123
+
124
+ ### HTTP request headers
125
+
126
+ - **Content-Type**: application/json
127
+ - **Accept**: application/json
128
+
129
+
130
+
data/docs/Webhook.md ADDED
@@ -0,0 +1,11 @@
1
+ # Mimepost::Webhook
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **desc** | **String** | |
7
+ **url** | **String** | |
8
+ **events** | **Array<String>** | | [optional]
9
+ **active** | **Integer** | | [optional]
10
+
11
+
data/docs/Webhook1.md ADDED
@@ -0,0 +1,11 @@
1
+ # Mimepost::Webhook1
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **desc** | **String** | |
7
+ **url** | **String** | |
8
+ **events** | **Array<String>** | | [optional]
9
+ **active** | **Integer** | | [optional]
10
+
11
+
@@ -0,0 +1,272 @@
1
+ # Mimepost::WebhooksApi
2
+
3
+ All URIs are relative to *https://api.mimepost.com/v1/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**webhooks_get**](WebhooksApi.md#webhooks_get) | **GET** /webhooks/ | Get the list of all the webhooks
8
+ [**webhooks_id_delete**](WebhooksApi.md#webhooks_id_delete) | **DELETE** /webhooks/{id} | Remove a single webhook
9
+ [**webhooks_id_get**](WebhooksApi.md#webhooks_id_get) | **GET** /webhooks/{id} | Get the details of a single webhook
10
+ [**webhooks_id_put**](WebhooksApi.md#webhooks_id_put) | **PUT** /webhooks/{id} | Update the details of a single webhook
11
+ [**webhooks_post**](WebhooksApi.md#webhooks_post) | **POST** /webhooks/ | Add single webhook
12
+
13
+
14
+ # **webhooks_get**
15
+ > ApiResponseAllWebhooks webhooks_get
16
+
17
+ Get the list of all the webhooks
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'mimepost'
23
+ # setup authorization
24
+ Mimepost.configure do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = Mimepost::WebhooksApi.new
32
+
33
+ begin
34
+ #Get the list of all the webhooks
35
+ result = api_instance.webhooks_get
36
+ p result
37
+ rescue Mimepost::ApiError => e
38
+ puts "Exception when calling WebhooksApi->webhooks_get: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+ This endpoint does not need any parameter.
44
+
45
+ ### Return type
46
+
47
+ [**ApiResponseAllWebhooks**](ApiResponseAllWebhooks.md)
48
+
49
+ ### Authorization
50
+
51
+ [api_key](../README.md#api_key)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+
60
+ # **webhooks_id_delete**
61
+ > ApiResponse webhooks_id_delete(id)
62
+
63
+ Remove a single webhook
64
+
65
+ ### Example
66
+ ```ruby
67
+ # load the gem
68
+ require 'mimepost'
69
+ # setup authorization
70
+ Mimepost.configure do |config|
71
+ # Configure API key authorization: api_key
72
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
73
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
74
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
75
+ end
76
+
77
+ api_instance = Mimepost::WebhooksApi.new
78
+
79
+ id = 56 # Integer |
80
+
81
+
82
+ begin
83
+ #Remove a single webhook
84
+ result = api_instance.webhooks_id_delete(id)
85
+ p result
86
+ rescue Mimepost::ApiError => e
87
+ puts "Exception when calling WebhooksApi->webhooks_id_delete: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **id** | **Integer**| |
96
+
97
+ ### Return type
98
+
99
+ [**ApiResponse**](ApiResponse.md)
100
+
101
+ ### Authorization
102
+
103
+ [api_key](../README.md#api_key)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+
112
+ # **webhooks_id_get**
113
+ > ApiResponseSingleWebhooks webhooks_id_get(id)
114
+
115
+ Get the details of a single webhook
116
+
117
+ ### Example
118
+ ```ruby
119
+ # load the gem
120
+ require 'mimepost'
121
+ # setup authorization
122
+ Mimepost.configure do |config|
123
+ # Configure API key authorization: api_key
124
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
125
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
126
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
127
+ end
128
+
129
+ api_instance = Mimepost::WebhooksApi.new
130
+
131
+ id = 56 # Integer |
132
+
133
+
134
+ begin
135
+ #Get the details of a single webhook
136
+ result = api_instance.webhooks_id_get(id)
137
+ p result
138
+ rescue Mimepost::ApiError => e
139
+ puts "Exception when calling WebhooksApi->webhooks_id_get: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ Name | Type | Description | Notes
146
+ ------------- | ------------- | ------------- | -------------
147
+ **id** | **Integer**| |
148
+
149
+ ### Return type
150
+
151
+ [**ApiResponseSingleWebhooks**](ApiResponseSingleWebhooks.md)
152
+
153
+ ### Authorization
154
+
155
+ [api_key](../README.md#api_key)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+
164
+ # **webhooks_id_put**
165
+ > ApiResponseSingleWebhooks webhooks_id_put(id, opts)
166
+
167
+ Update the details of a single webhook
168
+
169
+ ### Example
170
+ ```ruby
171
+ # load the gem
172
+ require 'mimepost'
173
+ # setup authorization
174
+ Mimepost.configure do |config|
175
+ # Configure API key authorization: api_key
176
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
179
+ end
180
+
181
+ api_instance = Mimepost::WebhooksApi.new
182
+
183
+ id = 56 # Integer |
184
+
185
+ opts = {
186
+ webhook: Mimepost::Webhook1.new # Webhook1 |
187
+ }
188
+
189
+ begin
190
+ #Update the details of a single webhook
191
+ result = api_instance.webhooks_id_put(id, opts)
192
+ p result
193
+ rescue Mimepost::ApiError => e
194
+ puts "Exception when calling WebhooksApi->webhooks_id_put: #{e}"
195
+ end
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ Name | Type | Description | Notes
201
+ ------------- | ------------- | ------------- | -------------
202
+ **id** | **Integer**| |
203
+ **webhook** | [**Webhook1**](Webhook1.md)| | [optional]
204
+
205
+ ### Return type
206
+
207
+ [**ApiResponseSingleWebhooks**](ApiResponseSingleWebhooks.md)
208
+
209
+ ### Authorization
210
+
211
+ [api_key](../README.md#api_key)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: application/json
216
+ - **Accept**: application/json
217
+
218
+
219
+
220
+ # **webhooks_post**
221
+ > ApiResponseWebhooks webhooks_post(opts)
222
+
223
+ Add single webhook
224
+
225
+ ### Example
226
+ ```ruby
227
+ # load the gem
228
+ require 'mimepost'
229
+ # setup authorization
230
+ Mimepost.configure do |config|
231
+ # Configure API key authorization: api_key
232
+ config.api_key['X-Auth-Token'] = 'YOUR API KEY'
233
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
234
+ #config.api_key_prefix['X-Auth-Token'] = 'Bearer'
235
+ end
236
+
237
+ api_instance = Mimepost::WebhooksApi.new
238
+
239
+ opts = {
240
+ webhook: Mimepost::Webhook.new # Webhook |
241
+ }
242
+
243
+ begin
244
+ #Add single webhook
245
+ result = api_instance.webhooks_post(opts)
246
+ p result
247
+ rescue Mimepost::ApiError => e
248
+ puts "Exception when calling WebhooksApi->webhooks_post: #{e}"
249
+ end
250
+ ```
251
+
252
+ ### Parameters
253
+
254
+ Name | Type | Description | Notes
255
+ ------------- | ------------- | ------------- | -------------
256
+ **webhook** | [**Webhook**](Webhook.md)| | [optional]
257
+
258
+ ### Return type
259
+
260
+ [**ApiResponseWebhooks**](ApiResponseWebhooks.md)
261
+
262
+ ### Authorization
263
+
264
+ [api_key](../README.md#api_key)
265
+
266
+ ### HTTP request headers
267
+
268
+ - **Content-Type**: application/json
269
+ - **Accept**: application/json
270
+
271
+
272
+