struct Mailjet::Messageinformation
- Mailjet::Messageinformation
- Mailjet::Resource
- Struct
- Value
- Object
Overview
Retrieve sending / size / spam information about all messages.
https://dev.mailjet.com/email/reference/messages#v3_get_messageinformation https://dev.mailjet.com/email/reference/messages/#v3_get_messageinformation_message_ID
Defined in:
mailjet/resources/messageinformation.crClass Method Summary
-
.all(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetches the history of all messages between two dates
-
.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetches the history for a given message id
-
.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Fetches the history for a given message 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)
#
Fetches the history of all messages between two dates
information = Mailjet::Messageinformation.all({
from_ts: Time.local.at_beginning_of_week.to_rfc3339,
to_ts: Time.local.to_rfc3339,
})
information.data.first.spam_assassin_score
=> 0
def self.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
#
Fetches the history for a given message id
information = Mailjet::Messageinformation.find(576460754655154659)
information.data.first.spam_assassin_score
=> 0
def self.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
#
Fetches the history for a given message id
information = Mailjet::Messageinformation.find(576460754655154659)
information.data.first.spam_assassin_score
=> 0