MailchimpMarketing 3.0.7 → 3.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +53 -0
- data/MailchimpMarketing.gemspec +2 -2
- data/README.md +2 -2
- data/lib/MailchimpMarketing.rb +1 -1
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -10
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -14
- data/lib/MailchimpMarketing/api/automations_api.rb +39 -78
- data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -22
- data/lib/MailchimpMarketing/api/batches_api.rb +9 -18
- data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -22
- data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -90
- data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -22
- data/lib/MailchimpMarketing/api/conversations_api.rb +11 -22
- data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -26
- data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -238
- data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -14
- data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -10
- data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -46
- data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -34
- data/lib/MailchimpMarketing/api/lists_api.rb +136 -268
- data/lib/MailchimpMarketing/api/ping_api.rb +3 -6
- data/lib/MailchimpMarketing/api/postcards_api.rb +3 -6
- data/lib/MailchimpMarketing/api/reporting_api.rb +13 -26
- data/lib/MailchimpMarketing/api/reports_api.rb +45 -90
- data/lib/MailchimpMarketing/api/root_api.rb +3 -6
- data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -6
- data/lib/MailchimpMarketing/api/search_members_api.rb +3 -6
- data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -22
- data/lib/MailchimpMarketing/api/templates_api.rb +13 -26
- data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -22
- data/lib/MailchimpMarketing/api_client.rb +17 -109
- data/lib/MailchimpMarketing/api_error.rb +1 -1
- data/lib/MailchimpMarketing/configuration.rb +1 -1
- data/lib/MailchimpMarketing/version.rb +2 -2
- metadata +5 -10
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.12
|
7
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
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class ExternalAuthsApi
|
@@ -28,15 +27,13 @@ module MailchimpMarketing
|
|
28
27
|
query_params = {}
|
29
28
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
30
29
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
31
|
-
form_params = {}
|
32
30
|
post_body = nil
|
33
31
|
|
34
32
|
local_var_path = '/external-auths/{system_id}'.sub('{' + 'system_id' + '}', system_id.to_s)
|
35
|
-
data
|
33
|
+
data = @api_client.call_api(:GET, local_var_path,
|
36
34
|
:query_params => query_params,
|
37
|
-
:form_params => form_params,
|
38
35
|
:body => post_body)
|
39
|
-
return data
|
36
|
+
return data
|
40
37
|
end
|
41
38
|
|
42
39
|
# List external authentications
|
@@ -48,15 +45,13 @@ module MailchimpMarketing
|
|
48
45
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
49
46
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
50
47
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
51
|
-
form_params = {}
|
52
48
|
post_body = nil
|
53
49
|
|
54
50
|
local_var_path = '/external-auths'
|
55
|
-
data
|
51
|
+
data = @api_client.call_api(:GET, local_var_path,
|
56
52
|
:query_params => query_params,
|
57
|
-
:form_params => form_params,
|
58
53
|
:body => post_body)
|
59
|
-
return data
|
54
|
+
return data
|
60
55
|
end
|
61
56
|
|
62
57
|
# Add external authentication
|
@@ -64,15 +59,13 @@ module MailchimpMarketing
|
|
64
59
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
65
60
|
|
66
61
|
query_params = {}
|
67
|
-
form_params = {}
|
68
62
|
post_body = @api_client.object_to_http_body(body)
|
69
63
|
|
70
64
|
local_var_path = '/external-auths'
|
71
|
-
data
|
65
|
+
data = @api_client.call_api(:POST, local_var_path,
|
72
66
|
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
67
|
:body => post_body)
|
75
|
-
return data
|
68
|
+
return data
|
76
69
|
end
|
77
70
|
end
|
78
71
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.12
|
7
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
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class FacebookAdsApi
|
@@ -34,15 +33,13 @@ module MailchimpMarketing
|
|
34
33
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
35
34
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
36
35
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
37
|
-
form_params = {}
|
38
36
|
post_body = nil
|
39
37
|
|
40
38
|
local_var_path = '/facebook-ads'
|
41
|
-
data
|
39
|
+
data = @api_client.call_api(:GET, local_var_path,
|
42
40
|
:query_params => query_params,
|
43
|
-
:form_params => form_params,
|
44
41
|
:body => post_body)
|
45
|
-
return data
|
42
|
+
return data
|
46
43
|
end
|
47
44
|
|
48
45
|
# Get facebook ad info
|
@@ -52,15 +49,13 @@ module MailchimpMarketing
|
|
52
49
|
query_params = {}
|
53
50
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
54
51
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
55
|
-
form_params = {}
|
56
52
|
post_body = nil
|
57
53
|
|
58
54
|
local_var_path = '/facebook-ads/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
59
|
-
data
|
55
|
+
data = @api_client.call_api(:GET, local_var_path,
|
60
56
|
:query_params => query_params,
|
61
|
-
:form_params => form_params,
|
62
57
|
:body => post_body)
|
63
|
-
return data
|
58
|
+
return data
|
64
59
|
end
|
65
60
|
end
|
66
61
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.12
|
7
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
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class FileManagerApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'file_id'" if file_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/file-manager/files/{file_id}'.sub('{' + 'file_id' + '}', file_id.to_s)
|
33
|
-
data
|
31
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
34
32
|
:query_params => query_params,
|
35
|
-
:form_params => form_params,
|
36
33
|
:body => post_body)
|
37
|
-
return data
|
34
|
+
return data
|
38
35
|
end
|
39
36
|
|
40
37
|
# Delete folder
|
@@ -42,30 +39,26 @@ module MailchimpMarketing
|
|
42
39
|
fail ArgumentError, "Missing required param: 'folder_id'" if folder_id.nil?
|
43
40
|
|
44
41
|
query_params = {}
|
45
|
-
form_params = {}
|
46
42
|
post_body = nil
|
47
43
|
|
48
44
|
local_var_path = '/file-manager/folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
|
49
|
-
data
|
45
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
50
46
|
:query_params => query_params,
|
51
|
-
:form_params => form_params,
|
52
47
|
:body => post_body)
|
53
|
-
return data
|
48
|
+
return data
|
54
49
|
end
|
55
50
|
|
56
51
|
# List file manager resources
|
57
52
|
def get(opts = {})
|
58
53
|
|
59
54
|
query_params = {}
|
60
|
-
form_params = {}
|
61
55
|
post_body = nil
|
62
56
|
|
63
57
|
local_var_path = '/file-manager'
|
64
|
-
data
|
58
|
+
data = @api_client.call_api(:GET, local_var_path,
|
65
59
|
:query_params => query_params,
|
66
|
-
:form_params => form_params,
|
67
60
|
:body => post_body)
|
68
|
-
return data
|
61
|
+
return data
|
69
62
|
end
|
70
63
|
|
71
64
|
# List stored files
|
@@ -85,15 +78,13 @@ module MailchimpMarketing
|
|
85
78
|
query_params[:'since_created_at'] = opts[:'since_created_at'] if !opts[:'since_created_at'].nil?
|
86
79
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
87
80
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
88
|
-
form_params = {}
|
89
81
|
post_body = nil
|
90
82
|
|
91
83
|
local_var_path = '/file-manager/files'
|
92
|
-
data
|
84
|
+
data = @api_client.call_api(:GET, local_var_path,
|
93
85
|
:query_params => query_params,
|
94
|
-
:form_params => form_params,
|
95
86
|
:body => post_body)
|
96
|
-
return data
|
87
|
+
return data
|
97
88
|
end
|
98
89
|
|
99
90
|
# Get file
|
@@ -103,15 +94,13 @@ module MailchimpMarketing
|
|
103
94
|
query_params = {}
|
104
95
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
105
96
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
106
|
-
form_params = {}
|
107
97
|
post_body = nil
|
108
98
|
|
109
99
|
local_var_path = '/file-manager/files/{file_id}'.sub('{' + 'file_id' + '}', file_id.to_s)
|
110
|
-
data
|
100
|
+
data = @api_client.call_api(:GET, local_var_path,
|
111
101
|
:query_params => query_params,
|
112
|
-
:form_params => form_params,
|
113
102
|
:body => post_body)
|
114
|
-
return data
|
103
|
+
return data
|
115
104
|
end
|
116
105
|
|
117
106
|
# List folders
|
@@ -126,15 +115,13 @@ module MailchimpMarketing
|
|
126
115
|
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
127
116
|
query_params[:'before_created_at'] = opts[:'before_created_at'] if !opts[:'before_created_at'].nil?
|
128
117
|
query_params[:'since_created_at'] = opts[:'since_created_at'] if !opts[:'since_created_at'].nil?
|
129
|
-
form_params = {}
|
130
118
|
post_body = nil
|
131
119
|
|
132
120
|
local_var_path = '/file-manager/folders'
|
133
|
-
data
|
121
|
+
data = @api_client.call_api(:GET, local_var_path,
|
134
122
|
:query_params => query_params,
|
135
|
-
:form_params => form_params,
|
136
123
|
:body => post_body)
|
137
|
-
return data
|
124
|
+
return data
|
138
125
|
end
|
139
126
|
|
140
127
|
# Get folder
|
@@ -144,15 +131,13 @@ module MailchimpMarketing
|
|
144
131
|
query_params = {}
|
145
132
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
146
133
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
147
|
-
form_params = {}
|
148
134
|
post_body = nil
|
149
135
|
|
150
136
|
local_var_path = '/file-manager/folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
|
151
|
-
data
|
137
|
+
data = @api_client.call_api(:GET, local_var_path,
|
152
138
|
:query_params => query_params,
|
153
|
-
:form_params => form_params,
|
154
139
|
:body => post_body)
|
155
|
-
return data
|
140
|
+
return data
|
156
141
|
end
|
157
142
|
|
158
143
|
# Update file
|
@@ -161,15 +146,13 @@ module MailchimpMarketing
|
|
161
146
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
162
147
|
|
163
148
|
query_params = {}
|
164
|
-
form_params = {}
|
165
149
|
post_body = @api_client.object_to_http_body(body)
|
166
150
|
|
167
151
|
local_var_path = '/file-manager/files/{file_id}'.sub('{' + 'file_id' + '}', file_id.to_s)
|
168
|
-
data
|
152
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
169
153
|
:query_params => query_params,
|
170
|
-
:form_params => form_params,
|
171
154
|
:body => post_body)
|
172
|
-
return data
|
155
|
+
return data
|
173
156
|
end
|
174
157
|
|
175
158
|
# Update folder
|
@@ -178,15 +161,13 @@ module MailchimpMarketing
|
|
178
161
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
179
162
|
|
180
163
|
query_params = {}
|
181
|
-
form_params = {}
|
182
164
|
post_body = @api_client.object_to_http_body(body)
|
183
165
|
|
184
166
|
local_var_path = '/file-manager/folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
|
185
|
-
data
|
167
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
186
168
|
:query_params => query_params,
|
187
|
-
:form_params => form_params,
|
188
169
|
:body => post_body)
|
189
|
-
return data
|
170
|
+
return data
|
190
171
|
end
|
191
172
|
|
192
173
|
# Add file
|
@@ -194,15 +175,13 @@ module MailchimpMarketing
|
|
194
175
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
195
176
|
|
196
177
|
query_params = {}
|
197
|
-
form_params = {}
|
198
178
|
post_body = @api_client.object_to_http_body(body)
|
199
179
|
|
200
180
|
local_var_path = '/file-manager/files'
|
201
|
-
data
|
181
|
+
data = @api_client.call_api(:POST, local_var_path,
|
202
182
|
:query_params => query_params,
|
203
|
-
:form_params => form_params,
|
204
183
|
:body => post_body)
|
205
|
-
return data
|
184
|
+
return data
|
206
185
|
end
|
207
186
|
|
208
187
|
# Add folder
|
@@ -210,15 +189,13 @@ module MailchimpMarketing
|
|
210
189
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
211
190
|
|
212
191
|
query_params = {}
|
213
|
-
form_params = {}
|
214
192
|
post_body = @api_client.object_to_http_body(body)
|
215
193
|
|
216
194
|
local_var_path = '/file-manager/folders'
|
217
|
-
data
|
195
|
+
data = @api_client.call_api(:POST, local_var_path,
|
218
196
|
:query_params => query_params,
|
219
|
-
:form_params => form_params,
|
220
197
|
:body => post_body)
|
221
|
-
return data
|
198
|
+
return data
|
222
199
|
end
|
223
200
|
end
|
224
201
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.12
|
7
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
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class LandingPagesApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'page_id'" if page_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/landing-pages/{page_id}'.sub('{' + 'page_id' + '}', page_id.to_s)
|
33
|
-
data
|
31
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
34
32
|
:query_params => query_params,
|
35
|
-
:form_params => form_params,
|
36
33
|
:body => post_body)
|
37
|
-
return data
|
34
|
+
return data
|
38
35
|
end
|
39
36
|
|
40
37
|
# List landing pages
|
@@ -49,15 +46,13 @@ module MailchimpMarketing
|
|
49
46
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
50
47
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
51
48
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
52
|
-
form_params = {}
|
53
49
|
post_body = nil
|
54
50
|
|
55
51
|
local_var_path = '/landing-pages'
|
56
|
-
data
|
52
|
+
data = @api_client.call_api(:GET, local_var_path,
|
57
53
|
:query_params => query_params,
|
58
|
-
:form_params => form_params,
|
59
54
|
:body => post_body)
|
60
|
-
return data
|
55
|
+
return data
|
61
56
|
end
|
62
57
|
|
63
58
|
# Get landing page info
|
@@ -67,15 +62,13 @@ module MailchimpMarketing
|
|
67
62
|
query_params = {}
|
68
63
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
69
64
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
70
|
-
form_params = {}
|
71
65
|
post_body = nil
|
72
66
|
|
73
67
|
local_var_path = '/landing-pages/{page_id}'.sub('{' + 'page_id' + '}', page_id.to_s)
|
74
|
-
data
|
68
|
+
data = @api_client.call_api(:GET, local_var_path,
|
75
69
|
:query_params => query_params,
|
76
|
-
:form_params => form_params,
|
77
70
|
:body => post_body)
|
78
|
-
return data
|
71
|
+
return data
|
79
72
|
end
|
80
73
|
|
81
74
|
# Get landing page content
|
@@ -85,15 +78,13 @@ module MailchimpMarketing
|
|
85
78
|
query_params = {}
|
86
79
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
87
80
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
88
|
-
form_params = {}
|
89
81
|
post_body = nil
|
90
82
|
|
91
83
|
local_var_path = '/landing-pages/{page_id}/content'.sub('{' + 'page_id' + '}', page_id.to_s)
|
92
|
-
data
|
84
|
+
data = @api_client.call_api(:GET, local_var_path,
|
93
85
|
:query_params => query_params,
|
94
|
-
:form_params => form_params,
|
95
86
|
:body => post_body)
|
96
|
-
return data
|
87
|
+
return data
|
97
88
|
end
|
98
89
|
|
99
90
|
# Update landing page
|
@@ -102,15 +93,13 @@ module MailchimpMarketing
|
|
102
93
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
103
94
|
|
104
95
|
query_params = {}
|
105
|
-
form_params = {}
|
106
96
|
post_body = @api_client.object_to_http_body(body)
|
107
97
|
|
108
98
|
local_var_path = '/landing-pages/{page_id}'.sub('{' + 'page_id' + '}', page_id.to_s)
|
109
|
-
data
|
99
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
110
100
|
:query_params => query_params,
|
111
|
-
:form_params => form_params,
|
112
101
|
:body => post_body)
|
113
|
-
return data
|
102
|
+
return data
|
114
103
|
end
|
115
104
|
|
116
105
|
# Add landing page
|
@@ -118,15 +107,13 @@ module MailchimpMarketing
|
|
118
107
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
119
108
|
|
120
109
|
query_params = {}
|
121
|
-
form_params = {}
|
122
110
|
post_body = @api_client.object_to_http_body(body)
|
123
111
|
|
124
112
|
local_var_path = '/landing-pages'
|
125
|
-
data
|
113
|
+
data = @api_client.call_api(:POST, local_var_path,
|
126
114
|
:query_params => query_params,
|
127
|
-
:form_params => form_params,
|
128
115
|
:body => post_body)
|
129
|
-
return data
|
116
|
+
return data
|
130
117
|
end
|
131
118
|
|
132
119
|
# Publish landing page
|
@@ -134,15 +121,13 @@ module MailchimpMarketing
|
|
134
121
|
fail ArgumentError, "Missing required param: 'page_id'" if page_id.nil?
|
135
122
|
|
136
123
|
query_params = {}
|
137
|
-
form_params = {}
|
138
124
|
post_body = nil
|
139
125
|
|
140
126
|
local_var_path = '/landing-pages/{page_id}/actions/publish'.sub('{' + 'page_id' + '}', page_id.to_s)
|
141
|
-
data
|
127
|
+
data = @api_client.call_api(:POST, local_var_path,
|
142
128
|
:query_params => query_params,
|
143
|
-
:form_params => form_params,
|
144
129
|
:body => post_body)
|
145
|
-
return data
|
130
|
+
return data
|
146
131
|
end
|
147
132
|
|
148
133
|
# Unpublish landing page
|
@@ -150,15 +135,13 @@ module MailchimpMarketing
|
|
150
135
|
fail ArgumentError, "Missing required param: 'page_id'" if page_id.nil?
|
151
136
|
|
152
137
|
query_params = {}
|
153
|
-
form_params = {}
|
154
138
|
post_body = nil
|
155
139
|
|
156
140
|
local_var_path = '/landing-pages/{page_id}/actions/unpublish'.sub('{' + 'page_id' + '}', page_id.to_s)
|
157
|
-
data
|
141
|
+
data = @api_client.call_api(:POST, local_var_path,
|
158
142
|
:query_params => query_params,
|
159
|
-
:form_params => form_params,
|
160
143
|
:body => post_body)
|
161
|
-
return data
|
144
|
+
return data
|
162
145
|
end
|
163
146
|
end
|
164
147
|
end
|