GoogleCal Update

I've updated my GoogleCal project. I finally have a (slightly) better understanding of Google's API (which I still say is way more complex than it needs to be!) and it lead to a much slimmer CFC and a simpler API. For folks who are using this now, you must read the docs first as the API to the CFC has been changed. I've also added support for deleting events. Editing events shouldn't be too hard so I'll try to get that in soon.

Comments

Phillip Senn's Gravatar America: what a country!
ColdFusion: what a programming language!
# Posted By Phillip Senn | 8/6/08 8:47 AM
Raymond Camden's Gravatar ... um.... ok.
# Posted By Raymond Camden | 8/6/08 8:51 AM
Phillip Senn's Gravatar It looks like line 3 of testa.cfm is no longer needed.
# Posted By Phillip Senn | 8/6/08 9:15 AM
Raymond Camden's Gravatar Yep, I'll kill that later.
# Posted By Raymond Camden | 8/6/08 9:29 AM
Joe Castillo's Gravatar Perfect timing. We were just talking yesterday here at work about trying to interface Gmail calendars with ColdFusion.
# Posted By Joe Castillo | 8/6/08 10:43 AM
GeneR's Gravatar Can I seen an example?
# Posted By GeneR | 8/6/08 10:48 AM
Raymond Camden's Gravatar GeneR - if you download the zip you will see a sample script. It's really not that complex. You can get calendars as a query, get events, add and delete events.
# Posted By Raymond Camden | 8/6/08 10:54 AM
Gene Rice's Gravatar Thanks Ray,

Unfortunately, i'm stuck in a Linux training and don't have immediate access to a CF server. I guess it can wait til i'm back in my hotel tonight.
# Posted By Gene Rice | 8/6/08 10:57 AM
KC's Gravatar That link is broken. Anywhere else i can find this?
# Posted By KC | 11/18/08 9:07 AM
# Posted By Raymond Camden | 11/18/08 9:29 AM
Steve F's Gravatar I am trying to get the GoogleCalendar.cfc to work, but for some reason CF is not finding the file which is in the same directory as the calling page. I have also placed a mapping in the admin, but still no luck. This is the error I receive:

Could not find the ColdFusion Component base.
Please check that the given name is correct and that the component exists.

The error occurred in C:\Apache2\htdocs\dev2\admin\testa.cfm: line 7

5 :
6 : <cfif not structKeyExists(application, "gCal") or structKeyExists(url, "reinit")>
7 :    <cfset application.gCal = createObject("component", "GoogleCalendar").init("username","password",-5)>
8 : </cfif>
9 :

Any ideas? Thanks!
# Posted By Steve F | 1/9/09 4:34 PM
Raymond Camden's Gravatar When you downloaded the zip, there should have been two CFCs, GoogleCalendar and base.cfc. Do you see that? Make sure base.cfc is in the same folder as GoogleCalendar.cfc.
# Posted By Raymond Camden | 1/9/09 4:48 PM
Steve F's Gravatar Aha...I missed that file and it didn't mention it in your docs (not that I could see). Thanks much Ray!!!
# Posted By Steve F | 1/9/09 4:58 PM