Class: MailchimpMarketing::Client

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

Instance Method Summary collapse

Constructor Details

#initialize(api_key = '', server = '') ⇒ 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
# File 'lib/MailchimpMarketing.rb', line 49

def initialize(api_key = '', server = '')
  @api_client = ApiClient.new(api_key, server)

  @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)
  @Dashboard = DashboardApi.new(@api_client)
  @Ecommerce = EcommerceApi.new(@api_client)
  @ExternalAuths = ExternalAuthsApi.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)
  @Postcards = PostcardsApi.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)
  @TemplateFolders = TemplateFoldersApi.new(@api_client)
  @Templates = TemplatesApi.new(@api_client)
  @VerifiedDomains = VerifiedDomainsApi.new(@api_client)
end

Instance Method Details

#activityFeedObject


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

def activityFeed
  @ActivityFeed
end

#authorizedAppsObject


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

def authorizedApps
  @AuthorizedApps
end

#automationsObject


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

def automations
  @Automations
end

#batchesObject


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

def batches
  @Batches
end

#batchWebhooksObject


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

def batchWebhooks
  @BatchWebhooks
end

#campaignFoldersObject


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

def campaignFolders
  @CampaignFolders
end

#campaignsObject


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

def campaigns
  @Campaigns
end

#connectedSitesObject


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

def connectedSites
  @ConnectedSites
end

#conversationsObject


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

def conversations
  @Conversations
end

#dashboardObject


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

def dashboard
  @Dashboard
end

#ecommerceObject


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

def ecommerce
  @Ecommerce
end

#externalAuthsObject


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

def externalAuths
  @ExternalAuths
end

#facebookAdsObject


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

def facebookAds
  @FacebookAds
end

#fileManagerObject


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

def fileManager
  @FileManager
end

#landingPagesObject


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

def landingPages
  @LandingPages
end

#listsObject


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

def lists
  @Lists
end

#pingObject


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

def ping
  @Ping
end

#postcardsObject


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

def postcards
  @Postcards
end

#reportingObject


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

def reporting
  @Reporting
end

#reportsObject


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

def reports
  @Reports
end

#rootObject


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

def root
  @Root
end

#searchCampaignsObject


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

def searchCampaigns
  @SearchCampaigns
end

#searchMembersObject


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

def searchMembers
  @SearchMembers
end

#set_config(api_key = '', server = '') ⇒ Object


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

def set_config(api_key = '', server = '')
  @api_client.set_config(api_key, server)
end

#templateFoldersObject


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

def templateFolders
  @TemplateFolders
end

#templatesObject


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

def templates
  @Templates
end

#verifiedDomainsObject


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

def verifiedDomains
  @VerifiedDomains
end