Skip to content

Commit

Permalink
Make Grants API available
Browse files Browse the repository at this point in the history
This functionality was all implemented but not exposed on the Client object
and therefore there was no way to make API calls
  • Loading branch information
spang committed Oct 4, 2023
1 parent 17049b1 commit 158d7d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nylas/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
"""
Expand Down

0 comments on commit 158d7d1

Please sign in to comment.