New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ms-python-client

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ms-python-client - pypi Package Compare versions

Comparing version
1.0.3
to
1.0.4
+24
-0
ms_python_client/components/events/cern_events_component.py

@@ -84,2 +84,26 @@ import logging

def get_event_zoom_id(
self,
user_id: str,
event_id: str,
extra_headers: Optional[Mapping[str, str]] = None,
) -> str:
"""Get the zoom id of an event of a user
Args:
event_id (str): The event id
Returns:
str: The zoom id of the event
"""
parameters = {
"$expand": f"singleValueExtendedProperties($filter=id eq \
'{ZOOM_ID_EXTENDED_PROPERTY_ID}')",
}
response = self.events_component.get_event(
user_id, event_id, parameters, extra_headers
)
return response["singleValueExtendedProperties"][0]["value"]
def create_event(

@@ -86,0 +110,0 @@ self,

+4
-1

@@ -34,2 +34,3 @@ from typing import Any, Mapping, Optional

event_id: str,
parameters: Optional[Mapping[str, str]] = None,
extra_headers: Optional[Mapping[str, str]] = None,

@@ -47,3 +48,5 @@ ) -> dict:

api_path = f"/users/{user_id}/calendar/events/{event_id}"
response = self.client.make_get_request(api_path, extra_headers=extra_headers)
response = self.client.make_get_request(
api_path, parameters=parameters, extra_headers=extra_headers
)
return response.json()

@@ -50,0 +53,0 @@

+2
-1
Metadata-Version: 2.1
Name: ms-python-client
Version: 1.0.3
Version: 1.0.4
Summary: This package is used to interact with the microsoft graph API

@@ -162,2 +162,3 @@ License: MIT

5. delete an event using zoom id
6. get the zoom id of an event

@@ -164,0 +165,0 @@ You will find useful the `EventParameters` and `PartialEventParameters` classes, which will help you to create the events.

[tool.poetry]
name = "ms-python-client"
version = "1.0.3"
version = "1.0.4"
exclude = ["tests*", "example*", ".github*", ".git*", ".vscode*"]

@@ -18,12 +18,12 @@ description = "This package is used to interact with the microsoft graph API"

[tool.poetry.group.dev.dependencies]
black = "23.7.0"
flake8 = "6.0.0"
isort = "5.12.0"
pre-commit = "3.3.3"
mypy = "1.4.1"
mypy-extensions = "1.0.0"
pylint = "2.17.4"
pytest = "7.4.0"
pytest-cov = "4.1.0"
responses = "0.23.1"
black = "^23.7.0"
flake8 = "^6.0.0"
isort = "^5.12.0"
pre-commit = "^3.3.3"
mypy = "^1.4.1"
mypy-extensions = "^1.0.0"
pylint = "^2.17.4"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
responses = "^0.23.1"

@@ -30,0 +30,0 @@ [build-system]

@@ -143,2 +143,3 @@ # Microsoft Python client

5. delete an event using zoom id
6. get the zoom id of an event

@@ -145,0 +146,0 @@ You will find useful the `EventParameters` and `PartialEventParameters` classes, which will help you to create the events.