lib/mailinator_client/messages.rb
# Retrieves a list of attachments for a message. Note attachments are expected to be in Email format.
#
# 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} messageId - The Message id
#
# Responses:
# *  Collection of attachments (https://manybrain.github.io/m8rdocs/#fetch-list-of-attachments)
Retrieves a list of attachments for a message. Note attachments are expected to be in Email format.
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} messageId - The Message id

Collection of attachments
Retrieves a list of attachments for a message . Note attachments are expected to be in Email format . 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 } messageId - The Message id Collection of attachments
def fetch_attachments(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("message id is required") unless params.has_key?(:messageId)
      path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/attachments"
      @client.request(
        method: :get,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
def fetch_attachments ( 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 ( "message id is required" ) unless params . has_key? ( :messageId ) path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/attachments" @client . request ( method : :get , path : path , query : query_params , headers : headers , body : body ) end
Retrieves a list of attachments for a message.
Retrieves a list of attachments for a message .
params