【发布时间】:2017-05-19 15:05:49
【问题描述】:
根据https://cloud.google.com/resource-manager/docs/authorizing,可以使用 API 密钥授权请求。我无法让它工作。
我的请求如下所示:
curl -H "Content-Type: application/json" -X POST -d '{"key":"<Some Key>"}' https://cloudresourcemanager.googleapis.com/v1beta1/projects
回复:
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
非常感谢任何帮助。
【问题讨论】:
标签: google-api