ExStreamClient.Operations.Chat.PushTemplates (ExStreamClient v0.1.7)
View SourceModules for interacting with the chat/push_templates
group of Stream APIs
API Reference: https://getstream.github.io/protocol/?urls.primaryName=Chat%20v2
Shared options
All functions in this module accept the following optional parameters:
api_key
- API key to use. If not provided, the default key from config will be usedapi_key_secret
- API key secret to use. If not provided, the default secret from config will be usedendpoint
- endpoint to use. If not provided, the default endpoint from config will be usedclient
- HTTP client to use. Must implementExStreamClient.Http.Behavior
. Defaults toExStreamClient.Http
req_opts
- all of these options will be forwarded to req. SeeReq.new/1
for available options
Summary
Functions
Retrieve push notification templates for Chat.
Create or update a push notification template for a specific event type and push provider
Types
Functions
@spec get_push_templates(String.t(), [ {:push_provider_name, String.t()} | shared_opts() ]) :: {:ok, ExStreamClient.Model.GetPushTemplatesResponse.t()} | {:error, any()}
Retrieve push notification templates for Chat.
Required Arguments:
push_provider_type
Optional Arguments:
push_provider_name
- All options from Shared Options are supported.
@spec upsert_push_template( ExStreamClient.Model.UpsertPushTemplateRequest.t(), shared_opts() ) :: {: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:
- All options from Shared Options are supported.