Class: MailchimpMarketing::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/MailchimpMarketing.rb

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/MailchimpMarketing.rb', line 49

def initialize(config = {})
  @api_client = ApiClient.new(config)

  @AccountExport = AccountExportApi.new(@api_client)
  @AccountExports = AccountExportsApi.new(@api_client)
  @ActivityFeed = ActivityFeedApi.new(@api_client)
  @AuthorizedApps = AuthorizedAppsApi.new(@api_client)
  @Automations = AutomationsApi.new(@api_client)
  @BatchWebhooks = BatchWebhooksApi.new(@api_client)
  @Batches = BatchesApi.new(@api_client)
  @CampaignFolders = CampaignFoldersApi.new(@api_client)
  @Campaigns = CampaignsApi.new(@api_client)
  @ConnectedSites = ConnectedSitesApi.new(@api_client)
  @Conversations = ConversationsApi.new(@api_client)
  @CustomerJourneys = CustomerJourneysApi.new(@api_client)
  @Ecommerce = EcommerceApi.new(@api_client)
  @FacebookAds = FacebookAdsApi.new(@api_client)
  @FileManager = FileManagerApi.new(@api_client)
  @LandingPages = LandingPagesApi.new(@api_client)
  @Lists = ListsApi.new(@api_client)
  @Ping = PingApi.new(@api_client)
  @Reporting = ReportingApi.new(@api_client)
  @Reports = ReportsApi.new(@api_client)
  @Root = RootApi.new(@api_client)
  @SearchCampaigns = SearchCampaignsApi.new(@api_client)
  @SearchMembers = SearchMembersApi.new(@api_client)
  @Surveys = SurveysApi.new(@api_client)
  @TemplateFolders = TemplateFoldersApi.new(@api_client)
  @Templates = TemplatesApi.new(@api_client)
  @VerifiedDomains = VerifiedDomainsApi.new(@api_client)
end

Instance Method Details

#accountExportObject



85
86
87
# File 'lib/MailchimpMarketing.rb', line 85

def accountExport
  @AccountExport
end

#accountExportsObject



88
89
90
# File 'lib/MailchimpMarketing.rb', line 88

def accountExports
  @AccountExports
end

#activityFeedObject



91
92
93
# File 'lib/MailchimpMarketing.rb', line 91

def activityFeed
  @ActivityFeed
end

#authorizedAppsObject



94
95
96
# File 'lib/MailchimpMarketing.rb', line 94

def authorizedApps
  @AuthorizedApps
end

#automationsObject



97
98
99
# File 'lib/MailchimpMarketing.rb', line 97

def automations
  @Automations
end

#batchesObject



103
104
105
# File 'lib/MailchimpMarketing.rb', line 103

def batches
  @Batches
end

#batchWebhooksObject



100
101
102
# File 'lib/MailchimpMarketing.rb', line 100

def batchWebhooks
  @BatchWebhooks
end

#campaignFoldersObject



106
107
108
# File 'lib/MailchimpMarketing.rb', line 106

def campaignFolders
  @CampaignFolders
end

#campaignsObject



109
110
111
# File 'lib/MailchimpMarketing.rb', line 109

def campaigns
  @Campaigns
end

#connectedSitesObject



112
113
114
# File 'lib/MailchimpMarketing.rb', line 112

def connectedSites
  @ConnectedSites
end

#conversationsObject



115
116
117
# File 'lib/MailchimpMarketing.rb', line 115

def conversations
  @Conversations
end

#customerJourneysObject



118
119
120
# File 'lib/MailchimpMarketing.rb', line 118

def customerJourneys
  @CustomerJourneys
end

#ecommerceObject



121
122
123
# File 'lib/MailchimpMarketing.rb', line 121

def ecommerce
  @Ecommerce
end

#facebookAdsObject



124
125
126
# File 'lib/MailchimpMarketing.rb', line 124

def facebookAds
  @FacebookAds
end

#fileManagerObject



127
128
129
# File 'lib/MailchimpMarketing.rb', line 127

def fileManager
  @FileManager
end

#landingPagesObject



130
131
132
# File 'lib/MailchimpMarketing.rb', line 130

def landingPages
  @LandingPages
end

#listsObject



133
134
135
# File 'lib/MailchimpMarketing.rb', line 133

def lists
  @Lists
end

#pingObject



136
137
138
# File 'lib/MailchimpMarketing.rb', line 136

def ping
  @Ping
end

#reportingObject



139
140
141
# File 'lib/MailchimpMarketing.rb', line 139

def reporting
  @Reporting
end

#reportsObject



142
143
144
# File 'lib/MailchimpMarketing.rb', line 142

def reports
  @Reports
end

#rootObject



145
146
147
# File 'lib/MailchimpMarketing.rb', line 145

def root
  @Root
end

#searchCampaignsObject



148
149
150
# File 'lib/MailchimpMarketing.rb', line 148

def searchCampaigns
  @SearchCampaigns
end

#searchMembersObject



151
152
153
# File 'lib/MailchimpMarketing.rb', line 151

def searchMembers
  @SearchMembers
end

#set_config(config = {}) ⇒ Object



81
82
83
# File 'lib/MailchimpMarketing.rb', line 81

def set_config(config = {})
  @api_client.set_config(config)
end

#surveysObject



154
155
156
# File 'lib/MailchimpMarketing.rb', line 154

def surveys
  @Surveys
end

#templateFoldersObject



157
158
159
# File 'lib/MailchimpMarketing.rb', line 157

def templateFolders
  @TemplateFolders
end

#templatesObject



160
161
162
# File 'lib/MailchimpMarketing.rb', line 160

def templates
  @Templates
end

#verifiedDomainsObject



163
164
165
# File 'lib/MailchimpMarketing.rb', line 163

def verifiedDomains
  @VerifiedDomains
end