I’ve gotten very familiar with parsing JSON data returned via an API call but I’ve never had to parse data sent as a payload via webhook. I’ve been reading about $args variables and some other things, but I haven’t been able to make it work.
So you are just having the webhook data sent to the piston URL? That should end up in $args as you said, and fire the piston. So dot notation is not pulling data out of $args, just using $args.(key name)?
It’s not. I guess a good starting point would be for me to be able to see what is being sent to webCoRE. How do I log that so I can pull out the values I need.
It’s not. I guess a good starting point would be for me to be able to see what is being sent to webCoRE. How do I log that so I can pull out the values I need?
To see what Webcore got, you still have to look at $args, but you can just print the string to the console to see the raw data: string($args) in an expression