From ffd556ab3749f0da8db0c6f8e029a3a3b3ec2469 Mon Sep 17 00:00:00 2001 From: Ape Toshi Date: Thu, 26 Oct 2023 20:43:48 +0200 Subject: [PATCH] Add add_follower_to_organization --- pipedrive/organizations.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipedrive/organizations.py b/pipedrive/organizations.py index fed3279..193d491 100644 --- a/pipedrive/organizations.py +++ b/pipedrive/organizations.py @@ -33,3 +33,8 @@ def search_organizations(self, params=None, **kwargs): def get_organization_persons(self, organization_id, params=None, **kwargs): url = "organizations/{}/persons".format(organization_id) return self._client._get(self._client.BASE_URL + url, params=params, **kwargs) + + def add_follower_to_organization(self, org_id, user_id, **kwargs): + url = "organizations/{}/followers".format(org_id) + data = {"user_id": user_id} + return self._post(self.BASE_URL+url, json=data, **kwargs)