Sha256: 5ff6f03f73080dedb49647e22e3de7b94866551111720413a00ac34935924afc
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
=begin #Mailchimp Transactional API #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0.35 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 WhitelistsApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end # Add email to allowlist # Adds an email to your email rejection allowlist. If the address is currently on your denylist, that denylist entry will be removed automatically. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse20076, Fixnum, Hash)>] InlineResponse20076 data, response status code and response headers def add(body = {}) data = @api_client.call_api(:POST, '/whitelists/add', body) data end # Remove email from allowlist # Removes an email address from the allowlist. # @param body # @param [Hash] opts the optional parameters # @return [Array<(InlineResponse20078, Fixnum, Hash)>] InlineResponse20078 data, response status code and response headers def delete(body = {}) data = @api_client.call_api(:POST, '/whitelists/delete', body) data end # List allowlisted emails # Retrieves your email rejection allowlist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results. # @param body # @param [Hash] opts the optional parameters # @return [Array<(Array<InlineResponse20077>, Fixnum, Hash)>] Array<InlineResponse20077> data, response status code and response headers def list(body = {}) data = @api_client.call_api(:POST, '/whitelists/list', body) data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
MailchimpTransactional-1.0.35 | lib/MailchimpTransactional/api/whitelists_api.rb |