Sha256: 41ac6227579f6101d905c0633d6ca0ea343b05fe76efb7cbca436627df57211f

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

=begin
#Mailchimp Marketing API

#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 3.0.75
Contact: apihelp@mailchimp.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.12

=end

require 'uri'

module MailchimpMarketing
  class AccountExportApi
    attr_accessor :api_client

    def initialize(api_client)
      @api_client = api_client
    end

    # Get account export info
    def get_account_exports(export_id, opts = {})
      fail ArgumentError, "Missing required param: 'export_id'" if export_id.nil?

      query_params = {}
      query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
      query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
      post_body = nil

      local_var_path = '/account-exports/{export_id}'.sub('{' + 'export_id' + '}', export_id.to_s)
      data = @api_client.call_api(:GET, local_var_path,
        :query_params => query_params,
        :body => post_body)
      return data
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
MailchimpMarketing-3.0.75 lib/MailchimpMarketing/api/account_export_api.rb