Skip to content

Instantly share code, notes, and snippets.

@cjthomp
Last active February 20, 2022 23:08
Show Gist options
  • Save cjthomp/bfacbd7096e869d5b31b to your computer and use it in GitHub Desktop.
Save cjthomp/bfacbd7096e869d5b31b to your computer and use it in GitHub Desktop.
Google Drive PHP API v2

Google Drive PHP API V2

Files

get

DriveFile $file = $service->files->get($fileId, $options);

insert

DriveFile $newFile = new DriveFile($fileData);
DriveFile $file = $service->files->insert( DriveFile $newFile, $options );

update

DriveFile $updatedFile = $service->files->update( String $fileId, DriveFile $updatedFile, Array $options );

delete

$test;

copy

$test;

trash

$test;

untrash

$test;

watch

$test;

Children

Parents

Permissions

Properties

Channels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment