From 158d7d13825b72c1fdd8c6143e37f3a14c7b0095 Mon Sep 17 00:00:00 2001 From: Christine Spang Date: Wed, 4 Oct 2023 16:54:44 -0700 Subject: [PATCH] Make Grants API available This functionality was all implemented but not exposed on the Client object and therefore there was no way to make API calls --- nylas/client.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nylas/client.py b/nylas/client.py index 0b42e1c5..3e84fde4 100644 --- a/nylas/client.py +++ b/nylas/client.py @@ -2,6 +2,7 @@ from nylas.handler.http_client import HttpClient from nylas.resources.applications import Applications from nylas.resources.auth import Auth +from nylas.resources.grants import Grants from nylas.resources.calendars import Calendars from nylas.resources.events import Events from nylas.resources.webhooks import Webhooks @@ -42,6 +43,16 @@ def auth(self) -> Auth: """ return Auth(self.http_client) + @property + def grants(self) -> Grants: + """ + Access the Grants API. + + Returns: + The Grants API. + """ + return Grants(self.http_client) + @property def applications(self) -> Applications: """