podium_ex v0.4.1 Podium View Source
An HTTP client for the Podium API.
Link to this section Summary
Functions
Create a conversation item
Create an interaction
Create a message
Delete a conversation item
Get an organization and its locations
Update a conversation item
Update an interaction
Link to this section Functions
Link to this function
create_conversation_item(item)
View Source
create_conversation_item(Podium.ConversationItem.t()) :: Podium.ConversationItem.t()
Create a conversation item.
Link to this function
create_interaction(interaction)
View Source
create_interaction(Podium.Interaction.t()) :: Podium.Interaction.t()
Create an interaction.
Link to this function
create_message(msg)
View Source
create_message(Podium.Message.t()) :: Podium.Message.t()
Create a message.
Link to this function
delete_conversation_item(uid)
View Source
delete_conversation_item(String.t()) :: :ok
Delete a conversation item.
Link to this function
get_organization(uid)
View Source
get_organization(String.t()) :: Podium.Organization.t() | nil
Get an organization and its locations.
Examples
iex> get_organization("f4ac4bcb-e271-5a92-8e43-1d676a8821fa")
%Organization{locations: [%Location{}]}
iex> get_organization("non-existent UID")
nil
Link to this function
update_conversation_item(item)
View Source
update_conversation_item(Podium.ConversationItem.t()) :: Podium.ConversationItem.t()
Update a conversation item.
Link to this function
update_interaction(interaction)
View Source
update_interaction(Podium.Interaction.t()) :: Podium.Interaction.t()
Update an interaction.