hi,
I do same thing in python. But, i stucked to UpgradeToSessionToken() after
generating token.
It's not upgrading. It's showing error as "Non AuthsubToken".
I didn't understand why it generates. Can any one help regarding this
problem
regards,
Sri
On Wed, Sep 17, 2008 at 12:14 PM, Trevor Johns <[EMAIL PROTECTED]> wrote:
>
> On Fri, Sep 12, 2008 at 2:31 AM, Steve <[EMAIL PROTECTED]> wrote:
> >
> > Hi, I just started using the Google Calendar Data API, and I was going
> > through the introductory examples when I ran into the problem. The
> > sample code works fine from my command line, but when I try to access
> > from my browser, it fails. Here's my code:
> >
> > <?php
> > require_once 'Zend/Loader.php';
> > Zend_Loader::loadClass('Zend_Gdata');
> > Zend_Loader::loadClass('Zend_Gdata_AuthSub');
> > Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
> > Zend_Loader::loadClass('Zend_Gdata_Calendar');
> >
> > $gdataCal = new Zend_Gdata_Calendar();
> > $query = $gdataCal->newEventQuery();
> > $query->setUser('[EMAIL PROTECTED]');
> > $query->setVisibility('');
> > $query->setProjection('full');
> > $eventFeed = $gdataCal->getCalendarEventFeed($query);
> > foreach ($eventFeed as $event) {
> > echo $event->title->text . '<br />';
> > }
> > ?>
> >
> > By adding debugging messages, I see that in the browser, the page
> > stops executing at:
> >
> > $eventFeed = $gdataCal->getCalendarEventFeed($query);
> >
> > However, from the command line it runs fine. I also tried the
> > following:
> >
> > $user = '[EMAIL PROTECTED]';
> > $pass = 'pass';
> > $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
> > service name for calendar
> > $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
> > outputCalendarList($client);
> >
> > Of course, with valid user and pass. This time, the browser dies at:
> >
> > $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
> >
> > However, it works fine from the command line. I've been searching
> > everywhere for clues, but now I'm at a total loss... can anyone help?
> >
> > Thanks.
>
> Unfortunately, that's not enough information to diagnose this issue.
> Please post the error messages you're receving when you run this code.
>
> If you're not receiving any error messages, make sure that
> display_errors is enabled in your PHP configuration.
>
> For more information on enabling display_errors, see:
>
>
> http://us.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
>
> If you can't directly modify your PHP configuration, you also might
> want to see this:
>
> http://us.php.net/manual/en/function.ini-set.php
>
> --
> Trevor Johns
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---