标签: google-cloud-platform google-cloud-ml
答案 0 :(得分:1)
您可以使用gcloud获取身份验证令牌:
access_token=$(gcloud auth application-default print-access-token)
,然后将其嵌入到标题中:
curl --silent \ -H "Authorization: Bearer $access_token" \ -H "Content-Type: application/json" \ -X POST \
等