struct Mailjet::Message
- Mailjet::Message
- Mailjet::Resource
- Struct
- Value
- Object
Overview
Every time you send an email via Mailjet, a new message object is created. The resources below help you retrieve details about these messages - sending time, delivery and contact engagement info, recipients, message size, etc.
https://dev.mailjet.com/email/reference/messages/
Defined in:
mailjet/resources/message.crClass Method Summary
-
.all(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetch all messages
-
.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetch a message for the given id
-
.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetch a message for the given id
Instance methods inherited from struct Mailjet::Resource
initialize
initialize
Constructor methods inherited from struct Mailjet::Resource
new
new
Class Method Detail
def self.all(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
#
Fetch all messages
messages = Mailjet::Message.all
Optionally with query params
messages = Mailjet::Message.all({contact_alt: "[email protected]"})
def self.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
#
Fetch a message for the given id
message = Mailjet::Message.find(123456789)
def self.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
#
Fetch a message for the given id
message = Mailjet::Message.find(123456789)