1

How can i access post parameter in firebase cloud functions. I used postman to test the function, it is returning undefined, i am returning the passed value back. this is my code (type script)

exports.testParam = functions.https.onRequest((request,response)=>{
    const x = request.params['username'];
    response.send(`data passed is ${x}`);
});

I am sending a form url encoded parameter named username. How can i access the post parameter in firebase cloud function

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Sony
  • 7,136
  • 5
  • 45
  • 68

0 Answers0