Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getListFeed with filter #177

Open
TomOA opened this issue Jun 19, 2017 · 1 comment
Open

getListFeed with filter #177

TomOA opened this issue Jun 19, 2017 · 1 comment

Comments

@TomOA
Copy link

TomOA commented Jun 19, 2017

Hi there,

I am trying to use $listFeed = $worksheet->getListFeed(["id" => "1123456"]); to filter my data to only retrieve what I need. But it returns

[Google\Spreadsheet\Exception\UnauthorizedException]
You need permission

I have no problems reading the whole document with $listFeed = $worksheet->getListFeed(); or updating the document with `$listFeed->insert(["id" => "123451"]);

The scopes I added:
$client->setScopes(['https://www.googleapis.com/auth/drive', 'https://docs.google.com/feeds']);

Am I missing a scope or something else?

Br,

@asimlqt
Copy link
Owner

asimlqt commented Jun 26, 2017

Hi,

The array you are passing is not correct. Please have a look at the documentation:

https://github.com/asimlqt/php-google-spreadsheet-client#retrieving-a-list-feed

It needs to be something like the following:
$worksheet->getListFeed(["sq" => "id = 1123456"]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants