2

Trying to make a web app where others can view my availability and schedule an apt with me...so it will be them on their computer on my site. I can do the Oath just fine for me...but when someone else visits the site, it is just for their calendar. I can't seem to find anything on how to make it show my calendar. I've gone up and down the Google Calendar API page but can't seem to figure out how to make the user fixed on the api calls. Any help would be greatly appreciated!

4
  • If you want others to view your calendar, you can make your calendar public or share your calendar with the users. Other than these two I cannot think of any other options. When sharing your calendar, be cautious that users cannot have access to delete the existing events. You can also check this support.google.com/calendar/answer/41207?hl=en Let me know if your use case is different. Commented Sep 17, 2015 at 20:28
  • Requests have to be authenticated as a user authorized to edit the specific calendar. They approach most people take is have your credentials protected on a server and when users have an event to be added those requests get proxied through the server where the authentication gets added. Commented Sep 18, 2015 at 16:32
  • @SGC, thanks but I do know about that. I would like a web-app for users to view my calendar (that's the part you mention) but I would like a form for them to reserve a time with me so that when they submit the form, it inserts the new event into my calendar automatically. Commented Sep 20, 2015 at 13:16
  • @abraham, looks like I may have to go that route which would stink. Was hoping to have it run right on the site. Commented Sep 20, 2015 at 13:16

1 Answer 1

1

You can create a service account, share your calendar read-write with this service account and then have this service account always be the authenticated user (instead of using Oauth). More on service accounts: https://developers.google.com/identity/protocols/OAuth2ServiceAccount

Sign up to request clarification or add additional context in comments.

1 Comment

That looks like it! Looks like php and curl here I come! Thanks for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.