lib/mailinator_client/messages.rb
# Retrieves a specific attachment.
#
# 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
# *  {string} attachmentId - The Attachment id
#
# Responses:
# *  Attachment (https://manybrain.github.io/m8rdocs/#fetch-attachment)
Retrieves a specific attachment.
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
{string} attachmentId - The Attachment id

Attachment
Retrieves a specific attachment . 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 { string } attachmentId - The Attachment id Attachment
def fetch_attachment(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)
      raise ArgumentError.new("attachment id is required") unless params.has_key?(:attachmentId)
      path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/attachments/#{params[:attachmentId]}"
      @client.request(
        method: :get,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
def fetch_attachment ( 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 ) raise ArgumentError . new ( "attachment id is required" ) unless params . has_key? ( :attachmentId ) path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/attachments/#{params[:attachmentId]}" @client . request ( method : :get , path : path , query : query_params , headers : headers , body : body ) end
Retrieves a specific attachment.
Retrieves a specific attachment .
params