Hi,
I am trying to make an external API call to Google Cloud text to speech REST API (https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize) to generate speech from a given text. I have generated an api key in google console:
I am attaching my api key as a header (Authorization: Bearer <API_KEY>) and doing the POST to the endpoint in the API reference docs (endpoint: https://texttospeech.googleapis.com/v1/text:synthesize).
But I am getting the following error:
It says that this API call requires oauth 2.0 for authentication, how would this be done in Xano?
Here you can see a forum post in Bubble.io where apparently they managed to do it with JSON Web Token authentication method:
Any help would be appreciated! Thanks!
Google cloud REST API authentication docs:
https://cloud.google.com/docs/authentication/rest