ExStreamClient.Operations.Chat.PushTemplates (ExStreamClient v0.1.3)

View Source

Modules for interacting with the chat/push_templates group of Stream APIs

API Reference: https://getstream.github.io/protocol/?urls.primaryName=Chat%20v2

Summary

Functions

Retrieve push notification templates for Chat.

Create or update a push notification template for a specific event type and push provider

Functions

get_push_templates(push_provider_type, opts \\ [])

@spec get_push_templates(String.t(), client: module(), push_provider_name: String.t()) ::
  {:ok, ExStreamClient.Model.GetPushTemplatesResponse.t()} | {:error, any()}

Retrieve push notification templates for Chat.

Required Arguments:

  • push_provider_type

Optional Arguments:

upsert_push_template(payload, opts \\ [])

@spec upsert_push_template(ExStreamClient.Model.UpsertPushTemplateRequest.t(), [
  {:client, module()}
]) ::
  {:ok, ExStreamClient.Model.UpsertPushTemplateResponse.t()} | {:error, any()}

Create or update a push notification template for a specific event type and push provider

Required Arguments:

Optional Arguments: