I have a questions:
1) how to pass request body from CloudFunction's task to cloud function?
2) how to get a response?
I created a function that takes parameters from 'req.body'.
I have tested the functionality of the created function with Postman. The Postman query looks like this
curl --location 'https://projectName.cloudfunctions.net/functionName' \.
--header 'Content-Type: application/json' \.
--data '{
}, "param1": { "text",
"param2": "text",
"param3": "text"
}'
CloudFunction source looks like this:
functions.http('trigger', (req, res) => {
res.send(businessLogicMethod(req.body.param1, req.body.param2, req.body.param3);
});
Hello @efvcbjdcsdf,
Try the following options:
Let me know if it helped, thanks!