【发布时间】:2018-04-30 12:30:14
【问题描述】:
当我尝试使用带有 api 密钥的数据存储重置 api 时,我得到了这个:
{
"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"
}
}
我的网址如下所示: https://datastore.googleapis.com/v1/projects/{my_project_id}:beginTransaction?key={my_api_key}
在文档中,您可以选择使用 oauth 或 api 密钥,但我看不到在该页面上输入 api 密钥的任何方法: https://cloud.google.com/datastore/docs/reference/data/rest/v1/projects/beginTransaction
如何使用我的 api 密钥访问数据存储区 api?
【问题讨论】: