I'm using the code example from the gdrive docs:
`/**
foreach ($parents->getItems() as $parent) {
print 'File Id: ' . $parent->getId();
}
} catch (Exception $e) {
print "An error occurred: " . $e->getMessage();
}
}`
But I get the error Undefined property: Google_Service_Drive::$parents and I also couldn't find any code referencing parents so is the option to get and list parents removed?
Right now this client library only supports v3 of the Drive API. You will want to use files.get with ?fields=parents to list parents: https://developers.google.com/drive/api/v3/migration
Most helpful comment
Right now this client library only supports v3 of the Drive API. You will want to use files.get with ?fields=parents to list parents: https://developers.google.com/drive/api/v3/migration