I'm trying to much around the Philips Hue API. I got the debug CLIP working just fine. Now I'd like to use this more dynamically, get it purring with Processing.
The problem: I have no idea where to even start formatting that request. According to the API docs, you turn a bulb on or off like this:
Address: http://<bridge ip address>/api/newdeveloper/lights/1/state
Body: {"on":false}
Method: PUT
Okay, so I get the address part. But how do I format the Body into the URL? And how I establish that this is a PUT request?