zend-gdata

get Google client using access token

≡放荡痞女 提交于 2019-12-10 21:28:35
问题 I already stored the access and refresh token in my database. I want get the google client using that. I don't know how to use it in below example $client = Zend_Gdata_ClientLogin::getHttpClient('you@there.com', 'password', Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME); $service = new Zend_Gdata_Spreadsheets($client); // Get worksheet feed $query = new Zend_Gdata_Spreadsheets_DocumentQuery(); $query->setSpreadsheetKey('your spreadsheet key'); $feed = $spreadsheetService->getWorksheetFeed($query

Get Youtube VideoID details in array

别等时光非礼了梦想. 提交于 2019-12-10 15:29:18
问题 I've been struggling with this for hours and i have no idea why is not working. I need to get Details from a VideoID using YouTube API and Zend, so i created a function like this function listYoutubeVideo($id) { $videos = array(); try { $yt = new Zend_Gdata_YouTube(); $videoFeed = $yt->getVideoEntry($id); foreach ($videoFeed as $videoEntry) { $videoThumbnails = $videoEntry->getVideoThumbnails(); $videos[] = array( 'thumbnail' => $videoThumbnails[0]['url'], 'title' => $videoEntry-

Secure shared Google Calendar

醉酒当歌 提交于 2019-12-10 11:07:09
问题 I am working on a small scale website. It has a very simple idea, there are two sets of users, office and workers, both have to login to acess the site (the site is built with the Zend framework) . The problem: I want to have a calendar which is accessible by all the users. The office staff being able to edit the calendar and the workers only being able to view the calendar. I really want to user google as the backend for the calendar due to its flexibility: A couple of the office workers

(PHP) How to parse URLs in google search results?

…衆ロ難τιáo~ 提交于 2019-12-10 10:52:06
问题 How get google search results url? (I use Zend_Gdata_Gbase for get search google results and not DomDocument/htmlsimpleparser because its looks to me that Zend_Gdata_Gbase done specially for parsing google results. if I wrong in my selection, please write.) My function to get google search results for 'yahoo' or other query search string: (the function get a feed that should have search result for word 'yahoo', but when i use prin_t($feed) I don't see url for each result) <?php function

How to create an empty spreadsheet using Zend GData

橙三吉。 提交于 2019-12-09 23:50:43
问题 How to create a new, empty spreadsheet using Zends GData Library? 回答1: According to the Google Documents List API, to create a new, empty spreadsheet: follow the instructions in Creating a new document or file with metadata only. When doing so, use a category term of http://schemas.google.com/docs/2007#spreadsheet. With Zend GData library, it may look like this: // Load Zend library require_once('Zend/Loader.php'); Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata

AuthSub target path prefix does not match the provided “next” URL

*爱你&永不变心* 提交于 2019-12-08 19:15:43
问题 I am trying to use the Gcal API in PHP. I am using the ZEND framework function getAuthSubUrl($company) { $next = "http://$company.mysite.com"; $scope = 'http://www.google.com/calendar/feeds/'; $secure = false; $session = true; return (Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session)); } $authSubUrl = getAuthSubUrl(); echo "<a href=\"$authSubUrl\">login to your Google account"</a> I am not sure what I am doing wrong here. I am following the google example almost exactly

Error inserting row in Google Spreadsheet using Zend Gdata

青春壹個敷衍的年華 提交于 2019-12-07 10:40:34
问题 I'm trying the simplest possible scenario to insert row in Google Spreadsheet using Zend Gdata 1.11 library. Spreadsheet has word 'Kolona' in cell A1. Here is entire php file: <?php require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_loader::loadClass('Zend_Gdata_Query'); Zend_Loader::loadClass('Zend_Gdata_Spreadsheets'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD

(PHP) How to parse URLs in google search results?

我怕爱的太早我们不能终老 提交于 2019-12-06 07:47:55
How get google search results url? (I use Zend_Gdata_Gbase for get search google results and not DomDocument/htmlsimpleparser because its looks to me that Zend_Gdata_Gbase done specially for parsing google results. if I wrong in my selection, please write.) My function to get google search results for 'yahoo' or other query search string: (the function get a feed that should have search result for word 'yahoo', but when i use prin_t($feed) I don't see url for each result) <?php function queryGoogleSearch($queryString='yahoo'){ $service = new Zend_Gdata_Gbase(); $query = $service-

Secure shared Google Calendar

我的未来我决定 提交于 2019-12-06 05:29:27
I am working on a small scale website. It has a very simple idea, there are two sets of users, office and workers, both have to login to acess the site (the site is built with the Zend framework) . The problem: I want to have a calendar which is accessible by all the users. The office staff being able to edit the calendar and the workers only being able to view the calendar. I really want to user google as the backend for the calendar due to its flexibility: A couple of the office workers work on the road (all have android phones) so the calendar can be shared with those users and they can use

Google Spreadsheet API: memory exceeded

吃可爱长大的小学妹 提交于 2019-12-05 22:41:53
Don't know if anyone has experience with the Google Spreadsheets API or the Zend_GData classes but it's worth a go: When I try to insert a value in a 750 row spreadsheet, it takes ages and then throws an error that my memory limit (which is 128 MB!) was exceeded. I also got this when querying all records of this spreadsheet but this I can imaging because it's quite a lot of data. But why does this happen when inserting a row? That's not too complex, is it? Here's the code I used: public function insertIntoSpreadsheet($username, $password, $spreadSheetId, $data = array()) { $service = Zend