Changelog
- #740: fix for
Folder.copy_to_using_path
method
- #743: introduce black for code formatting and fix flake8 by @kellerza
- #746 & #747 typing improvements (support for
mypy
and pyright
type checkers) by @kellerza
- #744: Fix ResourcePath collection by @kellerza
- #748:
File.download_session
method fix
- introduced
GraphClient.with_client_secret
and GraphClient.with_username_and_password
methods to initialize the client, refer below examples
Example: initializes a GraphClient
client using user namename and password flow:
from office365.graph_client import GraphClient
client = GraphClient.with_username_and_password(
"contoso.onmicrosoft.com", client_id, username, password
)
Example: initializes a GraphClient
with client secret:
from office365.graph_client import GraphClient
client = GraphClient.with_client_secret("contoso.onmicrosoft.com", client_id, client_secret)