read csv file on google drive api v3

25 views
Skip to first unread message

Oleg Disrupt

unread,
Nov 13, 2021, 4:03:27 AM11/13/21
to Google APIs Explorer Users Forum
Hi
I want to read the content of csv file in my google drive.
I created the php script with google drive api v3.
$client = $this->getClient();
$service = new Drive($client);
$results = $service->files->listFiles();
        $fileId="1IV0ZcPLPEj-y9xwqPAvjQgOUluOQEYhX";
        $file = $service->files->get($fileId);
$file->getName();
How can i read the csv file content from filename?
Thanks
Reply all
Reply to author
Forward
0 new messages