Raymond Camden's Blog Rss

GoogleCal Update

13

Posted in ColdFusion | Posted on 08-06-2008 | 2,499 views

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

[Add Comment] [Subscribe to Comments]

America: what a country!
ColdFusion: what a programming language!
... um.... ok.
It looks like line 3 of testa.cfm is no longer needed.
Yep, I'll kill that later.
Perfect timing. We were just talking yesterday here at work about trying to interface Gmail calendars with ColdFusion.
Can I seen an example?
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.
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.
That link is broken. Anywhere else i can find this?
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!
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.
Aha...I missed that file and it didn't mention it in your docs (not that I could see). Thanks much Ray!!!

[Add Comment] [Subscribe to Comments]