Skip to content

Commit

Permalink
Update calendars.py
Browse files Browse the repository at this point in the history
The get_availability method is not working properly. Fixed the path and the response.
  • Loading branch information
atejada committed Oct 23, 2023
1 parent 17bf9c7 commit 2a893d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nylas/resources/calendars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a893d6

Please sign in to comment.