Skip to content

Commit 2ed5043

Browse files
committed
2 parents b4dbbf1 + a7f91e4 commit 2ed5043

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

ms_graph/workbooks.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from typing import Dict
2+
from ms_graph.session import GraphSession
3+
4+
5+
class Workbooks():
6+
7+
"""
8+
## Overview:
9+
----
10+
You can use Microsoft Graph to allow web and mobile applications to
11+
read and modify Excel workbooks stored in OneDrive for Business, SharePoint
12+
site or Group drive. The Workbook (or Excel file) resource contains all the
13+
other Excel resources through relationships. You can access a workbook through
14+
the Drive API by identifying the location of the file in the URL.
15+
"""
16+
17+
def __init__(self, session: object) -> None:
18+
"""Initializes the `Workbooks` object.
19+
20+
### Parameters
21+
----
22+
session : object
23+
An authenticated session for our Microsoft Graph Client.
24+
"""
25+
26+
# Set the session.
27+
self.graph_session: GraphSession = session
28+
29+
# Set the endpoint.
30+
self.endpoint = 'workbook'

0 commit comments

Comments
 (0)