I am implementing a react-native application. Essentially, from this front-end application, I want to make an GET request to the Yelp Fusion API, which requires a Private API Key (which I have saved in my notes).
Considering a GET request with a private key should be executed from the server-side, and not the front-end react-native application, I wanted to implement this functionality through either Google Cloud Functions, or Firebase Functions.
Essentially, how do I trigger an event like this from a front-end Javascript client, and what do I need to set up on Firebase or Google Cloud Functions for this to work?
I was able to write a function in Firebase Functions, but I wasn't sure how to write a GET request to a URL external to the Google Cloud Platform. I also do not know how to trigger the request and receive data from the client side.