MailchimpTransactional 1.0.8 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +4 -4
- data/README.md +9 -9
- data/lib/MailchimpTransactional.rb +60 -76
- data/lib/MailchimpTransactional/api/exports_api.rb +14 -97
- data/lib/MailchimpTransactional/api/inbound_api.rb +22 -169
- data/lib/MailchimpTransactional/api/ips_api.rb +30 -241
- data/lib/MailchimpTransactional/api/messages_api.rb +26 -205
- data/lib/MailchimpTransactional/api/metadata_api.rb +12 -79
- data/lib/MailchimpTransactional/api/rejects_api.rb +10 -61
- data/lib/MailchimpTransactional/api/senders_api.rb +18 -133
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +18 -133
- data/lib/MailchimpTransactional/api/tags_api.rb +14 -97
- data/lib/MailchimpTransactional/api/templates_api.rb +20 -151
- data/lib/MailchimpTransactional/api/urls_api.rb +16 -115
- data/lib/MailchimpTransactional/api/users_api.rb +12 -79
- data/lib/MailchimpTransactional/api/webhooks_api.rb +14 -97
- data/lib/MailchimpTransactional/api/whitelists_api.rb +10 -61
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +2 -2
- data/lib/MailchimpTransactional/configuration.rb +2 -2
- data/lib/MailchimpTransactional/version.rb +3 -3
- metadata +7 -12
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.14
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class SendersApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Add sender domain
|
26
|
-
# Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20042]
|
30
|
-
def add_domain(body = {}, opts = {})
|
31
|
-
data = add_domain_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add sender domain
|
36
24
|
# Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20042, Fixnum, Hash)>] InlineResponse20042 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/senders/add-domain'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Check domain settings
|
52
|
-
# Checks the SPF and DKIM settings for a domain. If you haven't already added this domain to your account, it will be added automatically.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20043]
|
56
|
-
def check_domain(body = {}, opts = {})
|
57
|
-
data = check_domain_with_http_info(body, opts)
|
28
|
+
def add_domain(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/senders/add-domain', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20043, Fixnum, Hash)>] InlineResponse20043 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/senders/check-domain'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# List sender domains
|
78
|
-
# Returns the sender domains that have been added to this account.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [Array<InlineResponse20041>]
|
82
|
-
def domains(body = {}, opts = {})
|
83
|
-
data = domains_with_http_info(body, opts)
|
38
|
+
def check_domain(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/senders/check-domain', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(Array<InlineResponse20041>, Fixnum, Hash)>] Array<InlineResponse20041> data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/senders/domains'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Get sender info
|
104
|
-
# Return more detailed information about a single sender, including aggregates of recent stats.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse20045]
|
108
|
-
def info(body = {}, opts = {})
|
109
|
-
data = info_with_http_info(body, opts)
|
48
|
+
def domains(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/senders/domains', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse20045, Fixnum, Hash)>] InlineResponse20045 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/senders/info'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# List account senders
|
130
|
-
# Return the senders that have tried to use this account.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [Array<InlineResponse20040>]
|
134
|
-
def list(body = {}, opts = {})
|
135
|
-
data = list_with_http_info(body, opts)
|
58
|
+
def info(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/senders/info', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(Array<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/senders/list'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# View sender history
|
156
|
-
# Return the recent history (hourly stats for the last 30 days) for a sender.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<InlineResponse20046>]
|
160
|
-
def time_series(body = {}, opts = {})
|
161
|
-
data = time_series_with_http_info(body, opts)
|
68
|
+
def list(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/senders/list', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(Array<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/senders/time-series'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# Verify domain
|
182
|
-
# Sends a verification email in order to verify ownership of a domain. Domain verification is a required step to confirm ownership of a domain. Once a domain has been verified in a Transactional API account, other accounts may not have their messages signed by that domain unless they also verify the domain. This prevents other Transactional API accounts from sending mail signed by your domain.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [InlineResponse20044]
|
186
|
-
def verify_domain(body = {}, opts = {})
|
187
|
-
data = verify_domain_with_http_info(body, opts)
|
78
|
+
def time_series(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/senders/time-series', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,16 +85,9 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(InlineResponse20044, Fixnum, Hash)>] InlineResponse20044 data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/senders/verify-domain'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
88
|
+
def verify_domain(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/senders/verify-domain', body)
|
90
|
+
data
|
206
91
|
end
|
207
92
|
end
|
208
93
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.14
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class SubaccountsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Add subaccount
|
26
|
-
# Add a new subaccount.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20048]
|
30
|
-
def add(body = {}, opts = {})
|
31
|
-
data = add_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add subaccount
|
36
24
|
# Add a new subaccount.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20048, Fixnum, Hash)>] InlineResponse20048 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/subaccounts/add'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Delete subaccount
|
52
|
-
# Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will fail.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20051]
|
56
|
-
def delete(body = {}, opts = {})
|
57
|
-
data = delete_with_http_info(body, opts)
|
28
|
+
def add(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/subaccounts/add', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20051, Fixnum, Hash)>] InlineResponse20051 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/subaccounts/delete'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Get subaccount info
|
78
|
-
# Given the ID of an existing subaccount, return the data about it.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20049]
|
82
|
-
def info(body = {}, opts = {})
|
83
|
-
data = info_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/subaccounts/delete', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse20049, Fixnum, Hash)>] InlineResponse20049 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/subaccounts/info'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# List subaccounts
|
104
|
-
# Get the list of subaccounts defined for the account, optionally filtered by a prefix.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<InlineResponse20047>]
|
108
|
-
def list(body = {}, opts = {})
|
109
|
-
data = list_with_http_info(body, opts)
|
48
|
+
def info(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/subaccounts/info', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(Array<InlineResponse20047>, Fixnum, Hash)>] Array<InlineResponse20047> data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/subaccounts/list'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Pause subaccount
|
130
|
-
# Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20052]
|
134
|
-
def pause(body = {}, opts = {})
|
135
|
-
data = pause_with_http_info(body, opts)
|
58
|
+
def list(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/subaccounts/list', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20052, Fixnum, Hash)>] InlineResponse20052 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/subaccounts/pause'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# Resume subaccount
|
156
|
-
# Resume a paused subaccount's sending.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [InlineResponse20053]
|
160
|
-
def resume(body = {}, opts = {})
|
161
|
-
data = resume_with_http_info(body, opts)
|
68
|
+
def pause(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/subaccounts/pause', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(InlineResponse20053, Fixnum, Hash)>] InlineResponse20053 data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/subaccounts/resume'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# Update subaccount
|
182
|
-
# Update an existing subaccount.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [InlineResponse20050]
|
186
|
-
def update(body = {}, opts = {})
|
187
|
-
data = update_with_http_info(body, opts)
|
78
|
+
def resume(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/subaccounts/resume', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,16 +85,9 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(InlineResponse20050, Fixnum, Hash)>] InlineResponse20050 data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/subaccounts/update'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
88
|
+
def update(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/subaccounts/update', body)
|
90
|
+
data
|
206
91
|
end
|
207
92
|
end
|
208
93
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.14
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class TagsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# View all tags history
|
26
|
-
# Return the recent history (hourly stats for the last 30 days) for all tags.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [Array<InlineResponse20028>]
|
30
|
-
def all_time_series(body = {}, opts = {})
|
31
|
-
data = all_time_series_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# View all tags history
|
36
24
|
# Return the recent history (hourly stats for the last 30 days) for all tags.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/tags/all-time-series'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Delete tag
|
52
|
-
# Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20055]
|
56
|
-
def delete(body = {}, opts = {})
|
57
|
-
data = delete_with_http_info(body, opts)
|
28
|
+
def all_time_series(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/tags/all-time-series', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20055, Fixnum, Hash)>] InlineResponse20055 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/tags/delete'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Get tag info
|
78
|
-
# Return more detailed information about a single tag, including aggregates of recent stats.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20056]
|
82
|
-
def info(body = {}, opts = {})
|
83
|
-
data = info_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/tags/delete', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse20056, Fixnum, Hash)>] InlineResponse20056 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/tags/info'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# List tags
|
104
|
-
# Return all of the user-defined tag information.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<InlineResponse20054>]
|
108
|
-
def list(body = {}, opts = {})
|
109
|
-
data = list_with_http_info(body, opts)
|
48
|
+
def info(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/tags/info', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(Array<InlineResponse20054>, Fixnum, Hash)>] Array<InlineResponse20054> data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/tags/list'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# View tag history
|
130
|
-
# Return the recent history (hourly stats for the last 30 days) for a tag.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [Array<InlineResponse20028>]
|
134
|
-
def time_series(body = {}, opts = {})
|
135
|
-
data = time_series_with_http_info(body, opts)
|
58
|
+
def list(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/tags/list', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,16 +65,9 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/tags/time-series'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
68
|
+
def time_series(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/tags/time-series', body)
|
70
|
+
data
|
154
71
|
end
|
155
72
|
end
|
156
73
|
end
|