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 PingApi
|
@@ -25,15 +24,13 @@ module MailchimpMarketing
|
|
25
24
|
def get(opts = {})
|
26
25
|
|
27
26
|
query_params = {}
|
28
|
-
form_params = {}
|
29
27
|
post_body = nil
|
30
28
|
|
31
29
|
local_var_path = '/ping'
|
32
|
-
data
|
30
|
+
data = @api_client.call_api(:GET, local_var_path,
|
33
31
|
:query_params => query_params,
|
34
|
-
:form_params => form_params,
|
35
32
|
:body => post_body)
|
36
|
-
return data
|
33
|
+
return data
|
37
34
|
end
|
38
35
|
end
|
39
36
|
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 PostcardsApi
|
@@ -31,15 +30,13 @@ module MailchimpMarketing
|
|
31
30
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
32
31
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
33
32
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
34
|
-
form_params = {}
|
35
33
|
post_body = nil
|
36
34
|
|
37
35
|
local_var_path = '/postcards'
|
38
|
-
data
|
36
|
+
data = @api_client.call_api(:GET, local_var_path,
|
39
37
|
:query_params => query_params,
|
40
|
-
:form_params => form_params,
|
41
38
|
:body => post_body)
|
42
|
-
return data
|
39
|
+
return data
|
43
40
|
end
|
44
41
|
end
|
45
42
|
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 ReportingApi
|
@@ -25,15 +24,13 @@ module MailchimpMarketing
|
|
25
24
|
def info(opts = {})
|
26
25
|
|
27
26
|
query_params = {}
|
28
|
-
form_params = {}
|
29
27
|
post_body = nil
|
30
28
|
|
31
29
|
local_var_path = '/reporting'
|
32
|
-
data
|
30
|
+
data = @api_client.call_api(:GET, local_var_path,
|
33
31
|
:query_params => query_params,
|
34
|
-
:form_params => form_params,
|
35
32
|
:body => post_body)
|
36
|
-
return data
|
33
|
+
return data
|
37
34
|
end
|
38
35
|
|
39
36
|
# List facebook ads reports
|
@@ -49,15 +46,13 @@ module MailchimpMarketing
|
|
49
46
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
50
47
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
51
48
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
52
|
-
form_params = {}
|
53
49
|
post_body = nil
|
54
50
|
|
55
51
|
local_var_path = '/reporting/facebook-ads'
|
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 facebook ad report
|
@@ -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 = '/reporting/facebook-ads/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_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
|
# List facebook ecommerce report
|
@@ -90,15 +83,13 @@ module MailchimpMarketing
|
|
90
83
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
91
84
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
92
85
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
93
|
-
form_params = {}
|
94
86
|
post_body = nil
|
95
87
|
|
96
88
|
local_var_path = '/reporting/facebook-ads/{outreach_id}/ecommerce-product-activity'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
97
|
-
data
|
89
|
+
data = @api_client.call_api(:GET, local_var_path,
|
98
90
|
:query_params => query_params,
|
99
|
-
:form_params => form_params,
|
100
91
|
:body => post_body)
|
101
|
-
return data
|
92
|
+
return data
|
102
93
|
end
|
103
94
|
|
104
95
|
# List landing pages reports
|
@@ -110,15 +101,13 @@ module MailchimpMarketing
|
|
110
101
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
111
102
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
112
103
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
113
|
-
form_params = {}
|
114
104
|
post_body = nil
|
115
105
|
|
116
106
|
local_var_path = '/reporting/landing-pages'
|
117
|
-
data
|
107
|
+
data = @api_client.call_api(:GET, local_var_path,
|
118
108
|
:query_params => query_params,
|
119
|
-
:form_params => form_params,
|
120
109
|
:body => post_body)
|
121
|
-
return data
|
110
|
+
return data
|
122
111
|
end
|
123
112
|
|
124
113
|
# Get landing page report
|
@@ -128,15 +117,13 @@ module MailchimpMarketing
|
|
128
117
|
query_params = {}
|
129
118
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
130
119
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
131
|
-
form_params = {}
|
132
120
|
post_body = nil
|
133
121
|
|
134
122
|
local_var_path = '/reporting/landing-pages/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
135
|
-
data
|
123
|
+
data = @api_client.call_api(:GET, local_var_path,
|
136
124
|
:query_params => query_params,
|
137
|
-
:form_params => form_params,
|
138
125
|
:body => post_body)
|
139
|
-
return data
|
126
|
+
return data
|
140
127
|
end
|
141
128
|
end
|
142
129
|
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 ReportsApi
|
@@ -34,15 +33,13 @@ module MailchimpMarketing
|
|
34
33
|
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
35
34
|
query_params[:'before_send_time'] = opts[:'before_send_time'] if !opts[:'before_send_time'].nil?
|
36
35
|
query_params[:'since_send_time'] = opts[:'since_send_time'] if !opts[:'since_send_time'].nil?
|
37
|
-
form_params = {}
|
38
36
|
post_body = nil
|
39
37
|
|
40
38
|
local_var_path = '/reports'
|
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 campaign report
|
@@ -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 = '/reports/{campaign_id}'.sub('{' + 'campaign_id' + '}', campaign_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
|
|
66
61
|
# List abuse reports
|
@@ -70,15 +65,13 @@ module MailchimpMarketing
|
|
70
65
|
query_params = {}
|
71
66
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
72
67
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
73
|
-
form_params = {}
|
74
68
|
post_body = nil
|
75
69
|
|
76
70
|
local_var_path = '/reports/{campaign_id}/abuse-reports'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
77
|
-
data
|
71
|
+
data = @api_client.call_api(:GET, local_var_path,
|
78
72
|
:query_params => query_params,
|
79
|
-
:form_params => form_params,
|
80
73
|
:body => post_body)
|
81
|
-
return data
|
74
|
+
return data
|
82
75
|
end
|
83
76
|
|
84
77
|
# Get abuse report
|
@@ -89,15 +82,13 @@ module MailchimpMarketing
|
|
89
82
|
query_params = {}
|
90
83
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
91
84
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
92
|
-
form_params = {}
|
93
85
|
post_body = nil
|
94
86
|
|
95
87
|
local_var_path = '/reports/{campaign_id}/abuse-reports/{report_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'report_id' + '}', report_id.to_s)
|
96
|
-
data
|
88
|
+
data = @api_client.call_api(:GET, local_var_path,
|
97
89
|
:query_params => query_params,
|
98
|
-
:form_params => form_params,
|
99
90
|
:body => post_body)
|
100
|
-
return data
|
91
|
+
return data
|
101
92
|
end
|
102
93
|
|
103
94
|
# List campaign feedback
|
@@ -107,15 +98,13 @@ module MailchimpMarketing
|
|
107
98
|
query_params = {}
|
108
99
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
109
100
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
110
|
-
form_params = {}
|
111
101
|
post_body = nil
|
112
102
|
|
113
103
|
local_var_path = '/reports/{campaign_id}/advice'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
114
|
-
data
|
104
|
+
data = @api_client.call_api(:GET, local_var_path,
|
115
105
|
:query_params => query_params,
|
116
|
-
:form_params => form_params,
|
117
106
|
:body => post_body)
|
118
|
-
return data
|
107
|
+
return data
|
119
108
|
end
|
120
109
|
|
121
110
|
# List campaign details
|
@@ -128,15 +117,13 @@ module MailchimpMarketing
|
|
128
117
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
129
118
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
130
119
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
131
|
-
form_params = {}
|
132
120
|
post_body = nil
|
133
121
|
|
134
122
|
local_var_path = '/reports/{campaign_id}/click-details'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
135
|
-
data
|
123
|
+
data = @api_client.call_api(:GET, local_var_path,
|
136
124
|
:query_params => query_params,
|
137
|
-
:form_params => form_params,
|
138
125
|
:body => post_body)
|
139
|
-
return data
|
126
|
+
return data
|
140
127
|
end
|
141
128
|
|
142
129
|
# Get campaign link details
|
@@ -147,15 +134,13 @@ module MailchimpMarketing
|
|
147
134
|
query_params = {}
|
148
135
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
149
136
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
150
|
-
form_params = {}
|
151
137
|
post_body = nil
|
152
138
|
|
153
139
|
local_var_path = '/reports/{campaign_id}/click-details/{link_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_id.to_s)
|
154
|
-
data
|
140
|
+
data = @api_client.call_api(:GET, local_var_path,
|
155
141
|
:query_params => query_params,
|
156
|
-
:form_params => form_params,
|
157
142
|
:body => post_body)
|
158
|
-
return data
|
143
|
+
return data
|
159
144
|
end
|
160
145
|
|
161
146
|
# List clicked link subscribers
|
@@ -169,15 +154,13 @@ module MailchimpMarketing
|
|
169
154
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
170
155
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
171
156
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
172
|
-
form_params = {}
|
173
157
|
post_body = nil
|
174
158
|
|
175
159
|
local_var_path = '/reports/{campaign_id}/click-details/{link_id}/members'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_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
|
# Get clicked link subscriber
|
@@ -189,15 +172,13 @@ module MailchimpMarketing
|
|
189
172
|
query_params = {}
|
190
173
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
191
174
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
192
|
-
form_params = {}
|
193
175
|
post_body = nil
|
194
176
|
|
195
177
|
local_var_path = '/reports/{campaign_id}/click-details/{link_id}/members/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
196
|
-
data
|
178
|
+
data = @api_client.call_api(:GET, local_var_path,
|
197
179
|
:query_params => query_params,
|
198
|
-
:form_params => form_params,
|
199
180
|
:body => post_body)
|
200
|
-
return data
|
181
|
+
return data
|
201
182
|
end
|
202
183
|
|
203
184
|
# List domain performance stats
|
@@ -207,15 +188,13 @@ module MailchimpMarketing
|
|
207
188
|
query_params = {}
|
208
189
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
209
190
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
210
|
-
form_params = {}
|
211
191
|
post_body = nil
|
212
192
|
|
213
193
|
local_var_path = '/reports/{campaign_id}/domain-performance'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
214
|
-
data
|
194
|
+
data = @api_client.call_api(:GET, local_var_path,
|
215
195
|
:query_params => query_params,
|
216
|
-
:form_params => form_params,
|
217
196
|
:body => post_body)
|
218
|
-
return data
|
197
|
+
return data
|
219
198
|
end
|
220
199
|
|
221
200
|
# List campaign product activity
|
@@ -230,15 +209,13 @@ module MailchimpMarketing
|
|
230
209
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
231
210
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
232
211
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
233
|
-
form_params = {}
|
234
212
|
post_body = nil
|
235
213
|
|
236
214
|
local_var_path = '/reports/{campaign_id}/ecommerce-product-activity'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
237
|
-
data
|
215
|
+
data = @api_client.call_api(:GET, local_var_path,
|
238
216
|
:query_params => query_params,
|
239
|
-
:form_params => form_params,
|
240
217
|
:body => post_body)
|
241
|
-
return data
|
218
|
+
return data
|
242
219
|
end
|
243
220
|
|
244
221
|
# List eep url activity
|
@@ -248,15 +225,13 @@ module MailchimpMarketing
|
|
248
225
|
query_params = {}
|
249
226
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
250
227
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
251
|
-
form_params = {}
|
252
228
|
post_body = nil
|
253
229
|
|
254
230
|
local_var_path = '/reports/{campaign_id}/eepurl'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
255
|
-
data
|
231
|
+
data = @api_client.call_api(:GET, local_var_path,
|
256
232
|
:query_params => query_params,
|
257
|
-
:form_params => form_params,
|
258
233
|
:body => post_body)
|
259
|
-
return data
|
234
|
+
return data
|
260
235
|
end
|
261
236
|
|
262
237
|
# List email activity
|
@@ -270,15 +245,13 @@ module MailchimpMarketing
|
|
270
245
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
271
246
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
272
247
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
273
|
-
form_params = {}
|
274
248
|
post_body = nil
|
275
249
|
|
276
250
|
local_var_path = '/reports/{campaign_id}/email-activity'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
277
|
-
data
|
251
|
+
data = @api_client.call_api(:GET, local_var_path,
|
278
252
|
:query_params => query_params,
|
279
|
-
:form_params => form_params,
|
280
253
|
:body => post_body)
|
281
|
-
return data
|
254
|
+
return data
|
282
255
|
end
|
283
256
|
|
284
257
|
# Get subscriber email activity
|
@@ -290,15 +263,13 @@ module MailchimpMarketing
|
|
290
263
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
291
264
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
292
265
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
293
|
-
form_params = {}
|
294
266
|
post_body = nil
|
295
267
|
|
296
268
|
local_var_path = '/reports/{campaign_id}/email-activity/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
297
|
-
data
|
269
|
+
data = @api_client.call_api(:GET, local_var_path,
|
298
270
|
:query_params => query_params,
|
299
|
-
:form_params => form_params,
|
300
271
|
:body => post_body)
|
301
|
-
return data
|
272
|
+
return data
|
302
273
|
end
|
303
274
|
|
304
275
|
# List top open activities
|
@@ -311,15 +282,13 @@ module MailchimpMarketing
|
|
311
282
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
312
283
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
313
284
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
314
|
-
form_params = {}
|
315
285
|
post_body = nil
|
316
286
|
|
317
287
|
local_var_path = '/reports/{campaign_id}/locations'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
318
|
-
data
|
288
|
+
data = @api_client.call_api(:GET, local_var_path,
|
319
289
|
:query_params => query_params,
|
320
|
-
:form_params => form_params,
|
321
290
|
:body => post_body)
|
322
|
-
return data
|
291
|
+
return data
|
323
292
|
end
|
324
293
|
|
325
294
|
# List campaign open details
|
@@ -333,15 +302,13 @@ module MailchimpMarketing
|
|
333
302
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
334
303
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
335
304
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
336
|
-
form_params = {}
|
337
305
|
post_body = nil
|
338
306
|
|
339
307
|
local_var_path = '/reports/{campaign_id}/open-details'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
340
|
-
data
|
308
|
+
data = @api_client.call_api(:GET, local_var_path,
|
341
309
|
:query_params => query_params,
|
342
|
-
:form_params => form_params,
|
343
310
|
:body => post_body)
|
344
|
-
return data
|
311
|
+
return data
|
345
312
|
end
|
346
313
|
|
347
314
|
# Get opened campaign subscriber
|
@@ -352,15 +319,13 @@ module MailchimpMarketing
|
|
352
319
|
query_params = {}
|
353
320
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
354
321
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
355
|
-
form_params = {}
|
356
322
|
post_body = nil
|
357
323
|
|
358
324
|
local_var_path = '/reports/{campaign_id}/open-details/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
359
|
-
data
|
325
|
+
data = @api_client.call_api(:GET, local_var_path,
|
360
326
|
:query_params => query_params,
|
361
|
-
:form_params => form_params,
|
362
327
|
:body => post_body)
|
363
|
-
return data
|
328
|
+
return data
|
364
329
|
end
|
365
330
|
|
366
331
|
# List campaign recipients
|
@@ -373,15 +338,13 @@ module MailchimpMarketing
|
|
373
338
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
374
339
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
375
340
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
376
|
-
form_params = {}
|
377
341
|
post_body = nil
|
378
342
|
|
379
343
|
local_var_path = '/reports/{campaign_id}/sent-to'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
380
|
-
data
|
344
|
+
data = @api_client.call_api(:GET, local_var_path,
|
381
345
|
:query_params => query_params,
|
382
|
-
:form_params => form_params,
|
383
346
|
:body => post_body)
|
384
|
-
return data
|
347
|
+
return data
|
385
348
|
end
|
386
349
|
|
387
350
|
# Get campaign recipient info
|
@@ -392,15 +355,13 @@ module MailchimpMarketing
|
|
392
355
|
query_params = {}
|
393
356
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
394
357
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
395
|
-
form_params = {}
|
396
358
|
post_body = nil
|
397
359
|
|
398
360
|
local_var_path = '/reports/{campaign_id}/sent-to/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
399
|
-
data
|
361
|
+
data = @api_client.call_api(:GET, local_var_path,
|
400
362
|
:query_params => query_params,
|
401
|
-
:form_params => form_params,
|
402
363
|
:body => post_body)
|
403
|
-
return data
|
364
|
+
return data
|
404
365
|
end
|
405
366
|
|
406
367
|
# List child campaign reports
|
@@ -410,15 +371,13 @@ module MailchimpMarketing
|
|
410
371
|
query_params = {}
|
411
372
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
412
373
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
413
|
-
form_params = {}
|
414
374
|
post_body = nil
|
415
375
|
|
416
376
|
local_var_path = '/reports/{campaign_id}/sub-reports'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
417
|
-
data
|
377
|
+
data = @api_client.call_api(:GET, local_var_path,
|
418
378
|
:query_params => query_params,
|
419
|
-
:form_params => form_params,
|
420
379
|
:body => post_body)
|
421
|
-
return data
|
380
|
+
return data
|
422
381
|
end
|
423
382
|
|
424
383
|
# List unsubscribed members
|
@@ -431,15 +390,13 @@ module MailchimpMarketing
|
|
431
390
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
432
391
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
433
392
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
434
|
-
form_params = {}
|
435
393
|
post_body = nil
|
436
394
|
|
437
395
|
local_var_path = '/reports/{campaign_id}/unsubscribed'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
|
438
|
-
data
|
396
|
+
data = @api_client.call_api(:GET, local_var_path,
|
439
397
|
:query_params => query_params,
|
440
|
-
:form_params => form_params,
|
441
398
|
:body => post_body)
|
442
|
-
return data
|
399
|
+
return data
|
443
400
|
end
|
444
401
|
|
445
402
|
# Get unsubscribed member
|
@@ -450,15 +407,13 @@ module MailchimpMarketing
|
|
450
407
|
query_params = {}
|
451
408
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
452
409
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
453
|
-
form_params = {}
|
454
410
|
post_body = nil
|
455
411
|
|
456
412
|
local_var_path = '/reports/{campaign_id}/unsubscribed/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
457
|
-
data
|
413
|
+
data = @api_client.call_api(:GET, local_var_path,
|
458
414
|
:query_params => query_params,
|
459
|
-
:form_params => form_params,
|
460
415
|
:body => post_body)
|
461
|
-
return data
|
416
|
+
return data
|
462
417
|
end
|
463
418
|
end
|
464
419
|
end
|