使用NodeJs sdk在Google云端存储中生成getServingUrl()

我正在使用谷歌云存储存储图像,也有服务器上运行的NodeJs。

我想为每个图像生成servingUrl (又名magicUrl),它可以随时生成不同大小的图像(请参阅https://medium.com/google-cloud/uploading-resizing-and-serving-images-with- google-cloud-platform-ca9631a2c556#.1jtzu5kuo )

我尝试使用gcloud sdk来生成,但我找不到任何getServingUrl

您似乎混淆了Google App Engine和Google云端存储。 get_serving_url()方法仅在适用于Python的Google App Engine SDK中可用,目前在用于Node.js的Google Cloud Client Library中不可用。