Ok, seems that the problem has been solved, now works OK again...

On 2 sep, 17:59, Aner <[EMAIL PROTECTED]> wrote:
> Awww, I forgot pasting the last 3 rows of the GoogleAuthSub function!!
> before the last two } goes:
>
> $client =
> Zend_Gdata_AuthSub::getHttpClient($_SESSION['sessionToken']);
> $gdataCal = new Zend_Gdata_Calendar($client);
> return $gdataCal;
>
> So it 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;
>                 }
>         $client =
> Zend_Gdata_AuthSub::getHttpClient($_SESSION['sessionToken']);
>         $gdataCal = new Zend_Gdata_Calendar($client);
>         return $gdataCal;
>         }
>
> }
>
> That is because I tried to simplify the function, since the real one
> has operations with database and the like, but I'm pretty sure they
> are not related to the error I'm getting.
>
> On 2 sep, 17:47, Aner <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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??- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
--~--~---------~--~----~------------~-------~--~----~
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