当前位置: 动力学知识库 > 问答 > 编程问答 >

image - Request signed URL from GCS via JSON api / API Client Library for PHP

问题描述:

I am using the API Client Library for PHP in a Laravel (as an api) / AngularJS project that does NOT run on google app engine. I would like to be able to access non public images on a google cloud storage (gcs) bucket via pre signed URL-

I have not been able to figure out how to generate pre signed URLs with the php client.

Basically I would like to replicate what is shown with Google Storage Tools / Serving Images on google app engine, but without having the script running on google app engine (e.g. on google compute or another cloud server or local development server).

I already have the php client running and I am already using it to generate pre signed upload urls that allow the users to upload images (which was already difficult to figure out). Serving images is not working yet.

Could anyone point me in the right direction? It seems like most functionality that comes with gcs is bound to an app engine environment...

Any help would be very much appreciated.

Thanks and all best,

Tobias

分享给朋友:
您可能感兴趣的文章:
随机阅读: