5 messages in com.googlegroups.google-calendar-help-dataapiRe: ics download
FromSent OnAttachments
tlyuhas01 May 2008 07:41 
Ray Baxter01 May 2008 11:07 
tlyuhas15 May 2008 08:10 
Ray Baxter15 May 2008 14:31 
tlyuhas16 May 2008 10:36 
Subject:Re: ics download
From:tlyuhas (tlyu@gmail.com)
Date:05/15/2008 08:10:12 AM
List:com.googlegroups.google-calendar-help-dataapi

On May 1, 11:08 am, Ray Baxter <ray.@gmail.com> wrote:

tlyuhas wrote:

I think I might be approaching this all wrong. With the gdata api and all the docs, I can see how it's possible to read/write/etc a google calendar and that's what most people want to do. I just want to create an authenticated session so that I can download the basic.ics as a file. So when I have a non-public (but shared with me) calendar like:http://www.google.com/calendar/ical/dude%40nowhere.ex/public/basic.ics which requires me to authenticate, I want to be able to authenticate a session and then just download that file in its entirety without parsing it as a feed.

These will go to another calendar program which handlesicsfiles.

Using either an API or protocol calls,

1) Authenticate with client
loginhttp://code.google.com/apis/calendar/developers_guide_protocol.html#A....

2) Make a get request for the url that you have noted, passing in the authorization token that you received in step 1)

3) Save the body of the response, or pass it directly to your other calendar program.

Since the calendar you are attempting to download in step 2) is shared with you, you will be permitted to use your own username and password to authenticate in step 1).

Thanks Ray.

I'm now stuck at around step 2). I am getting the authorization token and am passing it back but I'm getting a "Feed Processing Error." I've even tried converting the "%40" to "@" as I've seen some others here do but that didn't make a difference. These are the headers (except I modified the token to post it here):

HTTP_Request Object ( [_url] => Net_URL Object ( [options] => Array ( [encode_query_keys] => ) [url] => http://www.google.com/calendar/ical/dk3pj7l61p7u4tl40nqpp@group.calendar.google.com/public/basic.ics [protocol] => http [username] => [password] => [host] => www.google.com [port] => 80 [path] => /calendar/ical/ dk3p@group.calendar.google.com/public/basic.ics [querystring] => Array ( ) [anchor] => [useBrackets] => 1 [user] => [pass] => ) [_method] => GET [_http] => 1.1 [_requestHeaders] => Array ( [host] => www.google.com [user-agent] => PEAR HTTP_Request class ( http://pear.php.net/ ) [connection] => close [accept-encoding] => gzip [authorization] => GoogleLogin Auth=ABC123D52wBZBdRn0c0cPNNr1JZsR379rWzvayIFzvAm- WLcrQ13DlhmXPi0oAiDj7e7SsxDhH6ewlSfynAEACC3IvRS15EbRkLUfS_Z6k4BuCQZkKS0oKcpcMZqNhycW23rIbN8FjyI- J4MO1HYTf6jbbbuw9bgBLXIYlvYP-XyVTX8bA ) [_user] => [_pass] => [_sock] => [_proxy_host] => [_proxy_port] => [_proxy_user] => [_proxy_pass] => [_postData] => Array ( ) [_body] => [_bodyDisallowed] => Array ( [0] => TRACE ) [_postFiles] => Array ( ) [_timeout] => 5 [_response] => [_allowRedirects] => 1 [_maxRedirects] => 3 [_redirects] => 0 [_useBrackets] => 1 [_listeners] => Array ( ) [_saveBody] => 1 [_readTimeout] => [_socketOptions] => )

Anything jump out as obvious?

Terrill