Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.66 KB

File metadata and controls

41 lines (32 loc) · 1.66 KB

Contact

Contact

Properties

Name Type Description Notes
email str Proper email address. [optional]
status ContactStatus [optional] [default to ContactStatus.TRANSACTIONAL]
first_name str First name. [optional]
last_name str Last name. [optional]
custom_fields Dict[str, str] A key-value collection of custom contact fields which can be used in the system. [optional]
consent ConsentData [optional]
source ContactSource [optional] [default to ContactSource.DELIVERYAPI]
source_info str [optional]
date_added datetime Date of creation in YYYY-MM-DDThh:ii:ss format [optional]
date_updated datetime Last change date [optional]
status_change_date datetime Date of last status change. [optional]
activity ContactActivity [optional]

Example

from ElasticEmail.models.contact import Contact

# TODO update the JSON string below
json = "{}"
# create an instance of Contact from a JSON string
contact_instance = Contact.from_json(json)
# print the JSON string representation of the object
print(Contact.to_json())

# convert the object into a dict
contact_dict = contact_instance.to_dict()
# create an instance of Contact from a dict
contact_from_dict = Contact.from_dict(contact_dict)

[Back to Model list] [Back to API list] [Back to README]