on-internet
← Community

Call external API with Cloud Function and create document

Stack Overflow ·

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,

Comments

Sign in or sign up to comment and upvote.

No comments yet.