class MailchimpTransactional::UsersApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/MailchimpTransactional/api/users_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

info(body = {}) click to toggle source

Get user info Return the information about the API-connected user. @param body @param [Hash] opts the optional parameters @return [Array<(InlineResponse20069, Fixnum, Hash)>] InlineResponse20069 data, response status code and response headers

# File lib/MailchimpTransactional/api/users_api.rb, line 28
def info(body = {})
  data = @api_client.call_api(:POST, '/users/info', body)
  data
end
ping(body = {}) click to toggle source

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

# File lib/MailchimpTransactional/api/users_api.rb, line 38
def ping(body = {})
  data = @api_client.call_api(:POST, '/users/ping', body)
  data
end
ping2(body = {}) click to toggle source

Ping 2 Validate an API key and respond to a ping (JSON parser version). @param body @param [Hash] opts the optional parameters @return [Array<(InlineResponse20070, Fixnum, Hash)>] InlineResponse20070 data, response status code and response headers

# File lib/MailchimpTransactional/api/users_api.rb, line 48
def ping2(body = {})
  data = @api_client.call_api(:POST, '/users/ping2', body)
  data
end
senders(body = {}) click to toggle source

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<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers

# File lib/MailchimpTransactional/api/users_api.rb, line 58
def senders(body = {})
  data = @api_client.call_api(:POST, '/users/senders', body)
  data
end