问题
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!
回答1:
What about using chrome.identity https://developer.chrome.com/apps/identity
来源:https://stackoverflow.com/questions/21932269/use-javascript-client-library-to-use-calendar-api-v3-from-chrome-extension