Esempio n. 1
0
def create():
    property_create = PropertyCreate(**request.form)
    hubspot = create_client()
    property = hubspot.crm.properties.core_api.create(
        ObjectType.CONTACTS, property_create=property_create)
    session[SessionKey.ACTION_PERFORMED] = "created"
    return redirect(url_for("properties.show", name=property.name), code=302)
Esempio n. 2
0
def new():
    property_create = PropertyCreate(
        type='string',
        group_name='contactinformation',
    )

    return render_template(
        'properties/show.html',
        property=property_create,
    )
Esempio n. 3
0
def new():
    property_create = PropertyCreate(
        type="string",
        group_name="contactinformation",
    )

    return render_template(
        "properties/show.html",
        property=property_create,
    )