On May 1, 11:08 am, Ray Baxter <[EMAIL PROTECTED]> 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).
>
> Ray
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/[EMAIL PROTECTED]/public/basic.ics
[protocol] => http [username] => [password] => [host] => www.google.com
[port] => 80 [path] => /calendar/ical/
[EMAIL PROTECTED]/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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---