View Source Dealcloud.Data.Rows (dealcloud v0.4.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 using either the id or api name

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

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

Link to this section Functions

Link to this function

create(entryTypeId, body, config)

View Source

Specs

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

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

Examples

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

get(entryTypeId, params, config)

View Source

Specs

get(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(2011, %Dealcloud.Data.Query{}, %Dealcloud.Auth{})
Dealcloud.Data.Rows.get("company", %Dealcloud.Data.Query{}, %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

update(entryTypeId, body, config)

View Source

Specs

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

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

Examples

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