4 messages in com.googlegroups.google-calendar-help-dataapiRe: Set default ACLs for all users' c...
FromSent OnAttachments
Matt Pruden14 Mar 2008 11:25 
Austin (Google)14 Mar 2008 16:10 
Matt Pruden17 Mar 2008 09:06 
Lich07 May 2008 08:34 
Subject:Re: Set default ACLs for all users' calendars in a domain
From:Lich (jlic@gmail.com)
Date:05/07/2008 08:34:03 AM
List:com.googlegroups.google-calendar-help-dataapi

I'm getting a 401 error when using "http://www.google.com/calendar/ feeds/150@myrichdaddream.com/owncalendars/full" feed url. It works great if I'm not using my own domain. I have the partner addition and the GConnect object is using curl. Here is the code:

$gcdomain = 'myrichdaddream.com'; $gcpass = 'password'; $gcuser = '15069'; $body = "&Email=".$gcuser."@".$gcdomain."&Passwd=". $gcpass."&accountType=HOSTED&service=apps"; $url = "https://www.google.com/accounts/ClientLogin"; $feed = new GConnect($url, $header_array, 'POST', $body); $feed->enable_cache(false); $feed->init(); $body = explode("\n", $feed->body); $auth = explode('=', $body[2]);

// Output Calendar List $header_array = array('Authorization' => "GoogleLogin auth={$auth[1]}"); $url = "http://www.google.com/calendar/feeds/".$gcuser."@". $gcdomain."/owncalendars/full"; $feed = new GConnect($url, $header_array, 'GET'); $feed->init();

Am I missing something?