Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Using Google Calendar API from Google Sites

I have a website created by sites.google.com. Using Embed option, I would like to use Google Calendar API to display calendar events (we have specific format requirements that the default Calendar option does not provide). When I try my javascript code from localhost:8000, I am able to display the calendar events. However, when I put the code (basically identical to the javascript quickstart https://developers.google.com/calendar/api/quickstart/js) in my website in sites.google.com, I get an error "Not a valid origin for the client: https://1737011456-atari-embeds.googleusercontent.com has not been registered". I tried to add googleusercontent.com as allowed origin, but I get "Invalid Origin: uses a forbidden domain" error.

How can I use Google Calendar API on Google Sites?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I decided to go against Apps Script. Firefox blocks the embedded website by default and there were other complications I wasn't too happy about.

This was the alternative approach I found online. Replace the CALENDAR_ID and API_KEY and you'll get the public events from the given calendar if you have the api key to access it: https://www.googleapis.com/calendar/v3/calendars/CALENDAR_ID/events?key=API_KEY

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!