API Google Drive PHP

Asked

Viewed 2,283 times

0

I’m using Google Drive to upload files via php, with the API they provide, however, the library that Google passes requests a file that does not exist in this library that is provided to us.

Follow all procedures as they report, but at the time of the tests he makes a require("Google/Google_cliente.php'), but the file does not exist.

Has anyone used this API?
Can you tell me where I can get this file?

  • Place your project next to this api: https://github.com/eduardocasas/Google-Drive-PHPP-API-Simple-App-Example Exchange requires them for: require_once 'google-api-php-client/src/Google_client.php'; require_once 'google-api-php-client/src/contrib/Google_driveservice.php';

1 answer

0


In the links you posted, there is a link to the Google API documentation in PHP. The lib you are looking for, in its latest version, is here.

Then just unzip the library and use it in your project.

Just one more detail: the correct Client path is src/Google/Google_Client.php. It may also be just a typo.

  • Then @Rodrigo Rigotti he makes the require on the path you mentioned, but at another time he also makes a require on the path 'Google/Client.php', as well as other files on the same path. I will run the tests today and report on more details.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.