I have json data something like this:
{
"id": "saldfjsaf9s7dflksdf435345h",
"description": "Hello World",
"image": "<BYTE STREAM CONTAINING IMAGE>"
}
I send this data in the body of a post request to a webhook.
What I would like to do is:
- Send an email. I want to extract the values of “id” and “description” to be part of a message in the mail body
- Extract the content of the “image” value and save it to a file
My questions are:
- Should I use a “catch hook” or a “catch raw hook” webhook?
- How do I reference the individual sub elements in the JSON data object from the webhook in the email body?
- What action would you suggest to extract the content of the “image” sub element and save that to a file?
If someone could tell me if this is possible and guide me in the right direction, it will be highly appreciated, thanks ;-)