i have implemented the authentication using allauth authentcation that is allowing me to logg in with google.It is successfully logging in .Now i want to work with Google Calendar and enabled the calendar API from developer console too.I dont know how to go on with it. When i log in through google also ask to allow acces to google calendar but i dont know how to get the list of event.When i tried the endpoint provided by Google(https://www.googleapis.com/calendar/v3/calendars/calendarId/acl) then its returns:
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED"
}
}