Google Recommendation AI Sample predict request in python from Google Cloud Functions

Viewed 154

I would like a help to create a sample request of predict API, my code is run on Google Cloud Functions.

I don't now how can I make the autentication and the request to call the predict recommendation like this example: https://cloud.google.com/retail/docs/predict#recommend

I alredy have created the service account and I have my cliend ID to test, but I need help to create a code that make autentication and call the API.

My code example runing in Google Cloud Functions with Python, but its not working

1 Answers
Related