Sendio.Topics (sendio v1.1.0)

Manage topics in Sendio.

Summary

Functions

Link to this function

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

Creates a new topic.

Options

  • :name - The name of the topic (required, max 50 characters)
  • :default_subscription - Required. Values: opt_in or opt_out. Cannot be changed after creation.
  • :description - Description of the topic (max 200 characters)
  • :visibility - public or private (default: private)
Link to this function

get(client \\ Sendio.client(), topic_id)

Gets a topic by ID.

Link to this function

list(client_or_opts \\ [])

Lists all topics.

Options

  • :limit - Maximum number of topics to return (1-100, default: 20)
  • :after - Cursor for pagination (topic ID to start after)
  • :before - Cursor for pagination (topic ID to start before)
Link to this function

list(client, opts)

Link to this function

remove(client \\ Sendio.client(), topic_id)

Removes a topic.

Link to this function

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

Updates a topic.

Options

  • :name - The name of the topic
  • :description - Description of the topic (max 200 characters)
  • :visibility - public or private

Note: default_subscription cannot be changed after creation.