Joel
Joel

Reputation: 895

What is the simplest way to add, modify, delete Google Calendar events/calendars in PHP?

I've been on this one for the last 2 days...

All I want to do is, with my username and password, access my Google Calendar events/calendars and create, edit or delete them with my PHP web application.

I've looked in the Google API, Zend Framework, OAuth 2.0 with google, etc and there is always a piece of information missing to make it work.

What is the quickest and simplest way, on a shared server to get to access my gcalendar? Is there a class/php function file somewhere that I can simply install in a www.websitename.com/include directory that will not make me want to pull my hair out?

I want to use already made functions like this : updateevent(username, pass, id, calendar, title, details, location, etc);

Upvotes: 2

Views: 2277

Answers (1)

Matt
Matt

Reputation: 23729

New APIs can be a little scary, especially to programmers who are still somewhat new to a particular platform. Google's Calendar API is very well-documented (like all of them) -- but you just have to read them. It's easy once you get used to it.

http://code.google.com/apis/calendar/v3/using.html

It basically involves this:

  1. Acquire an API key
  2. Include two files in your PHP code
  3. Authenticate (steps up to this point only take a few lines of code)
  4. Do what you need to do!

It's the only official and truly the easiest way to directly work with Google Calendar. What piece of information is still missing?

Upvotes: 2

Related Questions