Git Product home page Git Product logo

zendgdata's Introduction

ZendGData component

Repository abandoned 2019-12-05

The GData APIs were deprecated starting in 2014, and should no longer be used.

UNMAINTAINED COMPONENT

This component is unmaintained. If you require API access to the Google api, please consider using https://code.google.com/p/google-api-php-client/

You can install using:

curl -s https://getcomposer.org/installer | php
php composer.phar install

At that point, follow the instructions in the documentation folder for actual usage of the component. (Documentation is forthcoming.)

zendgdata's People

Contributors

adamlundrigan avatar akrabat avatar arendjantetteroo avatar b-durand avatar blanchonvincent avatar cgdangelo avatar danielmitd avatar dasprid avatar dbstephenson avatar djlambert avatar elazar avatar evandotpro avatar fchambos avatar freeaqingme avatar jonathanmaron avatar maks3w avatar marc-mabe avatar marcari avatar mfairchild365 avatar necromant2005 avatar prolic avatar ralphschindler avatar rcknr avatar sgehrig avatar smoove avatar stealth35 avatar thomasweidner avatar weierophinney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zendgdata's Issues

How to catch Zend_Gdata_App_AuthException

Hi there,

I am trying to log in Google Account. If username or password are incorrect, it gives fatal error like this:

Fatal error: Uncaught exception 'Zend_Gdata_App_AuthException' with message 'Authentication with Google failed. Reason: BadAuthentication' in E:\xampp\htdocs\yt\Zend\Gdata\ClientLogin.php:175 Stack trace: #0 E:\xa...s\welcome.php(45): Zend_Gdata_ClientLogin::getHttpClient('a.........

with this code block as documentation: http://framework.zend.com/manual/1.12/en/zend.gdata.exception.html

try{
            $client = new Zend_Gdata_YouTube($httpClient, $applicationId, $clientId, $developerKey);
        } catch(Zend_Gdata_App_AuthException $authEx) {
            // The user's credentials were incorrect.
            // It would be appropriate to give the user a second try.

        } catch(Zend_Gdata_App_HttpException $httpEx) {
            // Google Data servers cannot be contacted.
            die($httpEx->getMessage);
        }

so why it gives fatal error? Also Class Zend_Gdata_App_AuthException is empty.

Fatal error: Call to a member function resetParameters() on a non-object

when i using gData for retrieving youtube video there have a problem and showing error

Fatal error: Call to a member function resetParameters() on a non-object in C:\wamp\www\wordpress\wp-content\plugins\osTube\Zend\Gdata\App.php on line 643

and the problem not appear if i try my function to root folder (ie. C:\wamp\www\youtube\ ) using same function for plugin and custom .php file for showing youtube video by playlistfeed.

this is app.php line 640 - 644

    // Make sure the HTTP client object is 'clean' before making a request
    // In addition to standard headers to reset via resetParameters(),
    // also reset the Slug and If-Match headers
    $this->_httpClient->resetParameters();
    $this->_httpClient->setHeaders(array('Slug', 'If-Match'));

btw i try to adding this zend gdata to my wordpress plugin.

Expected response code 200, got 403

Hi,

I am using GDATA since 1 year for google contacts and this was working fine till yesterday.

Now i am getting this error whenever I tried to connect.
Expected response code 200, got 403 usageLimits rateLimitExceededUnreg Rate Limit Exceeded. Please sign up https://code.google.com/apis/console .

I am using following code:
require_once("Zend/Gdata/ClientLogin.php");
require_once("Zend/Gdata/Contacts.php");
require_once 'Zend/Gdata/Query.php';

class GoogleContacts extends Zend_Gdata_Contacts {
public function getContactListFeed($last_sync_date = '',$group){
$query = new Zend_Gdata_Query(self::CONTACT_FEED_URI);
$query->maxResults = $this->maxResults;
$query->startIndex = $this->startIndex;

    return parent::getFeed($query,'Zend_Gdata_Contacts_ListFeed');
}

}
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, 'cp');

$service = new GoogleContacts($client);
$service->setMaxResults(100000);
$feeds = $service->getContactListFeed(str_replace(' ', 'T', $lastSync) . ".000Z",$groupId);
$ids = array();
foreach ($feeds as $feed) {
//process over here
}

