def hubspot_auth_handler(): api = HubspotAPI() return redirect(api.auth_url())
def hubspot_search_handler(): api = HubspotAPI() return api.search_contacts()
def hubspot_create_contact_handler(): api = HubspotAPI() return api.create_contact()
def hubspot_contacts_handler(): api = HubspotAPI() return api.get_contacts()