MailchimpMarketing 3.0.8 → 3.0.13
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 -117
- data/lib/MailchimpMarketing/api_error.rb +1 -1
- data/lib/MailchimpMarketing/configuration.rb +1 -1
- data/lib/MailchimpMarketing/version.rb +2 -2
- metadata +6 -11
@@ -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.13
|
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 BatchWebhooksApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'batch_webhook_id'" if batch_webhook_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/batch-webhooks/{batch_webhook_id}'.sub('{' + 'batch_webhook_id' + '}', batch_webhook_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
|
# Get batch webhook info
|
@@ -44,15 +41,13 @@ module MailchimpMarketing
|
|
44
41
|
query_params = {}
|
45
42
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
46
43
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
47
|
-
form_params = {}
|
48
44
|
post_body = nil
|
49
45
|
|
50
46
|
local_var_path = '/batch-webhooks/{batch_webhook_id}'.sub('{' + 'batch_webhook_id' + '}', batch_webhook_id.to_s)
|
51
|
-
data
|
47
|
+
data = @api_client.call_api(:GET, local_var_path,
|
52
48
|
:query_params => query_params,
|
53
|
-
:form_params => form_params,
|
54
49
|
:body => post_body)
|
55
|
-
return data
|
50
|
+
return data
|
56
51
|
end
|
57
52
|
|
58
53
|
# List batch webhooks
|
@@ -64,15 +59,13 @@ module MailchimpMarketing
|
|
64
59
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
65
60
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
66
61
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
67
|
-
form_params = {}
|
68
62
|
post_body = nil
|
69
63
|
|
70
64
|
local_var_path = '/batch-webhooks'
|
71
|
-
data
|
65
|
+
data = @api_client.call_api(:GET, 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
|
|
78
71
|
# Update batch webhook
|
@@ -81,15 +74,13 @@ module MailchimpMarketing
|
|
81
74
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
82
75
|
|
83
76
|
query_params = {}
|
84
|
-
form_params = {}
|
85
77
|
post_body = @api_client.object_to_http_body(body)
|
86
78
|
|
87
79
|
local_var_path = '/batch-webhooks/{batch_webhook_id}'.sub('{' + 'batch_webhook_id' + '}', batch_webhook_id.to_s)
|
88
|
-
data
|
80
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
89
81
|
:query_params => query_params,
|
90
|
-
:form_params => form_params,
|
91
82
|
:body => post_body)
|
92
|
-
return data
|
83
|
+
return data
|
93
84
|
end
|
94
85
|
|
95
86
|
# Add batch webhook
|
@@ -97,15 +88,13 @@ module MailchimpMarketing
|
|
97
88
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
98
89
|
|
99
90
|
query_params = {}
|
100
|
-
form_params = {}
|
101
91
|
post_body = @api_client.object_to_http_body(body)
|
102
92
|
|
103
93
|
local_var_path = '/batch-webhooks'
|
104
|
-
data
|
94
|
+
data = @api_client.call_api(:POST, local_var_path,
|
105
95
|
:query_params => query_params,
|
106
|
-
:form_params => form_params,
|
107
96
|
:body => post_body)
|
108
|
-
return data
|
97
|
+
return data
|
109
98
|
end
|
110
99
|
end
|
111
100
|
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.13
|
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 BatchesApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'batch_id'" if batch_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/batches/{batch_id}'.sub('{' + 'batch_id' + '}', batch_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 batch requests
|
@@ -46,15 +43,13 @@ module MailchimpMarketing
|
|
46
43
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
47
44
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
48
45
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
49
|
-
form_params = {}
|
50
46
|
post_body = nil
|
51
47
|
|
52
48
|
local_var_path = '/batches'
|
53
|
-
data
|
49
|
+
data = @api_client.call_api(:GET, local_var_path,
|
54
50
|
:query_params => query_params,
|
55
|
-
:form_params => form_params,
|
56
51
|
:body => post_body)
|
57
|
-
return data
|
52
|
+
return data
|
58
53
|
end
|
59
54
|
|
60
55
|
# Get batch operation status
|
@@ -64,15 +59,13 @@ module MailchimpMarketing
|
|
64
59
|
query_params = {}
|
65
60
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
66
61
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
67
|
-
form_params = {}
|
68
62
|
post_body = nil
|
69
63
|
|
70
64
|
local_var_path = '/batches/{batch_id}'.sub('{' + 'batch_id' + '}', batch_id.to_s)
|
71
|
-
data
|
65
|
+
data = @api_client.call_api(:GET, 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
|
|
78
71
|
# Start batch operation
|
@@ -80,15 +73,13 @@ module MailchimpMarketing
|
|
80
73
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
81
74
|
|
82
75
|
query_params = {}
|
83
|
-
form_params = {}
|
84
76
|
post_body = @api_client.object_to_http_body(body)
|
85
77
|
|
86
78
|
local_var_path = '/batches'
|
87
|
-
data
|
79
|
+
data = @api_client.call_api(:POST, local_var_path,
|
88
80
|
:query_params => query_params,
|
89
|
-
:form_params => form_params,
|
90
81
|
:body => post_body)
|
91
|
-
return data
|
82
|
+
return data
|
92
83
|
end
|
93
84
|
end
|
94
85
|
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.13
|
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 CampaignFoldersApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'folder_id'" if folder_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/campaign-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_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 campaign folders
|
@@ -46,15 +43,13 @@ module MailchimpMarketing
|
|
46
43
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
47
44
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
48
45
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
49
|
-
form_params = {}
|
50
46
|
post_body = nil
|
51
47
|
|
52
48
|
local_var_path = '/campaign-folders'
|
53
|
-
data
|
49
|
+
data = @api_client.call_api(:GET, local_var_path,
|
54
50
|
:query_params => query_params,
|
55
|
-
:form_params => form_params,
|
56
51
|
:body => post_body)
|
57
|
-
return data
|
52
|
+
return data
|
58
53
|
end
|
59
54
|
|
60
55
|
# Get campaign folder
|
@@ -64,15 +59,13 @@ module MailchimpMarketing
|
|
64
59
|
query_params = {}
|
65
60
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
66
61
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
67
|
-
form_params = {}
|
68
62
|
post_body = nil
|
69
63
|
|
70
64
|
local_var_path = '/campaign-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
|
71
|
-
data
|
65
|
+
data = @api_client.call_api(:GET, 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
|
|
78
71
|
# Update campaign folder
|
@@ -81,15 +74,13 @@ module MailchimpMarketing
|
|
81
74
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
82
75
|
|
83
76
|
query_params = {}
|
84
|
-
form_params = {}
|
85
77
|
post_body = @api_client.object_to_http_body(body)
|
86
78
|
|
87
79
|
local_var_path = '/campaign-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
|
88
|
-
data
|
80
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
89
81
|
:query_params => query_params,
|
90
|
-
:form_params => form_params,
|
91
82
|
:body => post_body)
|
92
|
-
return data
|
83
|
+
return data
|
93
84
|
end
|
94
85
|
|
95
86
|
# Add campaign folder
|
@@ -97,15 +88,13 @@ module MailchimpMarketing
|
|
97
88
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
98
89
|
|
99
90
|
query_params = {}
|
100
|
-
form_params = {}
|
101
91
|
post_body = @api_client.object_to_http_body(body)
|
102
92
|
|
103
93
|
local_var_path = '/campaign-folders'
|
104
|
-
data
|
94
|
+
data = @api_client.call_api(:POST, local_var_path,
|
105
95
|
:query_params => query_params,
|
106
|
-
:form_params => form_params,
|
107
96
|
:body => post_body)
|
108
|
-
return data
|
97
|
+
return data
|
109
98
|
end
|
110
99
|
end
|
111
100
|
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.13
|
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 CampaignsApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/campaigns/{campaign_id}'.sub('{' + 'campaign_id' + '}', campaign_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 campaign feedback message
|
@@ -43,15 +40,13 @@ module MailchimpMarketing
|
|
43
40
|
fail ArgumentError, "Missing required param: 'feedback_id'" if feedback_id.nil?
|
44
41
|
|
45
42
|
query_params = {}
|
46
|
-
form_params = {}
|
47
43
|
post_body = nil
|
48
44
|
|
49
45
|
local_var_path = '/campaigns/{campaign_id}/feedback/{feedback_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'feedback_id' + '}', feedback_id.to_s)
|
50
|
-
data
|
46
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
51
47
|
:query_params => query_params,
|
52
|
-
:form_params => form_params,
|
53
48
|
:body => post_body)
|
54
|
-
return data
|
49
|
+
return data
|
55
50
|
end
|
56
51
|
|
57
52
|
# List campaigns
|
@@ -78,15 +73,13 @@ module MailchimpMarketing
|
|
78
73
|
query_params[:'member_id'] = opts[:'member_id'] if !opts[:'member_id'].nil?
|
79
74
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
80
75
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
81
|
-
form_params = {}
|
82
76
|
post_body = nil
|
83
77
|
|
84
78
|
local_var_path = '/campaigns'
|
85
|
-
data
|
79
|
+
data = @api_client.call_api(:GET, local_var_path,
|
86
80
|
:query_params => query_params,
|
87
|
-
:form_params => form_params,
|
88
81
|
:body => post_body)
|
89
|
-
return data
|
82
|
+
return data
|
90
83
|
end
|
91
84
|
|
92
85
|
# Get campaign info
|
@@ -96,15 +89,13 @@ module MailchimpMarketing
|
|
96
89
|
query_params = {}
|
97
90
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
98
91
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
99
|
-
form_params = {}
|
100
92
|
post_body = nil
|
101
93
|
|
102
94
|
local_var_path = '/campaigns/{campaign_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
103
|
-
data
|
95
|
+
data = @api_client.call_api(:GET, local_var_path,
|
104
96
|
:query_params => query_params,
|
105
|
-
:form_params => form_params,
|
106
97
|
:body => post_body)
|
107
|
-
return data
|
98
|
+
return data
|
108
99
|
end
|
109
100
|
|
110
101
|
# Get campaign content
|
@@ -114,15 +105,13 @@ module MailchimpMarketing
|
|
114
105
|
query_params = {}
|
115
106
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
116
107
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
117
|
-
form_params = {}
|
118
108
|
post_body = nil
|
119
109
|
|
120
110
|
local_var_path = '/campaigns/{campaign_id}/content'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
121
|
-
data
|
111
|
+
data = @api_client.call_api(:GET, local_var_path,
|
122
112
|
:query_params => query_params,
|
123
|
-
:form_params => form_params,
|
124
113
|
:body => post_body)
|
125
|
-
return data
|
114
|
+
return data
|
126
115
|
end
|
127
116
|
|
128
117
|
# List campaign feedback
|
@@ -132,15 +121,13 @@ module MailchimpMarketing
|
|
132
121
|
query_params = {}
|
133
122
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
134
123
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
135
|
-
form_params = {}
|
136
124
|
post_body = nil
|
137
125
|
|
138
126
|
local_var_path = '/campaigns/{campaign_id}/feedback'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
139
|
-
data
|
127
|
+
data = @api_client.call_api(:GET, local_var_path,
|
140
128
|
:query_params => query_params,
|
141
|
-
:form_params => form_params,
|
142
129
|
:body => post_body)
|
143
|
-
return data
|
130
|
+
return data
|
144
131
|
end
|
145
132
|
|
146
133
|
# Get campaign feedback message
|
@@ -151,15 +138,13 @@ module MailchimpMarketing
|
|
151
138
|
query_params = {}
|
152
139
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
153
140
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
154
|
-
form_params = {}
|
155
141
|
post_body = nil
|
156
142
|
|
157
143
|
local_var_path = '/campaigns/{campaign_id}/feedback/{feedback_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'feedback_id' + '}', feedback_id.to_s)
|
158
|
-
data
|
144
|
+
data = @api_client.call_api(:GET, local_var_path,
|
159
145
|
:query_params => query_params,
|
160
|
-
:form_params => form_params,
|
161
146
|
:body => post_body)
|
162
|
-
return data
|
147
|
+
return data
|
163
148
|
end
|
164
149
|
|
165
150
|
# Get campaign send checklist
|
@@ -169,15 +154,13 @@ module MailchimpMarketing
|
|
169
154
|
query_params = {}
|
170
155
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
171
156
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
172
|
-
form_params = {}
|
173
157
|
post_body = nil
|
174
158
|
|
175
159
|
local_var_path = '/campaigns/{campaign_id}/send-checklist'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
176
|
-
data
|
160
|
+
data = @api_client.call_api(:GET, local_var_path,
|
177
161
|
:query_params => query_params,
|
178
|
-
:form_params => form_params,
|
179
162
|
:body => post_body)
|
180
|
-
return data
|
163
|
+
return data
|
181
164
|
end
|
182
165
|
|
183
166
|
# Update campaign settings
|
@@ -186,15 +169,13 @@ module MailchimpMarketing
|
|
186
169
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
187
170
|
|
188
171
|
query_params = {}
|
189
|
-
form_params = {}
|
190
172
|
post_body = @api_client.object_to_http_body(body)
|
191
173
|
|
192
174
|
local_var_path = '/campaigns/{campaign_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
193
|
-
data
|
175
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
194
176
|
:query_params => query_params,
|
195
|
-
:form_params => form_params,
|
196
177
|
:body => post_body)
|
197
|
-
return data
|
178
|
+
return data
|
198
179
|
end
|
199
180
|
|
200
181
|
# Update campaign feedback message
|
@@ -204,15 +185,13 @@ module MailchimpMarketing
|
|
204
185
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
205
186
|
|
206
187
|
query_params = {}
|
207
|
-
form_params = {}
|
208
188
|
post_body = @api_client.object_to_http_body(body)
|
209
189
|
|
210
190
|
local_var_path = '/campaigns/{campaign_id}/feedback/{feedback_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'feedback_id' + '}', feedback_id.to_s)
|
211
|
-
data
|
191
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
212
192
|
:query_params => query_params,
|
213
|
-
:form_params => form_params,
|
214
193
|
:body => post_body)
|
215
|
-
return data
|
194
|
+
return data
|
216
195
|
end
|
217
196
|
|
218
197
|
# Add campaign
|
@@ -220,15 +199,13 @@ module MailchimpMarketing
|
|
220
199
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
221
200
|
|
222
201
|
query_params = {}
|
223
|
-
form_params = {}
|
224
202
|
post_body = @api_client.object_to_http_body(body)
|
225
203
|
|
226
204
|
local_var_path = '/campaigns'
|
227
|
-
data
|
205
|
+
data = @api_client.call_api(:POST, local_var_path,
|
228
206
|
:query_params => query_params,
|
229
|
-
:form_params => form_params,
|
230
207
|
:body => post_body)
|
231
|
-
return data
|
208
|
+
return data
|
232
209
|
end
|
233
210
|
|
234
211
|
# Cancel campaign
|
@@ -236,15 +213,13 @@ module MailchimpMarketing
|
|
236
213
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
237
214
|
|
238
215
|
query_params = {}
|
239
|
-
form_params = {}
|
240
216
|
post_body = nil
|
241
217
|
|
242
218
|
local_var_path = '/campaigns/{campaign_id}/actions/cancel-send'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
243
|
-
data
|
219
|
+
data = @api_client.call_api(:POST, local_var_path,
|
244
220
|
:query_params => query_params,
|
245
|
-
:form_params => form_params,
|
246
221
|
:body => post_body)
|
247
|
-
return data
|
222
|
+
return data
|
248
223
|
end
|
249
224
|
|
250
225
|
# Resend campaign
|
@@ -252,15 +227,13 @@ module MailchimpMarketing
|
|
252
227
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
253
228
|
|
254
229
|
query_params = {}
|
255
|
-
form_params = {}
|
256
230
|
post_body = nil
|
257
231
|
|
258
232
|
local_var_path = '/campaigns/{campaign_id}/actions/create-resend'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
259
|
-
data
|
233
|
+
data = @api_client.call_api(:POST, local_var_path,
|
260
234
|
:query_params => query_params,
|
261
|
-
:form_params => form_params,
|
262
235
|
:body => post_body)
|
263
|
-
return data
|
236
|
+
return data
|
264
237
|
end
|
265
238
|
|
266
239
|
# Pause rss campaign
|
@@ -268,15 +241,13 @@ module MailchimpMarketing
|
|
268
241
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
269
242
|
|
270
243
|
query_params = {}
|
271
|
-
form_params = {}
|
272
244
|
post_body = nil
|
273
245
|
|
274
246
|
local_var_path = '/campaigns/{campaign_id}/actions/pause'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
275
|
-
data
|
247
|
+
data = @api_client.call_api(:POST, local_var_path,
|
276
248
|
:query_params => query_params,
|
277
|
-
:form_params => form_params,
|
278
249
|
:body => post_body)
|
279
|
-
return data
|
250
|
+
return data
|
280
251
|
end
|
281
252
|
|
282
253
|
# Replicate campaign
|
@@ -284,15 +255,13 @@ module MailchimpMarketing
|
|
284
255
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
285
256
|
|
286
257
|
query_params = {}
|
287
|
-
form_params = {}
|
288
258
|
post_body = nil
|
289
259
|
|
290
260
|
local_var_path = '/campaigns/{campaign_id}/actions/replicate'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
291
|
-
data
|
261
|
+
data = @api_client.call_api(:POST, local_var_path,
|
292
262
|
:query_params => query_params,
|
293
|
-
:form_params => form_params,
|
294
263
|
:body => post_body)
|
295
|
-
return data
|
264
|
+
return data
|
296
265
|
end
|
297
266
|
|
298
267
|
# Resume rss campaign
|
@@ -300,15 +269,13 @@ module MailchimpMarketing
|
|
300
269
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
301
270
|
|
302
271
|
query_params = {}
|
303
|
-
form_params = {}
|
304
272
|
post_body = nil
|
305
273
|
|
306
274
|
local_var_path = '/campaigns/{campaign_id}/actions/resume'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
307
|
-
data
|
275
|
+
data = @api_client.call_api(:POST, local_var_path,
|
308
276
|
:query_params => query_params,
|
309
|
-
:form_params => form_params,
|
310
277
|
:body => post_body)
|
311
|
-
return data
|
278
|
+
return data
|
312
279
|
end
|
313
280
|
|
314
281
|
# Schedule campaign
|
@@ -317,15 +284,13 @@ module MailchimpMarketing
|
|
317
284
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
318
285
|
|
319
286
|
query_params = {}
|
320
|
-
form_params = {}
|
321
287
|
post_body = @api_client.object_to_http_body(body)
|
322
288
|
|
323
289
|
local_var_path = '/campaigns/{campaign_id}/actions/schedule'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
324
|
-
data
|
290
|
+
data = @api_client.call_api(:POST, local_var_path,
|
325
291
|
:query_params => query_params,
|
326
|
-
:form_params => form_params,
|
327
292
|
:body => post_body)
|
328
|
-
return data
|
293
|
+
return data
|
329
294
|
end
|
330
295
|
|
331
296
|
# Send campaign
|
@@ -333,15 +298,13 @@ module MailchimpMarketing
|
|
333
298
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
334
299
|
|
335
300
|
query_params = {}
|
336
|
-
form_params = {}
|
337
301
|
post_body = nil
|
338
302
|
|
339
303
|
local_var_path = '/campaigns/{campaign_id}/actions/send'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
340
|
-
data
|
304
|
+
data = @api_client.call_api(:POST, local_var_path,
|
341
305
|
:query_params => query_params,
|
342
|
-
:form_params => form_params,
|
343
306
|
:body => post_body)
|
344
|
-
return data
|
307
|
+
return data
|
345
308
|
end
|
346
309
|
|
347
310
|
# Send test email
|
@@ -350,15 +313,13 @@ module MailchimpMarketing
|
|
350
313
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
351
314
|
|
352
315
|
query_params = {}
|
353
|
-
form_params = {}
|
354
316
|
post_body = @api_client.object_to_http_body(body)
|
355
317
|
|
356
318
|
local_var_path = '/campaigns/{campaign_id}/actions/test'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
357
|
-
data
|
319
|
+
data = @api_client.call_api(:POST, local_var_path,
|
358
320
|
:query_params => query_params,
|
359
|
-
:form_params => form_params,
|
360
321
|
:body => post_body)
|
361
|
-
return data
|
322
|
+
return data
|
362
323
|
end
|
363
324
|
|
364
325
|
# Unschedule campaign
|
@@ -366,15 +327,13 @@ module MailchimpMarketing
|
|
366
327
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
367
328
|
|
368
329
|
query_params = {}
|
369
|
-
form_params = {}
|
370
330
|
post_body = nil
|
371
331
|
|
372
332
|
local_var_path = '/campaigns/{campaign_id}/actions/unschedule'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
373
|
-
data
|
333
|
+
data = @api_client.call_api(:POST, local_var_path,
|
374
334
|
:query_params => query_params,
|
375
|
-
:form_params => form_params,
|
376
335
|
:body => post_body)
|
377
|
-
return data
|
336
|
+
return data
|
378
337
|
end
|
379
338
|
|
380
339
|
# Add campaign feedback
|
@@ -383,15 +342,13 @@ module MailchimpMarketing
|
|
383
342
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
384
343
|
|
385
344
|
query_params = {}
|
386
|
-
form_params = {}
|
387
345
|
post_body = @api_client.object_to_http_body(body)
|
388
346
|
|
389
347
|
local_var_path = '/campaigns/{campaign_id}/feedback'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
390
|
-
data
|
348
|
+
data = @api_client.call_api(:POST, local_var_path,
|
391
349
|
:query_params => query_params,
|
392
|
-
:form_params => form_params,
|
393
350
|
:body => post_body)
|
394
|
-
return data
|
351
|
+
return data
|
395
352
|
end
|
396
353
|
|
397
354
|
# Set campaign content
|
@@ -400,15 +357,13 @@ module MailchimpMarketing
|
|
400
357
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
401
358
|
|
402
359
|
query_params = {}
|
403
|
-
form_params = {}
|
404
360
|
post_body = @api_client.object_to_http_body(body)
|
405
361
|
|
406
362
|
local_var_path = '/campaigns/{campaign_id}/content'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
407
|
-
data
|
363
|
+
data = @api_client.call_api(:PUT, local_var_path,
|
408
364
|
:query_params => query_params,
|
409
|
-
:form_params => form_params,
|
410
365
|
:body => post_body)
|
411
|
-
return data
|
366
|
+
return data
|
412
367
|
end
|
413
368
|
end
|
414
369
|
end
|