View Source ExPipedrive.Persons (ex_pipedrive v0.1.0)

Pipedrive persons resource.

v2-first helpers (get/2, create/2, update/3, list_page/2, stream/2) talk to /api/v2/persons. Prefer ExPipedrive.Search.search_persons/3 (or search_v2/3 here) for v2 itemSearch. Legacy get_person/2, create_person/2, list_persons/2, and search_persons/3 remain on API v1.

Summary

Functions

Creates a person via POST /api/v2/persons.

Accepts a map (preferred) or %Person{}. For v2, email/phone values belong under emails / phones lists.

Link to this function

create_person(client, person)

View Source

Fetches a person by id via GET /api/v2/persons/:id.

Link to this function

list_page(client, opts \\ [])

View Source
Link to this function

list_persons(client, opts \\ [])

View Source
Link to this function

list_persons_page(client, opts \\ [])

View Source
Link to this function

search_persons(client, term, opts \\ [])

View Source
Link to this function

search_v2(client, term, opts \\ [])

View Source

Searches persons via API v2 itemSearch. See ExPipedrive.Search.search_persons/3.

Link to this function

stream(client, opts \\ [])

View Source
Link to this function

stream_persons(client, opts \\ [])

View Source
Link to this function

update(client, person_id, attrs)

View Source

Updates a person via PATCH /api/v2/persons/:id.