View Source ExPipedrive.PersonFields (ex_pipedrive v0.1.0)

API v2 person field definitions.

field_code is the hash used as a key in %ExPipedrive.Person{}.custom_fields; field_name is its human-readable label. Use ExPipedrive.Fields to resolve between them.

Summary

Functions

Lists one cursor page of person field definitions via GET /api/v2/personFields.

Lazily streams person field definitions across API v2 cursor pages.

Functions

Link to this function

list_page(client, opts \\ [])

View Source
@spec list_page(
  Tesla.Client.t(),
  keyword()
) :: {:ok, ExPipedrive.Page.t()} | {:error, ExPipedrive.Error.t()}

Lists one cursor page of person field definitions via GET /api/v2/personFields.

Options: :cursor, :limit (clamped to 500), and :include_fields.

Link to this function

list_person_fields(client, opts \\ [])

View Source
@spec list_person_fields(
  Tesla.Client.t(),
  keyword()
) :: {:ok, ExPipedrive.Page.t()} | {:error, ExPipedrive.Error.t()}

Alias for list_page/2.

Link to this function

stream(client, opts \\ [])

View Source
@spec stream(
  Tesla.Client.t(),
  keyword()
) :: Enumerable.t()

Lazily streams person field definitions across API v2 cursor pages.