Skip to content Skip to sidebar Skip to footer

Google Calendar Api Getting 'cannot Read Property 'signin' Of Null'

I'm trying to use Google's Calendar API to get info on specific calendar. I keep getting this error Cannot read property 'signIn' of null. I'm using the example online here https:/

Solution 1:

Try using gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus); instead of gapi.auth2.getAuthInstance().signIn();. You may refer with this sample code on how to use the Google JavaScript Client API Library to authenticate and interact with the API.

Also check this related SO thread and see if it helps.

UPDATE:

Any idea on how to check which rooms on your calendar are available or not?

You may check on this link: Google Calendar Api, Is meeting Room available?

You will need to be authenticated as a user that has read-access to the room. Then you can take the resourceEmail field of the Calendar Resource API and use it as a calendarId in the events.list() Calendar API call.

Post a Comment for "Google Calendar Api Getting 'cannot Read Property 'signin' Of Null'"