Get an instance to read information from Microsoft planner
(self, *, resource: str = '')
| 317 | return Sharepoint(parent=self, main_resource=resource) |
| 318 | |
| 319 | def planner(self, *, resource: str = ''): |
| 320 | """ Get an instance to read information from Microsoft planner """ |
| 321 | |
| 322 | if not isinstance(self.protocol, MSGraphProtocol): |
| 323 | # TODO: Custom protocol accessing OneDrive/Sharepoint Api fails here |
| 324 | raise RuntimeError( |
| 325 | 'planner api only works on Microsoft Graph API') |
| 326 | |
| 327 | from .planner import Planner |
| 328 | return Planner(parent=self, main_resource=resource) |
| 329 | |
| 330 | def tasks(self, *, resource: str = ''): |
| 331 | """ Get an instance to read information from Microsoft ToDo """ |