Downloading files from google cloud storage and search good documantation by apies for php -


i began work google cloud storage

i using library google api php client.

the documentation here couldn't find php documentation related apis of library.

and i've problem downloading files storage. know how upload, don't know how download.

$res = $storage->objects->insert(         "bucket",         $obj,         ['name' => $file_name, 'data' => file_get_contents('path'), 'uploadtype' => 'multipart', 'mimetype'=>'text/xml']     ); 

i can data of file, can't download.

$res = $storage->objects->get(         "bucket",         $file_name,         []     ); 

thanks

$storage->objects->get

this api returns medialink parameter , link can download storage


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -