Call external API with Cloud Function and create document
I'm trying to create some cloud functions to: call Google Directions API using Axios create a document at Firestore based on the API result Return the document reference to my iOS App. (I'm on Blaze plan, pay as you go) I'm having trouble to create the following functions as my Node / JS knowledge is very basic. Could someone please have a quick a look and let me know what I'm missing? Obs.: The code is deploying to firebase with no warnings and erros. I'm pretty sure that the problem is the way that I'm trying to return my callbacks. Thanks in advance EDIT I've made a few changes on the code,
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.