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

View Source
Modules for interacting with the `chat/push_templates` group of OpenAI APIs

API Reference: https://platform.openai.com/docs/api-reference/chat/push_templates

Summary

Functions

get_push_templates(push_provider_type, opts \\ [])

@spec get_push_templates(String.t(), [{: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:
    - `push_provider_name`

upsert_push_template(payload)

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


### Required Arguments:
    - `payload`: UpsertPushTemplateRequest