Skip to content

Commit

Permalink
📝 Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Guillemet committed Aug 31, 2023
1 parent 82e7928 commit 934306c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ cern_ms_client = CERNMSApiClient.init_from_dotenv()
4. update an event using zoom id
5. delete an event using zoom id
6. get the zoom id of an event
7. get current event of a user

You will find useful the `EventParameters` and `PartialEventParameters` classes, which will help you to create the events.

Expand Down
10 changes: 10 additions & 0 deletions ms_python_client/components/events/cern_events_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def list_events(
Args:
user_id (str): The user id
parameters (dict): Optional parameters for the request
extra_headers (dict): Optional headers for the request
Returns:
dict: The response of the request
Expand All @@ -55,7 +56,9 @@ def get_event_by_zoom_id(
"""Get an event of a user
Args:
user_id (str): The user id
zoom_id (str): The event id
extra_headers (dict): Optional headers for the request
Returns:
dict: The response of the request
Expand Down Expand Up @@ -91,7 +94,9 @@ def get_event_zoom_id(
"""Get the zoom id of an event of a user
Args:
user_id (str): The user id
event_id (str): The event id
extra_headers (dict): Optional headers for the request
Returns:
str: The zoom id of the event
Expand Down Expand Up @@ -120,7 +125,9 @@ def create_event(
Args:
user_id (str): The user id
zoom_id (str): The zoom id of the event
event (EventParameters): The event data
extra_headers (dict): Optional headers for the request
Returns:
dict: The response of the request
Expand All @@ -139,7 +146,9 @@ def update_event_by_zoom_id(
Args:
user_id (str): The user id
zoom_id (str): The zoom id of the event
event (EventParameters): The event parameters
extra_headers (dict): Optional headers for the request
Returns:
dict: The response of the request
Expand All @@ -161,6 +170,7 @@ def delete_event_by_zoom_id(
Args:
user_id (str): The user id
zoom_id (str): The event id
extra_headers (dict): Optional headers for the request
Returns:
dict: The response of the request
Expand Down

0 comments on commit 934306c

Please sign in to comment.