This feels like the wrong place to ask this, because it’s not about design help, but more of a general question. I’m having trouble figuring out how to pass arguments to a piston when executing it via webhook?
Are the arguments passed as part of the URL? Like:
https://[piston url]?arg1="blah"&arg2="blahblah"
Or is it passed in the body as a JSON object?
EDIT:
I found this comment by WCmore:
So it looks like it’s in the URL. But I guess my other question is…
I have a piston who takes in a list of parameters via a JSON object.
So in the receiving piston, it looks like this:
$args.args.message
$args.args.messagetypes
WIth the sending piston looking like this:
[string] args = {"message":"this is a test","messagetypes":"echo,push"}
So I just pas the args variable into the piston when I execute it.
I’m trying to figure out how to perform this external execution via webhook?
So my best guess, is that it would be something like this?
https://[piston url]?args={"message":"this is a test"}
I tried this, but it doesn’t work…so I dunno…