MailchimpMarketing 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/MailchimpMarketing.gemspec +45 -0
- data/README.md +369 -0
- data/lib/MailchimpMarketing.rb +163 -0
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +113 -0
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +171 -0
- data/lib/MailchimpMarketing/api/automations_api.rb +906 -0
- data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +260 -0
- data/lib/MailchimpMarketing/api/batches_api.rb +214 -0
- data/lib/MailchimpMarketing/api/campaign_folders_api.rb +260 -0
- data/lib/MailchimpMarketing/api/campaigns_api.rb +1073 -0
- data/lib/MailchimpMarketing/api/connected_sites_api.rb +257 -0
- data/lib/MailchimpMarketing/api/conversations_api.rb +293 -0
- data/lib/MailchimpMarketing/api/dashboard_api.rb +317 -0
- data/lib/MailchimpMarketing/api/ecommerce_api.rb +3004 -0
- data/lib/MailchimpMarketing/api/external_auths_api.rb +171 -0
- data/lib/MailchimpMarketing/api/facebook_ads_api.rb +133 -0
- data/lib/MailchimpMarketing/api/file_manager_api.rb +566 -0
- data/lib/MailchimpMarketing/api/landing_pages_api.rb +399 -0
- data/lib/MailchimpMarketing/api/lists_api.rb +3457 -0
- data/lib/MailchimpMarketing/api/ping_api.rb +65 -0
- data/lib/MailchimpMarketing/api/postcards_api.rb +77 -0
- data/lib/MailchimpMarketing/api/reporting_api.rb +338 -0
- data/lib/MailchimpMarketing/api/reports_api.rb +1214 -0
- data/lib/MailchimpMarketing/api/root_api.rb +71 -0
- data/lib/MailchimpMarketing/api/search_campaigns_api.rb +74 -0
- data/lib/MailchimpMarketing/api/search_members_api.rb +77 -0
- data/lib/MailchimpMarketing/api/template_folders_api.rb +260 -0
- data/lib/MailchimpMarketing/api/templates_api.rb +331 -0
- data/lib/MailchimpMarketing/api/verified_domains_api.rb +242 -0
- data/lib/MailchimpMarketing/api_client.rb +192 -0
- data/lib/MailchimpMarketing/api_error.rb +38 -0
- data/lib/MailchimpMarketing/configuration.rb +209 -0
- data/lib/MailchimpMarketing/version.rb +15 -0
- metadata +257 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Marketing API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.1
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpMarketing
|
16
|
+
class PingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Ping the API
|
23
|
+
# A health check for the API that won't return any account-specific information.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [APIHealthStatus]
|
26
|
+
def get(opts = {})
|
27
|
+
data, _status_code, _headers = get_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Ping the API
|
32
|
+
# A health check for the API that won't return any account-specific information.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(APIHealthStatus, Fixnum, Hash)>] APIHealthStatus data, response status code and response headers
|
35
|
+
def get_with_http_info(opts = {})
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/ping'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = {}
|
44
|
+
# HTTP header 'Accept' (if needed)
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
46
|
+
# HTTP header 'Content-Type'
|
47
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = nil
|
54
|
+
auth_names = ['basicAuth']
|
55
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
|
+
:header_params => header_params,
|
57
|
+
:query_params => query_params,
|
58
|
+
:form_params => form_params,
|
59
|
+
:body => post_body,
|
60
|
+
:auth_names => auth_names,
|
61
|
+
:return_type => 'APIHealthStatus')
|
62
|
+
return data, status_code, headers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Marketing API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.1
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpMarketing
|
16
|
+
class PostcardsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# __summary__
|
23
|
+
# Get all of a user's postcards.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :sort_dir Determines the order direction for sorted results.
|
26
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
27
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
28
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000** (default to 10)
|
29
|
+
# @return [InlineResponse2007]
|
30
|
+
def get_all(opts = {})
|
31
|
+
data, _status_code, _headers = get_all_with_http_info(opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# __summary__
|
36
|
+
# Get all of a user's postcards.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :sort_dir Determines the order direction for sorted results.
|
39
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
40
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
41
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000**
|
42
|
+
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
43
|
+
def get_all_with_http_info(opts = {})
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/postcards'
|
46
|
+
|
47
|
+
# query parameters
|
48
|
+
query_params = {}
|
49
|
+
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
50
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
51
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
52
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
53
|
+
|
54
|
+
# header parameters
|
55
|
+
header_params = {}
|
56
|
+
# HTTP header 'Accept' (if needed)
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
58
|
+
# HTTP header 'Content-Type'
|
59
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = nil
|
66
|
+
auth_names = ['basicAuth']
|
67
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => 'InlineResponse2007')
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,338 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Marketing API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.1
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpMarketing
|
16
|
+
class ReportingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get information about the reporting endpoint's resources
|
23
|
+
# Get information about the reporting endpoint's resources
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Reporting]
|
26
|
+
def info(opts = {})
|
27
|
+
data, _status_code, _headers = info_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Get information about the reporting endpoint's resources
|
32
|
+
# Get information about the reporting endpoint's resources
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Reporting, Fixnum, Hash)>] Reporting data, response status code and response headers
|
35
|
+
def info_with_http_info(opts = {})
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/reporting'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = {}
|
44
|
+
# HTTP header 'Accept' (if needed)
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
46
|
+
# HTTP header 'Content-Type'
|
47
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = nil
|
54
|
+
auth_names = ['basicAuth']
|
55
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
|
+
:header_params => header_params,
|
57
|
+
:query_params => query_params,
|
58
|
+
:form_params => form_params,
|
59
|
+
:body => post_body,
|
60
|
+
:auth_names => auth_names,
|
61
|
+
:return_type => 'Reporting')
|
62
|
+
return data, status_code, headers
|
63
|
+
end
|
64
|
+
# __summary__
|
65
|
+
# Get reports of Facebook Ads
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
68
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
69
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000** (default to 10)
|
70
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**. (default to 0)
|
71
|
+
# @option opts [String] :sort_field Returns files sorted by the specified field.
|
72
|
+
# @option opts [String] :sort_dir Determines the order direction for sorted results.
|
73
|
+
# @return [InlineResponse20011]
|
74
|
+
def get_facebook_ads_report_all(opts = {})
|
75
|
+
data, _status_code, _headers = get_facebook_ads_report_all_with_http_info(opts)
|
76
|
+
data
|
77
|
+
end
|
78
|
+
|
79
|
+
# __summary__
|
80
|
+
# Get reports of Facebook Ads
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
83
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
84
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000**
|
85
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**.
|
86
|
+
# @option opts [String] :sort_field Returns files sorted by the specified field.
|
87
|
+
# @option opts [String] :sort_dir Determines the order direction for sorted results.
|
88
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
89
|
+
def get_facebook_ads_report_all_with_http_info(opts = {})
|
90
|
+
# resource path
|
91
|
+
local_var_path = '/reporting/facebook-ads'
|
92
|
+
|
93
|
+
# query parameters
|
94
|
+
query_params = {}
|
95
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
96
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
97
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
98
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
99
|
+
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
100
|
+
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
101
|
+
|
102
|
+
# header parameters
|
103
|
+
header_params = {}
|
104
|
+
# HTTP header 'Accept' (if needed)
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
106
|
+
# HTTP header 'Content-Type'
|
107
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
108
|
+
|
109
|
+
# form parameters
|
110
|
+
form_params = {}
|
111
|
+
|
112
|
+
# http body (model)
|
113
|
+
post_body = nil
|
114
|
+
auth_names = ['basicAuth']
|
115
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
116
|
+
:header_params => header_params,
|
117
|
+
:query_params => query_params,
|
118
|
+
:form_params => form_params,
|
119
|
+
:body => post_body,
|
120
|
+
:auth_names => auth_names,
|
121
|
+
:return_type => 'InlineResponse20011')
|
122
|
+
return data, status_code, headers
|
123
|
+
end
|
124
|
+
# __summary__
|
125
|
+
# Get report of a facebook ad
|
126
|
+
# @param outreach_id The outreach id.
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
130
|
+
# @return [InlineResponse20012]
|
131
|
+
def get_facebook_ad_report(outreach_id = {}, opts = {})
|
132
|
+
data, _status_code, _headers = get_facebook_ad_report_with_http_info(outreach_id, opts)
|
133
|
+
data
|
134
|
+
end
|
135
|
+
|
136
|
+
# __summary__
|
137
|
+
# Get report of a facebook ad
|
138
|
+
# @param outreach_id The outreach id.
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
141
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
142
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
143
|
+
def get_facebook_ad_report_with_http_info(outreach_id, opts = {})
|
144
|
+
# resource path
|
145
|
+
local_var_path = '/reporting/facebook-ads/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
146
|
+
|
147
|
+
# query parameters
|
148
|
+
query_params = {}
|
149
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
150
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = {}
|
154
|
+
# HTTP header 'Accept' (if needed)
|
155
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
156
|
+
# HTTP header 'Content-Type'
|
157
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
158
|
+
|
159
|
+
# form parameters
|
160
|
+
form_params = {}
|
161
|
+
|
162
|
+
# http body (model)
|
163
|
+
post_body = nil
|
164
|
+
auth_names = ['basicAuth']
|
165
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
166
|
+
:header_params => header_params,
|
167
|
+
:query_params => query_params,
|
168
|
+
:form_params => form_params,
|
169
|
+
:body => post_body,
|
170
|
+
:auth_names => auth_names,
|
171
|
+
:return_type => 'InlineResponse20012')
|
172
|
+
return data, status_code, headers
|
173
|
+
end
|
174
|
+
# __summary__
|
175
|
+
# Get breakdown of product activity for an outreach
|
176
|
+
# @param outreach_id The outreach id.
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
179
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
180
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000** (default to 10)
|
181
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**. (default to 0)
|
182
|
+
# @option opts [String] :sort_field Returns files sorted by the specified field.
|
183
|
+
# @return [InlineResponse2008]
|
184
|
+
def get_facebook_ad_product_activity_report(outreach_id = {}, opts = {})
|
185
|
+
data, _status_code, _headers = get_facebook_ad_product_activity_report_with_http_info(outreach_id, opts)
|
186
|
+
data
|
187
|
+
end
|
188
|
+
|
189
|
+
# __summary__
|
190
|
+
# Get breakdown of product activity for an outreach
|
191
|
+
# @param outreach_id The outreach id.
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
194
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
195
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000**
|
196
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**.
|
197
|
+
# @option opts [String] :sort_field Returns files sorted by the specified field.
|
198
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
199
|
+
def get_facebook_ad_product_activity_report_with_http_info(outreach_id, opts = {})
|
200
|
+
# resource path
|
201
|
+
local_var_path = '/reporting/facebook-ads/{outreach_id}/ecommerce-product-activity'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
202
|
+
|
203
|
+
# query parameters
|
204
|
+
query_params = {}
|
205
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
206
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
207
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
208
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
209
|
+
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
210
|
+
|
211
|
+
# header parameters
|
212
|
+
header_params = {}
|
213
|
+
# HTTP header 'Accept' (if needed)
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
215
|
+
# HTTP header 'Content-Type'
|
216
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
217
|
+
|
218
|
+
# form parameters
|
219
|
+
form_params = {}
|
220
|
+
|
221
|
+
# http body (model)
|
222
|
+
post_body = nil
|
223
|
+
auth_names = ['basicAuth']
|
224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
225
|
+
:header_params => header_params,
|
226
|
+
:query_params => query_params,
|
227
|
+
:form_params => form_params,
|
228
|
+
:body => post_body,
|
229
|
+
:auth_names => auth_names,
|
230
|
+
:return_type => 'InlineResponse2008')
|
231
|
+
return data, status_code, headers
|
232
|
+
end
|
233
|
+
# __summary__
|
234
|
+
# Get reports of Landing Pages
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
237
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
238
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000** (default to 10)
|
239
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**. (default to 0)
|
240
|
+
# @return [InlineResponse20013]
|
241
|
+
def get_landing_page_reports_all(opts = {})
|
242
|
+
data, _status_code, _headers = get_landing_page_reports_all_with_http_info(opts)
|
243
|
+
data
|
244
|
+
end
|
245
|
+
|
246
|
+
# __summary__
|
247
|
+
# Get reports of Landing Pages
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
250
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
251
|
+
# @option opts [Integer] :count The number of records to return. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **10**. [Maximum value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **1000**
|
252
|
+
# @option opts [Integer] :offset The number of records from a collection to skip. Iterating over large collections with this parameter can be slow. [Default value](/developer/guides/get-started-with-mailchimp-api-3/#Parameters) is **0**.
|
253
|
+
# @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
|
254
|
+
def get_landing_page_reports_all_with_http_info(opts = {})
|
255
|
+
# resource path
|
256
|
+
local_var_path = '/reporting/landing-pages'
|
257
|
+
|
258
|
+
# query parameters
|
259
|
+
query_params = {}
|
260
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
261
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
262
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
263
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
264
|
+
|
265
|
+
# header parameters
|
266
|
+
header_params = {}
|
267
|
+
# HTTP header 'Accept' (if needed)
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
269
|
+
# HTTP header 'Content-Type'
|
270
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
271
|
+
|
272
|
+
# form parameters
|
273
|
+
form_params = {}
|
274
|
+
|
275
|
+
# http body (model)
|
276
|
+
post_body = nil
|
277
|
+
auth_names = ['basicAuth']
|
278
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
279
|
+
:header_params => header_params,
|
280
|
+
:query_params => query_params,
|
281
|
+
:form_params => form_params,
|
282
|
+
:body => post_body,
|
283
|
+
:auth_names => auth_names,
|
284
|
+
:return_type => 'InlineResponse20013')
|
285
|
+
return data, status_code, headers
|
286
|
+
end
|
287
|
+
# __summary__
|
288
|
+
# Get report of a landing page
|
289
|
+
# @param outreach_id The outreach id.
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
292
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
293
|
+
# @return [LandingPageReport]
|
294
|
+
def get_landing_page_report(outreach_id = {}, opts = {})
|
295
|
+
data, _status_code, _headers = get_landing_page_report_with_http_info(outreach_id, opts)
|
296
|
+
data
|
297
|
+
end
|
298
|
+
|
299
|
+
# __summary__
|
300
|
+
# Get report of a landing page
|
301
|
+
# @param outreach_id The outreach id.
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [Array<String>] :fields A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
|
304
|
+
# @option opts [Array<String>] :exclude_fields A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
|
305
|
+
# @return [Array<(LandingPageReport, Fixnum, Hash)>] LandingPageReport data, response status code and response headers
|
306
|
+
def get_landing_page_report_with_http_info(outreach_id, opts = {})
|
307
|
+
# resource path
|
308
|
+
local_var_path = '/reporting/landing-pages/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
309
|
+
|
310
|
+
# query parameters
|
311
|
+
query_params = {}
|
312
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
313
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
314
|
+
|
315
|
+
# header parameters
|
316
|
+
header_params = {}
|
317
|
+
# HTTP header 'Accept' (if needed)
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
319
|
+
# HTTP header 'Content-Type'
|
320
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
321
|
+
|
322
|
+
# form parameters
|
323
|
+
form_params = {}
|
324
|
+
|
325
|
+
# http body (model)
|
326
|
+
post_body = nil
|
327
|
+
auth_names = ['basicAuth']
|
328
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
329
|
+
:header_params => header_params,
|
330
|
+
:query_params => query_params,
|
331
|
+
:form_params => form_params,
|
332
|
+
:body => post_body,
|
333
|
+
:auth_names => auth_names,
|
334
|
+
:return_type => 'LandingPageReport')
|
335
|
+
return data, status_code, headers
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|