I can’t seem to figure out how to POST a JSON object using hubaction. I can’t attach anything to the “body”.
Using these docs: http://docs.smartthings.com/en/latest/cloud-and-lan-connected-device-types-developers-guide/building-lan-connected-device-types/building-the-device-type.html
Clearly there’s some kind of method for UPnP/SOAP since they have “action” and “body”… but when I try to do the same using a REST call nothing gets attached.
I have managed to hack something by adding my json object into the header, but that is less than ideal. Is there a way to do a rest call with https so that it is encrypted?
My code where I do this is around lines 228 of this: https://github.com/oehokie/SmartDSC/blob/master/devicetypes/DSCAlarmThing.groovy