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.

Functions

Link to this function

create(client \\ Sendio.client(), opts)

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)

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)

Removes a contact property.

Link to this function

update(client \\ Sendio.client(), property_id, opts)

Updates a contact property.

Options

  • :fallback_value - Default value when property is not set on a contact