too long

I get an error when searching with the q parameter:

php code:

$parameters['q'] = "title = 'hello'"; 
$children = $service->children->listChildren('root',$parameters);

returns:

Fatal Error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/drive/v2/files/root/children?q=title%20%3D%20%27hello%27: (500) Internal Error'

I think it's something to do with the quotes as it works if I search for 'trashed = false'

I'm using the latest api client checked out from: http://code.google.com/p/google-api-php-client/source/checkout

Tried it again after all this time and it's now working.

You get the same error message when you didn't ask for the right permissions. Use the scope https://www.googleapis.com/auth/drive, not (only) https://www.googleapis.com/auth/drive.file