I'm a newbie for Stack overflow. Please forgive me if I do anything against the rules here.
I am trying to use Google Cloud Translation API and I followed exactly the steps described here in the QuickStart.
When I ran the curl command, the response indicates that I don't have a valid API key. Please see below the exact response I received.
{
"error": {
"code": 403,
"message": "The request is missing a valid API key.",
"errors": [
{
"message": "The request is missing a valid API key.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
I looked at the link again, but I believe none of the steps in the link mentions about API key. The link mentions about service account key. And I set the path to service account private key on environment variable properly and no error is reported about it.
Can anyone help me out for how I am supposed to set API key?
Thanks in advance.
Env: Win Powershell 5.1.18362.752