Use firebase cloud function to send POST request to non-google server

前端 未结 5 817
迷失自我
迷失自我 2020-11-27 03:52

I was wondering if its possible to use a firebase cloud function to send a post request to a non-google server (from what I can find I need to be on the blaze plan in order

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 04:40

    You need to install the package. Go to Firebase-Funcions directory in Terminal and type

    npm install request
    

    OR

    npm install request-promise
    

    Use this example for test: https://www.npmjs.com/package/request

提交回复
热议问题