A
A
Artem00712021-03-24 15:06:23
PHP
Artem0071, 2021-03-24 15:06:23

How to download a file from docs.google.com/spreadsheets?

Launched an unknown google api.
I can’t figure out how, knowing the ID of the document, download it

$service = new Google_Service_Sheets($client);
$response = $service->spreadsheets_values->get(DOC_ID, 'A:Z');
dd($response->getValues()); // тут все записи


$service = new Google_Service_Drive($client);
$service->files->get(DOC_ID) // тут пишет что такого файла не существует

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2021-03-24
@BasiC2k

Something I do not see you using Api Key. Therefore, no access.
Google's documentation describes everything in detail, there are also examples in different languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question