Hello, I have translated the python code of this page https://cloud.google.com/storage/docs/access-control/signing-urls-manually to PHP Could you add it to the documentation? I do not dare to request a pull Link code PHP: https://gist.github.com/marcofbb/97c875bb51f2dc9740588f8e550aac77 Thanks
Activity
bshaffer commentedon May 6, 2020
@marcofbb a Pull Request is the best way to contribute code. Why do you "not dare"? Here is some documentation on how to do this.
bshaffer commentedon May 6, 2020
Also, I see you've defined two functions in that gist. One is for
generate_signed_url_googleand the other is forgenerate_signed_url(in the comment)Which of these are you proposing we use?
marcofbb commentedon May 6, 2020
Hello,
First generate_signed_url_google(); there function is equal to function in docs with Python
I have to make an improvement, which is to use the PHP class date, so as not to edit the general timezone of the php running
The function is translate python to PHP of code: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/storage/signed_urls/generate_signed_urls.py
Greats
marcofbb commentedon May 6, 2020
Because I don't know which path to upload it to, the path for the PHP example code is not generated for this