Packages

Elixir SDK for TalkJS

Current section

Files

Jump to
talkjs lib talkjs conversation.ex
Raw

lib/talkjs/conversation.ex

defmodule TalkJS.Conversation do
@moduledoc """
Module to access the /conversations/ endpoints
"""
@doc """
Create or update a conversation
```elixir
client = TalkJS.new(api_key: "...", app_id: "...")
TalkJS.Conversation.create_or_update(client, "695388f0e3481bcd93", %{})
```
"""
def create_or_update(client, id, params) do
TalkJS.request(:put, "#{client.app_id}/conversations/#{id}", client, params)
end
end