Tommy Peters
Tommy Peters

Reputation: 49

Use Javascript Client Library to use Calendar api v3 from chrome extension

I am trying to create a chrome extension that can add Google calendar events to a person's google Calendar (create one appointment for irregular reoccuring dates).

To do this I am using oauth 2.0 and I would like to use the javascript Client library to make the required calls.

Whenever I try to use the gapi object, I will receive the error that the object is undefined.

Does anyone have a good example on how to use the javascript client library in a chrome extension, or a better way to do this?

Thanks in advance!

Upvotes: 1

Views: 613

Answers (1)

pinoyyid
pinoyyid

Reputation: 22306

What about using chrome.identity https://developer.chrome.com/apps/identity

Upvotes: 1

Related Questions