Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:33:44+00:00 2026-05-26T07:33:44+00:00

I was using the private share link for viewing a calendar inside my users

  • 0

I was using the private share link for viewing a calendar inside my users personal page, but now google decided to change things https://www.google.com/support/calendar/bin/answer.py?answer=1631300

Say I have a user’s password and username.
I can login to a Google account and add events or stuff using Zend Framework, but how can I login to Google and make the browser logged in (inject a cookie or something, as if the user went to gmail, he is already logged in).

This way the user would see his own calendar and won’t be getting any warnings.

UPDATE

how can i show the calendar(even read only would be ok too) in an iframe if i have user/password of his gmail(or google) account

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:33:44+00:00Added an answer on May 26, 2026 at 7:33 am

    You have to make sure that the user has either shared the calendar or made it public. Google is trying to harden their security. The method you were using allowed you to access a user’s private calendars. This is clearly undesirable behavior. The Google Data Protocol api supports several authentication methods. The paage HERE is meant to help you choose which is right for your application. The api docs reccomend using oauth to authenticate, and the site http://oauth.net/ offers several libraries for accessing the API from PHP. OpenID is also a supported option, as well as a hybrid which is meant to streamline the process by taking advantage of both OAuth and OpenID.

    As far as displaying the calendar in an IFrame, just create an html page that Retrieves the atom feed for your calendar and displays the events as html. As it is XML any XML handling method you like will work (i.e. XSLT, simpleXML, etc.,) Then Use the url of this page as the source attribute of your iframe.

    Here is an example using the ZEND gata library:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <title>Example List of calendar contents</title>
      </head>
      <body>
        <?php
          // load library
          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');
    
          // create authenticated HTTP client for Calendar service
          $gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
          $user = "username@gmail.com";
          $pass = "pass";
          $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $gcal);
          $gcal = new Zend_Gdata_Calendar($client);
    
          // generate query to get event list
          $query = $gcal->newEventQuery();
          $query->setUser('default');
          $query->setVisibility('private');
          $query->setProjection('basic');
    
          // get and parse calendar feed
          // print output
          try { $feed = $gcal->getCalendarEventFeed($query); } 
          catch (Zend_Gdata_App_Exception $e) { echo "Error: " . $e->getResponse(); }
        ?>
        <h1><?php echo $feed->title; ?></h1>
        <p><?php echo $feed->totalResults; ?> event(s) found.<p/>
        <ol>
          <?php        
            foreach ($feed as $event) 
            {
              echo "<li>\n";
              echo "<h2>" . stripslashes($event->title) . "</h2>\n";
              echo stripslashes($event->summary) . " <br/>\n";
              echo "</li>\n";
            }
            echo "</ul>";
          ?>
        </ol>
    
      </body>
    </html> 
    

    The URL of this file is the source of your IFrame.
    Good luck and happy coding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a private MBProgressHUD Now I am using the indicator view on
I'd like people to be able to share documents privately, using a link with
Ii'm trying to share a Google Spreadsheet using C#. Because the Google Data 3.0
Access for all files by default is private. But I want to share (time
I am using the send button to share a link and a message on
Using the Document List API v3.0, I'm already creating a document. But now I
What is the difference between using Private Properties instead of Private Fields private String
If Apple doesn't want developers using private APIs in the iPhone SDK, why don't
Is there any advantage of having the option of using private extension methods? I
Effective Java (Second Edition) , Item 4, discusses using private constructors to enforce noninstantiability.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.