ExStreamClient.Operations.Chat.Campaigns (ExStreamClient v0.1.7)
View SourceModules for interacting with the chat/campaigns
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
Get campaign by ID.
Query campaigns with filter query
Stops a campaign
Starts or schedules a campaign
Types
Functions
@spec get_campaign( String.t(), [ ({:limit, integer()} | {:next, String.t()} | {:prev, String.t()}) | shared_opts() ] ) :: {:ok, ExStreamClient.Model.GetCampaignResponse.t()} | {:error, any()}
Get campaign by ID.
Required Arguments:
id
Optional Arguments:
limit
next
prev
- All options from Shared Options are supported.
@spec query_campaigns(ExStreamClient.Model.QueryCampaignsRequest.t(), shared_opts()) :: {:ok, ExStreamClient.Model.QueryCampaignsResponse.t()} | {:error, any()}
Query campaigns with filter query
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec schedule_campaign( String.t(), ExStreamClient.Model.StopCampaignRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.CampaignResponse.t()} | {:error, any()}
Stops a campaign
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec start_campaign( String.t(), ExStreamClient.Model.StartCampaignRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.StartCampaignResponse.t()} | {:error, any()}
Starts or schedules a campaign
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.