#cloud function execution url as callback url

9 messages · Page 1 of 1 (latest)

lapis tundra
#

I created a cloud function and used the generated url as callback URL so that the function will be triggered each time I need a response from a third party API but I wasn't able to fetch the data it was sending to my function (what I used as the call back url) despite using both context.body and context.rawBody for dart.

tulip warren
#

should be context.req.body.

#
Future<dynamic> main(final context) async {
  final bodyRaw = context.req.bodyRaw;
  final body = json.encode(context.req.body);

  return context.res.send("OK", 200);
}
lapis tundra
#

Oh, I missed that.
I'll give it a try again

lapis tundra
tulip warren
#

no worries.
Pl. mark the title as [SOLVED] if the issue is resolved.

Happy Appwriting appwritecheers.

lapis tundra