Is there a way to set custom POST fields other than “value”?
I’d like to use Boxcar.io or UrbanAirship to send a push notification when my garage door is left open.
For Boxcar.io I need to set the email & notification[message] fields:
curl -d "email=test@me.com¬ification[message]=Message" http://boxcar.io/devices/providers/MH0S7xOFSwVLNvNhTpiC/notifications
Or to use UrbanAirship I’d additionally need to set the username/password and be able to send in a JSON object.
curl -X POST -u “:” \
-H “Content-Type: application/json” \
--data ‘{“device_tokens”: [""], “aps”: {“alert”: “Hello!”}}’ \
Separately, is there something special I need to do to enable server.log()? The log under my code window always just says “No device connected”.