littleBits coffee counter
Curl the following:
Authorization: Bearer YOUR_TOKEN
Then you will need to write the php script (URL_WHERE_TO_POST). See counter.php for an example of how to receive JSON input, parse it and then send a message back to the littleBit to enable the LED to light up.