Google cloud platform 将Google AutoML API与API密钥连接时出错
我正试图连接在API使用下面的链接邮递员Google cloud platform 将Google AutoML API与API密钥连接时出错,google-cloud-platform,google-oauth,google-cloud-vision,google-vision,google-cloud-automl,Google Cloud Platform,Google Oauth,Google Cloud Vision,Google Vision,Google Cloud Automl,我正试图连接在API使用下面的链接邮递员 POST https://automl.googleapis.com/v1/projects/*****/locations/us-central1/models/*****:predict?key=***** 但我得到的信息如下: { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected
POST https://automl.googleapis.com/v1/projects/*****/locations/us-central1/models/*****:predict?key=*****
但我得到的信息如下:
{
"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"
}
}
密钥被授权使用API。通过API密钥look只能使用有限数量的Google API。 我认为AutoML API不支持基于密钥的访问
对于Postman,您可以使用生成访问令牌,但如果您要开发集成,服务帐户凭据是一种方法:)只有有限数量的Google API可以通过API密钥使用,请看。 我认为AutoML API不支持基于密钥的访问 对于Postman,您可以使用生成访问令牌,但如果您要开发集成,则可以使用服务帐户凭据:)