ActiveCampaign.Deal (active_campaign v0.1.0)
Documentation for ActiveCampaign.Deal
.
Link to this section Summary
Functions
Bulk Update Deal Owners
Create a deal
Create a deal note
Delete a deal
Retrieve a deal
List all deals
Update a deal
Update a deal note
Link to this section Functions
Link to this function
bulk(deals)
Bulk Update Deal Owners
examples
Examples
iex> ActiveCampaign.Deal.bulk()
{:ok, %{...}}
Link to this function
create(deal)
Create a deal
examples
Examples
iex> ActiveCampaign.Deal.create(%{contact: "51", ...})
{:ok, %{...}}
Link to this function
create_note(id, note)
Create a deal note
examples
Examples
iex> ActiveCampaign.Deal.create_note(123, %{note: "Note for the deal"})
{:ok, %{...}}
Link to this function
delete(id)
Delete a deal
examples
Examples
iex> ActiveCampaign.Deal.delete(123)
{:ok, %{...}}
Link to this function
get(id)
Retrieve a deal
examples
Examples
iex> ActiveCampaign.Deal.get(123)
{:ok, %{"owner" => "1", ...}}
Link to this function
list(query)
List all deals
examples
Examples
iex> ActiveCampaign.Deal.list()
{:ok, %{...}}
Link to this function
update(id, deal)
Update a deal
examples
Examples
iex> ActiveCampaign.Deal.update(123, %{contact: "51", ...})
{:ok, %{...}}
Link to this function
update_note(id, note_id, note)
Update a deal note
examples
Examples
iex> ActiveCampaign.Deal.update_note(123, %{note: "Update with more info"})
{:ok, %{...}}