View Source Dealcloud.Data.Rows (dealcloud v0.3.0)

These are Rows APIs, These APIs work using Arrays of Json objects. These APIs are typical of what you see in most other systems. These APIs works better with ETL tools.

Link to this section Summary

Functions

Creates new entries in the site. EntryId must be negative integer

Gets entries in the site, but uses a post request instead

Gets entries in the site using either the id or api name

Updates existing entries in the site. EntryId must be positive integer

Link to this section Functions

Link to this function

create_entries(entryTypeId, body, config)

View Source

Specs

create_entries(binary() | integer(), [map()], Dealcloud.Auth) :: any()

Creates new entries in the site. EntryId must be negative integer

Examples

Dealcloud.Data.Rows.create_entries(2011, [{"EntryId" => -1, "Name" => "Hello"}], %Dealcloud.Auth{})
Dealcloud.Data.Rows.create_entries("company", [{"EntryId" => -1, "Name" => "Hello"}], %Dealcloud.Auth{})
Link to this function

get_as_post(entryTypeId, body, config)

View Source

Specs

get_as_post(binary() | integer(), Dealcloud.Data.PostQuery, Dealcloud.Auth) ::
  any()

Gets entries in the site, but uses a post request instead

Examples

Dealcloud.Data.Rows.get_as_post(2011, %Dealcloud.Data.PostQuery{}, %Dealcloud.Auth{})
Dealcloud.Data.Rows.get_as_post("company", %Dealcloud.Data.PostQuery{}, %Dealcloud.Auth{})
Link to this function

get_entries(entryTypeId, params, config)

View Source

Specs

get_entries(binary() | integer(), Dealcloud.Data.Query, Dealcloud.Auth) :: any()

Gets entries in the site using either the id or api name

Examples

Dealcloud.Data.Rows.get_entries(2011, %Dealcloud.Data.Query{}, %Dealcloud.Auth{})
Dealcloud.Data.Rows.get_entries("company", %Dealcloud.Data.Query{}, %Dealcloud.Auth{})
Link to this function

update_entries(entryTypeId, body, config)

View Source

Specs

update_entries(binary() | integer(), [map()], Dealcloud.Auth) :: any()

Updates existing entries in the site. EntryId must be positive integer

Examples

Dealcloud.Data.Rows.update_entries(2011, [{"EntryId" => 1, "Name" => "Hello"}], %Dealcloud.Auth{})
Dealcloud.Data.Rows.update_entries("company", [{"EntryId" => 1, "Name" => "Hello"}], %Dealcloud.Auth{})