class MailchimpMarketing::ActivityFeedApi
Attributes
api_client[RW]
Public Class Methods
new(api_client)
click to toggle source
# File lib/MailchimpMarketing/api/activity_feed_api.rb, line 19 def initialize(api_client) @api_client = api_client end
Public Instance Methods
get_chimp_chatter(opts = {})
click to toggle source
Get latest chimp chatter
# File lib/MailchimpMarketing/api/activity_feed_api.rb, line 24 def get_chimp_chatter(opts = {}) fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000 query_params = {} query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? post_body = nil local_var_path = '/activity-feed/chimp-chatter' data = @api_client.call_api(:GET, local_var_path, :query_params => query_params, :body => post_body) return data end