Hi, I am not sure exactly what your question? are you asking about the different authentication model that is fitting for your project, if so this is where you can find details on auth -
http://code.google.com/apis/accounts/ Cheers, Austin On Tue, Jun 10, 2008 at 5:42 PM, mameha <[EMAIL PROTECTED]> wrote: > > I wish to make a webpage that simply opens google calendar as a logged > in user. > > I do not want the users to see the login credentials for the google > account, or have to input it manually. So I want to do the following: > - login to google calendar > - display the calendar > - allow users to make edits etc. > > I am using PHP5. I can display the 'list' of calendars but I cannot > find out how to actually display the calendar. I guess it should be > quite simple. > > Here is my code: > > <?php > > require_once 'Zend/Loader.php'; > Zend_Loader::loadClass('Zend_Gdata'); > Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); > Zend_Loader::loadClass('Zend_Gdata_Calendar'); > Zend_Loader::loadClass('Zend_Http_Client'); > > // Parameters for ClientAuth authentication > $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; > $user = '[EMAIL PROTECTED]'; > $pass = 'pass'; > > // Create an authenticated HTTP client > $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, > $service); > > // Create an instance of the Calendar service > $service = new Zend_Gdata_Calendar($client); > > // Get Calendar List Feeds > try { > $listFeed= $service->getCalendarListFeed(); > } catch (Zend_Gdata_App_Exception $e) { > echo "Error: " . $e->getResponse(); > } > > // Print them to screen > echo "<h1>Calendar List Feed</h1>"; > echo "<ul>"; > foreach ($listFeed as $calendar) { > echo "<li>" . $calendar->title . " (Event Feed: " . $calendar- > >id . ")</li>"; > } > echo "</ul>"; > > ?> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
