I want to make a web application (php - javascript) to do this:
useremail
[email protected]
with password somepassword
to Google Calendar[email protected]
) will edit an event in its google calendar (I have the event id), add the useremail
to google calendar attendees (use Google Calendar API), then save the event[email protected]
I have tried google calendar javascript quickstart, but I don't want to make the user need to log in every time, just let them enter their email address (this is the requirement)
The question is:
[email protected]
, its password, and a user input containing a google email address)The only way to access Google APIs is though Oauth. You are going to need to request access from the user and get a refresh token back. Once you get the refresh token you can use that at anytime to access the users google calendar account.
You can not get an access token back with JavaScript you will need to use a server sided language. This might help Authorizing requests to Google calendar api