diff --git a/pymisp/api.py b/pymisp/api.py index 8f8abeb..63d64c1 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1019,6 +1019,15 @@ class PyMISP(object): url = urljoin(self.root_url, 'sightings/add/') return session.post(url, data=json.dumps(jdata)) + # ############## Sharing Groups ################## + + def get_sharing_groups(self): + session = self.__prepare_session(force_out=None) + url = urljoin(self.root_url, 'sharing_groups/index.json') + response = session.get(url) + return self._check_response(response)['response'][0] + + # ############## Deprecated (Pure XML API should not be used) ################## @deprecated def download_all(self):