Google calendar API for PHP simple read-only request to get calendar events

前端 未结 2 792
鱼传尺愫
鱼传尺愫 2021-01-11 18:13

I\'d like to write some simple PHP code for a website, to get read-only access to a public Google calendar list of events using Google\'s calendar API V3. I simply need to d

2条回答
  •  不思量自难忘°
    2021-01-11 18:53

    I think you're way overthinking this one. If you just need access to events on a public calendar, then there's a way to do this without invoking the Google Calendar API and all of the attached complexity. Every public Google Calendar has an iCal feed that can be viewed at a specific URL, usually in the form of:

    http://www.google.com/calendar/ical/{OWNER}/public/basic.ics
    

    where {OWNER} is the URL-encoded email address of the owner of the calendar.

    You can find the specific URL by viewing the calendar settings and scrolling to the bottom of the Calendar Details tab.

提交回复
热议问题