=begin #Mailchimp Transactional API #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0.43 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.12 =end require 'uri' module MailchimpTransactional class ExportsApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end # Export activity history # Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you would be able to export from your account's activity view. It includes the following fields: Date, Email Address, Sender, Subject, Status, Tags, Opens, Clicks, Bounce Detail. If you have configured any custom metadata fields, they will be included in the exported data. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers def activity(body = {}) data = @api_client.call_api(:POST, '/exports/activity', body) data end # Export Allowlist # Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers def allowlist(body = {}) data = @api_client.call_api(:POST, '/exports/allowlist', body) data end # View export info # Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers def info(body = {}) data = @api_client.call_api(:POST, '/exports/info', body) data end # List exports # Returns a list of your exports. # @param body # @param [Hash] opts the optional parameters # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def list(body = {}) data = @api_client.call_api(:POST, '/exports/list', body) data end # Export denylist # Begins an export of your rejection denylist. The denylist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers def rejects(body = {}) data = @api_client.call_api(:POST, '/exports/rejects', body) data end # Export Allowlist # Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers def whitelist(body = {}) data = @api_client.call_api(:POST, '/exports/whitelist', body) data end end end