Skip to content

Convenient wrapper to get files and folders using Google Drive API

License

Notifications You must be signed in to change notification settings

primerg/gdocs_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

GdocService

Convenient wrapper to get files and folders using Google Drive API. It works with the existing Google API PHP Client. See requirements.

Requirements

EXAMPLE

$client = new Google_Client();
...

$doc = new GdocService($client);

$folders = $doc->getFolders();

foreach ($folders as $folder) {
$files = $doc->getFiles($folder['id']);

foreach ($files as $file) {
  $html = $doc->getFileContent($file);
  echo $html;
}
}

About

Convenient wrapper to get files and folders using Google Drive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published