View Source ExPipedrive.Persons (ex_pipedrive v0.2.0)
Pipedrive persons resource.
v2-first helpers (get/2, create/2, update/3, list_page/2, stream/2)
talk to /api/v2/persons via ExPipedrive.Resource. 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.
Persons have no v2 delete in this client (intentional; use Raw if needed).
Summary
Functions
Creates a person via POST /api/v2/persons.
Soft-deprecated: prefer create/2 (API v2).
Fetches a person by id via GET /api/v2/persons/:id.
Soft-deprecated: prefer get/2 (API v2).
Soft-deprecated: prefer list_page/2 or stream/2 (API v2).
Soft-deprecated: prefer ExPipedrive.Search.search_persons/3 or search_v2/3.
Searches persons via API v2 itemSearch. See ExPipedrive.Search.search_persons/3.
Updates a person via PATCH /api/v2/persons/:id.
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.
Soft-deprecated: prefer create/2 (API v2).
Fetches a person by id via GET /api/v2/persons/:id.
Soft-deprecated: prefer get/2 (API v2).
Soft-deprecated: prefer list_page/2 or stream/2 (API v2).
Soft-deprecated: prefer ExPipedrive.Search.search_persons/3 or search_v2/3.
Searches persons via API v2 itemSearch. See ExPipedrive.Search.search_persons/3.
Updates a person via PATCH /api/v2/persons/:id.