From 2a893d6a1b44c883b26587639ceca83c0c3d69e0 Mon Sep 17 00:00:00 2001 From: Blag Date: Mon, 23 Oct 2023 08:04:00 -0400 Subject: [PATCH] Update calendars.py The get_availability method is not working properly. Fixed the path and the response. --- nylas/resources/calendars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nylas/resources/calendars.py b/nylas/resources/calendars.py index 40a2913d..db50f9ba 100644 --- a/nylas/resources/calendars.py +++ b/nylas/resources/calendars.py @@ -128,11 +128,11 @@ def get_availability( """ json_response = self._http_client._execute( method="POST", - path=f"/v3/grants/{identifier}/calendar/availability", + path=f"/v3/calendar/availability", request_body=request_body, ) - return Response.from_dict(json_response, GetAvailabilityResponse) + return Response(json_response, GetAvailabilityResponse) def get_free_busy( self, identifier: str, request_body: GetFreeBusyRequest