Looking for help.
Any idea what went wrong and how to fix it??

ZEND GDATA Google spread sheet data feeding issue

ZEND GDATA Google spread sheet data feeding technique is facing some problem from 27 th MAY,2015. It is working fine before the date.It is giving the error :
Uncaught exception 'Zend_Gdata_App_Exception' with message 'DOMDocument cannot parse XML: DOMDocument::loadXML(): Empty string supplied as input' in /home/fp02312/public_html/event/Zend/Gdata/App.php:830

spreadsheet data feeding URL https://spreadsheets.google.com/feeds/spreadsheets response body giving the blank response in Zend/Gdata/App.php in the
public function importUrl($url, $className='Zend_Gdata_App_Feed',
$extraHeaders = array())
{
$response = $this->get($url, $extraHeaders);
$feedContent = $response->getBody();
}
$feedContent is providing blank response.

zendgdata is not compatible with zend-http

When I try to use ZendGData to upload movie to youtube i got such error

PHP Fatal error:  
Call to undefined method ZendGData\HttpClient::setRawData()
in /vendor/zendframework/zendgdata/library/ZendGData/HttpClient.php
on line 339

https://github.com/zendframework/ZendGData/blob/master/library/ZendGData/HttpClient.php#L339

I investigate a little bit and its seems that ZendGData\HttpClient is not compatible with new Zend\Http\Client from zendframework/zend-http.
Should I use some specific lib version? All stuff are fetched by composer and I used http://packages.zendframework.com for that.

YouTube requests doesn't send developer_key

In method ZendGData\App::performHttpRequest at line 625
$this->_httpClient->setHeaders($headers);
is rewriting the headers and is not passing the X-GData-Key that was set by the ZendGData\YouTube::setHttpClient

My solution is to add all the previous headers from the request object. I added the following code from line 617, but I don't know how this will influence other requests:
$rqHeaders = $this->_httpClient->getRequest()->getHeaders()->toArray();
if (!empty($rqHeaders))
{
foreach ($rqHeaders as $key => $value)
{
if (!array_key_exists($key, $headers))
{
$headers[$key] = $value;
}
}
}

Unable to enable crypto on TCP connection

When i try to return some YOutube videos of a specific user with:

$yt = new \ZendGData\YouTube();
$yt->getuserUploads('usernameYoutube');

i receive this error: Unable to enable crypto on TCP connection gdata.youtube.com: make sure the "sslcapath" option points to a valid SSL certificate directory

What do i have to do? Is't a bug? I saw this:
http://framework.zend.com/issues/browse/ZF2-490

but i don't understand what i have to edit... i tested the system on debian and mac and i return the same error...

Zend_Gdata_App_MediaFileSource uses fread() in a wrong way

n Zend_Gdata_App_MediaFileSource::encode there's the following code:

$fileHandle = fopen($this->getFilename(), 'r', true);
$result = fread($fileHandle, filesize($this->getFilename()));

The problem is that if filename is a stream filename, fread() would not read the whole file. Instead, stream_get_contents() should be used to read the whole file.

Can't add ZendGData into vendor/Zend

Dear all,

I'm new with zf2 and I've simple question. I copy zendGData and paste into my folder vendor/Zend/ZendGData.

In Netbean I can test as $server = \ZendGData\GData::AUTH_SERVICE_NAME;
But when run website have error: Fatal error: Class 'ZendGData\GData' not found.

I think it's error about config auto load new package into zf2. Please suggest me how to fix.

Thanks.

Empty field stop ListQuery and first field is never printed

I want to download an entire spreadsheet.
To compare locally.

        $query = new ZendGData\Spreadsheets\ListQuery();
        $query->setSpreadsheetKey($this->getKey());
        $query->setWorksheetId($id);
        $query->setMaxResults(NULL);
        $listFeed = $this->getSpreadsheetService()->getListFeed($query);



        foreach ($listFeed as $row) {
            $rowData = $row->getCustom();

            foreach($rowData as $customEntry) {
                echo($customEntry->getText());
            }
        }

|first row|
|table|
'emtpy row'
|result|

prints table

expected first row, table, result

Am I using your api wrongly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.