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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

matplotlib - PYTHON: Annotate boxes disapear dependant on range -