Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 672 Bytes

File metadata and controls

29 lines (19 loc) · 672 Bytes

This is the payload that will be sent to the Terminal Sensor Push API.

 payload = {
                "merge_variables": {
                    "entities": [create_entity_payload(new_state)]
                }
            }

each entity created by create_entity_payload will have the following payload:

{
   "name": "Entity Name", 
   "value": "Entity Value"
}

An example of how this would be sent with a shell command would be:

```bash

curl -X POST -H "Content-Type: application/json" -d '{"merge_variables": {"entities": [{"name": "Entity Name", "value": "Entity Value"}]}}' https://usetrmnl.com/api/custom_plugins/XXXX-XXXX-XXXX-XXXX