Oh, I forgot to say that the google account I'm using is a Google
Hosted domain. Don't know if it has something to do, but...

On 2 sep, 17:43, Aner <[EMAIL PROTECTED]> wrote:
> Hello,
> I have an application that has been running without any problem until
> today.
> Suddenly, it has started showing this error message:
> exception 'Zend_Gdata_App_HttpException' with message 'Expected
> response code 200, got 500'
> while calling to getCalendarListEntry
>
> This is the code I'm using:
>
> $gCal = GoogleAuthSub();
> $calendario = $gCal->getCalendarListEntry('http://www.google.com/
> calendar/feeds/default/');
>
> and the code for the GoogleAuthSub function, is like this:
>
> function GoogleAuthSub(){
>         if (!isset($_GET['token'])){
>                 $next = getCurrentUrl();
>                 $scope = 'http://www.google.com/calendar/feeds/';
>                 $secure = false;
>                 $session = true;
>                 $url = Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope,
> $secure, $session);
>                 header("Location: ".$url."&hd=mydomain.com");
>                 return false;
>          }else{
>                 try{
>                         $_SESSION['sessionToken'] =
> Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token']);
>                 }catch (Zend_Gdata_App_Exception $e){
>                         return false;
>                 }
>         }
>
> }
>
> of course "mydomain.com" is replaced with my real domain.
> I have checked that the function GoogleAuthSub retrieves an object, so
> I think that the authentication is ok (otherwise would return boolean,
> right?), but somehow fails while trying to retrieve the calendar list
> entry
>
> So ¿¿what's wrong??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to