Send data with JSON
I am trying to learn how to post data to an external site using JSON. The example the vendor gave me looks like this:
curl -XPOST --data '{"audioLevel": 50, "url": "http://some-stream.de/"}'
http://TheirURL.com:7000/device/00:08:e1:06:c5:39/send
From doing some research I think I need to make an array, the SerializeJSON the array then use CFHTTP to send it. I can't find anything that explains the curl -XPOST --data
I am struggling to try to wrap my head around this. Would appreciate any pointers.
Thanks,
Gary
