View Source ExPipedrive.Stages (ex_pipedrive v0.1.0)

Pipedrive stages resource.

v2-first helpers (get/2, create/2, update/3, delete/2, list_page/2, stream/2) talk to /api/v2/stages via ExPipedrive.Resource.

Summary

Functions

Creates a stage via POST /api/v2/stages.

Deletes a stage via DELETE /api/v2/stages/:id.

Fetches a stage by id via GET /api/v2/stages/:id.

Lists one page of stages via API v2 cursor pagination.

Lazily streams stages across all v2 cursor pages until next_cursor is nil.

Updates a stage via PATCH /api/v2/stages/:id.

Functions

Creates a stage via POST /api/v2/stages.

Accepts a map (preferred) or %Stage{}. Returns {:ok, %Stage{}}.

Link to this function

delete(client, stage_id)

View Source

Deletes a stage via DELETE /api/v2/stages/:id.

Fetches a stage by id via GET /api/v2/stages/:id.

Link to this function

list_page(client, opts \\ [])

View Source

Lists one page of stages via API v2 cursor pagination.

Options: :cursor, :limit (clamped to 500), :pipeline_id, :sort_by, :sort_direction.

Link to this function

list_stages_page(client, opts \\ [])

View Source
Link to this function

stream(client, opts \\ [])

View Source

Lazily streams stages across all v2 cursor pages until next_cursor is nil.

Link to this function

stream_stages(client, opts \\ [])

View Source
Link to this function

update(client, stage_id, attrs)

View Source

Updates a stage via PATCH /api/v2/stages/:id.