lib/mailinator_client/messages.rb
def fetch_sms_message(params = {})
      params = Utils.symbolize_hash_keys(params)
      query_params = { }
      headers = {}
      body = nil

      raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
      raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
      raise ArgumentError.new("team sms number is required") unless params.has_key?(:teamSmsNumber)

      path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/#{params[:teamSmsNumber]}"

      @client.request(
        method: :get,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
# Retrieves a specific SMS message by sms number.
#
# 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
# *  {string} inbox - The Inbox name
# *  {string} teamSmsNumber - The Team sms number
#
# Responses:
# *  Collection of messages (https://manybrain.github.io/m8rdocs/#fetch-an-sms-messages)
Retrieves a specific SMS message by sms number.
Authentication:
The client must be configured with a valid api
access token to call this action.

{string} domainId - The Domain name or the Domain id
{string} inbox - The Inbox name
{string} teamSmsNumber - The Team sms number

Collection of messages
Retrieves a specific SMS message by sms number . Authentication : The client must be configured with a valid api access token to call this action . { string } domainId - The Domain name or the Domain id { string } inbox - The Inbox name { string } teamSmsNumber - The Team sms number Collection of messages
def fetch_sms_message(params = {})
      params = Utils.symbolize_hash_keys(params)
      query_params = { }
      headers = {}
      body = nil
      raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
      raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
      raise ArgumentError.new("team sms number is required") unless params.has_key?(:teamSmsNumber)
      path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/#{params[:teamSmsNumber]}"
      @client.request(
        method: :get,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
def fetch_sms_message ( params = { } ) params = Utils . symbolize_hash_keys ( params ) query_params = { } headers = { } body = nil raise ArgumentError . new ( "domain is required" ) unless params . has_key? ( :domain ) raise ArgumentError . new ( "inbox is required" ) unless params . has_key? ( :inbox ) raise ArgumentError . new ( "team sms number is required" ) unless params . has_key? ( :teamSmsNumber ) path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/#{params[:teamSmsNumber]}" @client . request ( method : :get , path : path , query : query_params , headers : headers , body : body ) end
Retrieves a specific SMS message by sms number.
Retrieves a specific SMS message by sms number .
params