struct Mailjet::Campaigndraft::Detailcontent

Defined in:

mailjet/resources/campaigndraft/detailcontent.cr

Class Method Summary

Instance methods inherited from struct Mailjet::Resource

initialize initialize

Constructor methods inherited from struct Mailjet::Resource

new new

Class Method Detail

def self.create(id : ResourceId, payload : Hash | NamedTuple, client : Client = Client.new) #

Create content for a campaigndraft

campaigndraft = Mailjet::Campaigndraft::Detailcontent.create(12345, {
  "Headers": {
    "Subject":  "Hello There!",
    "From":     "John Doe <[email protected]>",
    "Reply-To": "",
  },
  "Html-part": "<html><body><p>Hello {{var:name}}</p></body></html>",
  "Text-part": "Hello {{var:name}}",
  "Mjml-part": "",
})

[View source]
def self.find(params : Hash | NamedTuple = Hash(String, String).new, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new) #

Find content for a campaigndraft

campaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)

[View source]
def self.find(id : ResourceId, query : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new) #

Find content for a campaigndraft

campaigndraft = Mailjet::Campaigndraft::Detailcontent.find(12345)

[View source]