Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
add get_all_events endpoint
Browse files Browse the repository at this point in the history
Merge pull request #18 from @EpSch
  • Loading branch information
NicolasCARPi authored Jan 21, 2021
2 parents 8998444 + 15324a9 commit a40556c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elabapy/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ def get_event(self, id):
""" Get info about an event """
return self.send_req("events/" + str(id))

def get_all_events(self):
""" Get info about all events """
return self.send_req("events/")

def destroy_event(self, id):
""" Destroy an event from the scheduler """
return self.send_req("events/" + str(id), params={}, verb='DELETE')
Expand Down

0 comments on commit a40556c

Please sign in to comment.