Sha256: 221ebdb68585cb6d3940cf2721cf5bfe4ffe2eb727fed9ef15a976621a0b7a15

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 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.42
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 UsersApi
    attr_accessor :api_client

    def initialize(api_client = ApiClient.default)
      @api_client = api_client
    end

    # Get user info
    # Return the information about the API-connected user.
    # @param body 
    # @param [Hash] opts the optional parameters
    # @return [Array<(InlineResponse20072, Fixnum, Hash)>] InlineResponse20072 data, response status code and response headers
    def info(body = {})
      data = @api_client.call_api(:POST, '/users/info', body)
      data
    end

    # Ping
    # Validate an API key and respond to a ping.
    # @param body 
    # @param [Hash] opts the optional parameters
    # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
    def ping(body = {})
      data = @api_client.call_api(:POST, '/users/ping', body)
      data
    end

    # Ping 2
    # Validate an API key and respond to a ping (JSON parser version).
    # @param body 
    # @param [Hash] opts the optional parameters
    # @return [Array<(InlineResponse20073, Fixnum, Hash)>] InlineResponse20073 data, response status code and response headers
    def ping2(body = {})
      data = @api_client.call_api(:POST, '/users/ping2', body)
      data
    end

    # List account senders
    # Return the senders that have tried to use this account, both verified and unverified.
    # @param body 
    # @param [Hash] opts the optional parameters
    # @return [Array<(Array<InlineResponse20043>, Fixnum, Hash)>] Array<InlineResponse20043> data, response status code and response headers
    def senders(body = {})
      data = @api_client.call_api(:POST, '/users/senders', body)
      data
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
MailchimpTransactional-1.0.42 lib/MailchimpTransactional/api/users_api.rb