I'm a curl and JSON beginner.
I am trying to use an online API and this works:
curl -X POST https://blah.com/trigger/{test_event}/with/key/mykeynumber123
The service specifies that I should also be able to send additional data like so:
You can also send an optional JSON body of:
{ "value1" : "", "value2" : "", "value3" : "" }
The data is completely optional, and you can also pass value1, value2, and value3 as query parameters or form variables. This content will be passed on to the Action in your Recipe.
So my issue is I don't know how to format this. The first curl example works but if I try this for example it won't work:
curl -X POST https://blah.com/trigger/{test-event}{"value1":"test","value2":"test2","value3":"test3"}/with/key/mykeynumber
Any advice?