From c5ef99d3342a85ede9f939db4858ce6ad50d880f Mon Sep 17 00:00:00 2001 From: PlayDay Date: Fri, 13 Mar 2020 00:37:23 +0200 Subject: [PATCH] Add Organizations.find_organization_by_name --- pipedrive/organizations.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipedrive/organizations.py b/pipedrive/organizations.py index 35970d6..bc17da6 100644 --- a/pipedrive/organizations.py +++ b/pipedrive/organizations.py @@ -25,3 +25,7 @@ def delete_organization(self, organization_id, **kwargs): def get_organization_fields(self, **kwargs): url = 'organizationFields' return self._client._get(self._client.BASE_URL + url, **kwargs) + + def find_organization_by_name(self, **kwargs): + url = 'organizations/find' + return self._client._get(self._client.BASE_URL + url, **kwargs)