struct Mailjet::Contact::List
- Mailjet::Contact::List
- Mailjet::Resource
- Struct
- Value
- Object
Overview
Retrieve all contact lists for a specific contact. You will receive information on the status of the contact for each list. Information about lists deleted within the last 60 days will be returned as well, since those are soft-deleted and can be reinstated.
https://dev.mailjet.com/email/reference/contacts/subscriptions#v3_get_contact_contact_ID_getcontactslists
Defined in:
mailjet/resources/contact/list.crClass Method Summary
-
.all(query : Hash | NamedTuple = Hash(String, String).new, params : Hash | NamedTuple = Hash(String, String).new, client : Client = Client.new)
Find all contact lists for a given contact id
-
.all(contact_id : ResourceId, client : Client = Client.new)
Convenience method allowing to pass the contact id and returning the array of lists directly
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)
#
Find all contact lists for a given contact id
response = Mailjet::Contact::List.all(params: {contact_id: 52856551})
contactlists = response.data
Convenience method allowing to pass the contact id and returning the array of lists directly
contactlists = Mailjet::Contact::List.all(52856551)