lib/mailinator_client/messages.rb
# Retrieves a list of messages summaries. You can retreive a list by inbox, inboxes, or entire 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
# *  {string} inbox - The Inbox name
# *  {number} skip - Skip this many emails in your Private Domain
# *  {number} limit - Number of emails to fetch from your Private Domain
# *  {string} sort - Sort results by ascending or descending
# *  {boolean} decodeSubject - true: decode encoded subjects
#
# Responses:
# *  Collection of messages (https://manybrain.github.io/m8rdocs/#fetch-inbox-aka-fetch-message-summaries)
Retrieves a list of messages summaries. You can retreive a list by inbox, inboxes, or entire domain.
Authentication:
The client must be configured with a valid api
access token to call this action.



Collection of messages
Retrieves a list of messages summaries . You can retreive a list by inbox inboxes or entire domain . Authentication : The client must be configured with a valid api access token to call this action . Collection of messages
def fetch_inbox(params = {})
      params = Utils.symbolize_hash_keys(params)
      query_params = { skip: 0, limit: 50, sort: "ascending", decodeSubject: false }
      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)
      query_params[:skip] = params[:skip] if params.has_key?(:skip)
      query_params[:limit] = params[:limit] if params.has_key?(:limit)
      query_params[:sort] = params[:sort] if params.has_key?(:sort)
      query_params[:decodeSubject] = params[:decodeSubject] if params.has_key?(:decodeSubject)
      path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}"
      @client.request(
        method: :get,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
def fetch_inbox ( params = { } ) params = Utils . symbolize_hash_keys ( params ) query_params = { skip : 0 , limit : 50 , sort : "ascending" , decodeSubject : false } 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 ) query_params [ :skip ] = params [ :skip ] if params . has_key? ( :skip ) query_params [ :limit ] = params [ :limit ] if params . has_key? ( :limit ) query_params [ :sort ] = params [ :sort ] if params . has_key? ( :sort ) query_params [ :decodeSubject ] = params [ :decodeSubject ] if params . has_key? ( :decodeSubject ) path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}" @client . request ( method : :get , path : path , query : query_params , headers : headers , body : body ) end
Retrieves a list of messages summaries.
Retrieves a list of messages summaries .
params