Google Cloud Vision Api错误

问题描述 投票:0回答:1

我对Google Cloud Vision Api有问题。当我尝试使用此URL向api发送请求时:

https://vision.googleapis.com/v1/images:annotate?key=MyKey

服务器回复(错误404):

在此未找到所请求的URL / v1 / images:annotate?key = MyKey服务器。这就是我们所知道的。

我该如何解决?我也尝试通过浏览器处理ajax请求。

提前感谢!

api cloud vision google-vision
1个回答
0
投票
您应该在Authorization标头中传递密钥,而不应将其作为查询参数。在这里检查:https://cloud.google.com/vision/docs/quickstart-cli
© www.soinside.com 2019 - 2024. All rights reserved.