Module: Resend::Emails::Receiving
- Defined in:
- lib/resend/emails/receiving.rb,
lib/resend/emails/receiving/attachments.rb
Overview
Module for receiving emails API operations
Defined Under Namespace
Modules: Attachments
Class Method Summary collapse
-
.get(email_id = "", params = {}) ⇒ Hash
Retrieve a single received email.
-
.list(params = {}) ⇒ Hash
List received emails with optional pagination.
Class Method Details
.get(email_id = "", params = {}) ⇒ Hash
Retrieve a single received email
20 21 22 23 24 25 26 |
# File 'lib/resend/emails/receiving.rb', line 20 def get(email_id = "", params = {}) path = "emails/receiving/#{email_id}" path += "?html_format=#{CGI.escape(params[:html_format].to_s)}" if params[:html_format] Resend::Request.new(path, {}, "get").perform end |
.list(params = {}) ⇒ Hash
List received emails with optional pagination
44 45 46 47 |
# File 'lib/resend/emails/receiving.rb', line 44 def list(params = {}) path = Resend::PaginationHelper.build_paginated_path("emails/receiving", params) Resend::Request.new(path, {}, "get").perform end |