php zend gdata - Get list of google docs using oauth

前端 未结 1 922
心在旅途
心在旅途 2021-01-01 07:58

I\'ve got my session with the valid token that i set up this way :

$session_token = Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET[\'token\']);
// Store th         


        
相关标签:
1条回答
  • 2021-01-01 08:43
        // Retrieve user's list of Google Docs
        $client = Zend_Gdata_AuthSub::getHttpClient($_SESSION['cal_token']);
        $docs = new Zend_Gdata_Docs($client);
        $feed = $docs->getDocumentListFeed();
        foreach ($feed->entries as $entry) {
          echo "$entry->title\n";
        }
    
    0 讨论(0)
提交回复
热议问题