I had this exact problem, this is what worked for me ...
- You do not need OAuth, just an API key.
Here is what I did wrong ...
HTTP- ,
{data: requestBody }
,
HTTP.call("POST", "https://vision.googleapis.com/v1/images:annotate?key=myAPIKey", requestBody, myCallback);
HTTP.call("POST", "https://vision.googleapis.com/v1/images:annotate?key=myAPIKey", {data: requestBody}, myCallback);
{
"requests":
[
{
"features":
[
{
"type": "LABEL_DETECTION"
}
],
"image":
{
"source":
{
"gcsImageUri": "gs://myBucketNameHere/myDemoImageNameHere.jpg"
}
}
}
]
}
: , .
- Google Cloud Platform.
- , .
- -, , FACE_DETECTION .
- Google Cloud .
demo-image.jpg, , requestBody.