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?