{% extends "layout.html" %} {% block content %} {% if action_performed %}

Successfully {{ action_performed }} Contact

{% endif %} {% if search is defined %}
// src/routes/contacts.py
filter = Filter(
    property_name='email',
    operator='EQ',
    value=search,
)
filter_group = FilterGroup(filters=[filter])
public_object_search_request = PublicObjectSearchRequest(
    filter_groups=[filter_group],
)
hubspot.crm.contacts.search_api.do_search(
    public_object_search_request=public_object_search_request
)
{% endif %}
{% if search is not defined %}
// src/routes/contacts.py
client = HubSpot(access_token='access_token')
contacts_page = client.crm.contacts.basic_api.get_page()
{% endif %} {% for contact in contacts %} {% endfor %}
ID Email Name
{{ contact.id }} {{ contact.properties.email }} {{ (contact.properties.firstname or '') ~ ' ' ~ (contact.properties.lastname or '')}}
{% endblock %}