Sendio.ContactProperties (sendio v1.1.0)
Manage contact properties in Sendio.
Summary
Functions
Creates a new contact property.
Gets a contact property by ID.
Lists all contact properties.
Removes a contact property.
Updates a contact property.
Functions
Link to this function
create(client \\ Sendio.client(), opts)
@spec create(Sendio.Client.t(), Keyword.t()) :: Sendio.Client.response(Sendio.ContactProperties.ContactProperty.t())
Creates a new contact property.
Options
:key- The key of the property (required, max 50 chars, alphanumeric + underscores):type- The type of the property (required):fallback_value- Default value when property is not set on a contact
Link to this function
get(client \\ Sendio.client(), property_id)
@spec get(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.ContactProperties.ContactProperty.t())
Gets a contact property by ID.
Link to this function
list(client \\ Sendio.client())
@spec list(Sendio.Client.t()) :: Sendio.Client.response( Sendio.List.t(Sendio.ContactProperties.ContactProperty.t()) )
Lists all contact properties.
Link to this function
remove(client \\ Sendio.client(), property_id)
@spec remove(Sendio.Client.t(), String.t()) :: Sendio.Client.response(Sendio.Empty.t())
Removes a contact property.
Link to this function
update(client \\ Sendio.client(), property_id, opts)
@spec update(Sendio.Client.t(), String.t(), Keyword.t()) :: Sendio.Client.response(Sendio.ContactProperties.ContactProperty.t())
Updates a contact property.
Options
:fallback_value- Default value when property is not set on a contact