class MailinatorClient::Domains
Class containing all the actions for the Domains
Resource
Public Class Methods
new(client)
click to toggle source
# File lib/mailinator_client/domains.rb, line 30 def initialize(client) @client = client end
Public Instance Methods
get_domain(params = {})
click to toggle source
Fetches a specific domain
Authentication: The client must be configured with a valid api access token to call this action.
Parameters:
-
{string} domainId - The Domain name or the Domain id
Responses:
# File lib/mailinator_client/domains.rb, line 68 def get_domain(params = {}) params = Utils.symbolize_hash_keys(params) query_params = { } headers = {} body = nil raise ArgumentError.new("domain id is required") unless params.has_key?(:domainId) path = "/domains/#{params[:domainId]}" @client.request( method: :get, path: path, query: query_params, headers: headers, body: body) end
get_domains()
click to toggle source
Fetches a list of all your domains.
Authentication: The client must be configured with a valid api access token to call this action.
Responses:
-
Collection of domains (manybrain.github.io/m8rdocs/#get-usage-statistica)
# File lib/mailinator_client/domains.rb, line 42 def get_domains() query_params = {} headers = {} body = nil path = "/domains" response = @client.request( method: :get, path: path, query: query_params, headers: headers, body: body) end