ExStreamClient.Operations.Chat.Threads (ExStreamClient v0.1.7)
View SourceModules for interacting with the chat/threads
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
Return a specific thread
Returns the list of threads for specific user
Updates certain fields of the thread
Types
Functions
@spec get_thread( String.t(), [ ({:member_limit, integer()} | {:participant_limit, integer()} | {:reply_limit, integer()}) | shared_opts() ] ) :: {:ok, ExStreamClient.Model.GetThreadResponse.t()} | {:error, any()}
Return a specific thread
Required Arguments:
message_id
Optional Arguments:
member_limit
participant_limit
reply_limit
- All options from Shared Options are supported.
@spec query_threads(ExStreamClient.Model.QueryThreadsRequest.t(), shared_opts()) :: {:ok, ExStreamClient.Model.QueryThreadsResponse.t()} | {:error, any()}
Returns the list of threads for specific user
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec update_thread_partial( String.t(), ExStreamClient.Model.UpdateThreadPartialRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.UpdateThreadPartialResponse.t()} | {:error, any()}
Updates certain fields of the thread
Sends events:
thread.updated
thread.updated
Required Arguments:
message_id
payload
:Elixir.ExStreamClient.Model.UpdateThreadPartialRequest
Optional Arguments:
- All options from Shared Options are supported.