问题
I am using google cloud storage for storing images and also I have server running on NodeJs.
I want to generate for every image the servingUrl(aka magicUrl) which would on the fly generate images of different sizes(see more https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556#.1jtzu5kuo)
I tried using gcloud sdk to generate that, but I couldn't find anywhere getServingUrl.
回答1:
You seem to be confusing Google App Engine and Google Cloud Storage. The get_serving_url() method is only available in the Google App Engine SDK for Python, and is currently not available in the Google Cloud Client Library for Node.js.
来源:https://stackoverflow.com/questions/40362313/generating-getservingurl-in-google-cloud-storage-with-nodejs-sdk