k. I just modified the API:
library/Zend/Http/Response.php
line 125 to
public $headers = array();
and then I do in my code:
$o_gcal_post = $gdataCal->post($xml, $uri);
$s_cal_url = str_replace ("default/owncalendars/full/", "",
$o_gcal_post->headers["Location"]) . "/private/full";
But I'd still want to know the right way
On Feb 1, 1:11 pm, Hannes <[EMAIL PROTECTED]> wrote:
> I used the code here to create my
> calendar:http://groups.google.com/group/google-calendar-help-dataapi/browse_th...
>
> $xml = "<entry xmlns='http://www.w3.org/2005/Atom'
>
> xmlns:gd='http://schemas.google.com/g/2005'
>
> xmlns:gCal='http://schemas.google.com/gCal/2005'>
> <title
> type='text'>[TITLE]</title>
> <summary
> type='text'>[SUMMARY]</summary>
> <gCal:timezone
> value='[TIMEZONE]'></gCal:timezone>
> <gCal:hidden
> value='false'></gCal:hidden>
> <gCal:color
> value='[COLOR]'></gCal:color>
> <gd:where rel='' label=''
> valueString='[LOCATION]'></gd:where>
> </entry> ";
>
> $gdataCal = new Zend_Gdata_Calendar($client);
> $uri =
> 'http://www.google.com/calendar/feeds/default/owncalendars/
> full';
> $xml = str_replace('[TITLE]', $s_tmp_title, $xml);
> $xml = str_replace('[SUMMARY]', $s_summary, $xml);
> $xml = str_replace('[LOCATION]', $s_location, $xml);
> $xml = str_replace('[TIMEZONE]', $s_timezone, $xml);
> $xml = str_replace('[COLOR]', $s_color, $xml);
> $gdataCal->post($xml, $uri);
>
> I see what I'm looking for in $gdataCal:
>
> [headers:protected] => Array
> (
> [Content-type] => application/atom+xml;
> charset=UTF-8
> [Cache-control] => max-age=0, must-
> revalidate, private
> [Location]
> =>http://www.google.com/calendar/feeds/default/owncalendars/full/k4qgc1...
>
> I need the location but it's protected.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---