mirror of https://github.com/MISP/PyMISP
commit
6fc403f7c8
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue