asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
544 stars 152 forks source link

getSpreadsheets returns string #70

Closed ostapetc closed 8 years ago

ostapetc commented 9 years ago

string(952) "https://spreadsheets.google.com/feeds/spreadsheets/private/full2015-04-14T09:01:45.197Z01"

    $token = $this->getGoogleTokenFromKeyFile(
        '......apps.googleusercontent.com',
        '...@developer.gserviceaccount.com',
        '/../application/configs/DDD.p12'
    );

    $serviceRequest = new DefaultServiceRequest($token);
    ServiceRequestFactory::setInstance($serviceRequest);

    $spreadsheetService = new Google\Spreadsheet\SpreadsheetService();
    $spreadsheetFeed = $spreadsheetService->getSpreadsheets();

    var_dump($spreadsheetFeed);
ostapetc commented 9 years ago

I realized it happens wрen there is no shared docs