views:

280

answers:

2

Hiya,

I need to integrate a google calendar to my ASP website booking system. I've tried to write events to the calendar from my application using the javascript API, but it's failing when the client is not logged in to Gmail - obviously a problem if my customers aren't logged in my Gmail account. Therefore I assume it's not possible to authorize this using client side scripting?

Ideally I need an ASP API. Google don't supply this. Has anyone got any ideas where I can find some demonstration code, or any suggestions on how I might get round this problem?

Thanks,

Lucy

+1  A: 

They do have a .NET and PHP api. You could write what you need in a .aspx or .php file and return the results in an xml (or whatever format you want to parse) format. Then do an xmlhttp request from your classic asp page to the .aspx or php page. Then you just parse the data and voila!

Fred Clown
Here is a PHP page I wrote a little while back to use the Zend framework to get Google calendar data. Maybe it will help you.http://thestuders.blogspot.com/2008/11/google-calendar.html
Fred Clown
A: 

They DO have a REST API, you can use this from Classic ASP and almost any other server side language by issuing HTTP requests.

In Classic ASP this is done with the use of a COM object such as MSXML2.ServerXMLHTTP. What you really need to learn is how the Google REST API for gmail/apps works. http://code.google.com/intl/en-US/apis/calendar/data/2.0/developers_guide_protocol.html

Also, ClientLogin is the authentication mechanism you would want to use. http://code.google.com/intl/en-US/apis/calendar/data/2.0/developers_guide_protocol.html#AuthClientLogin

thomask