mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Initial Configuration Push
This commit is contained in:
11
deps/pyfttt/test_server.py
vendored
Normal file
11
deps/pyfttt/test_server.py
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import json
|
||||
import requests
|
||||
|
||||
payload = {'value1': 'hello', 'value2': 'i am value2', 'value3': 90210}
|
||||
|
||||
#r = requests.post('http://localhost:7777/api/1.0/6adfb183a4a2c94a2f92dab5ade762a47889a5a1/test', data=payload)
|
||||
r = requests.post('http://localhost:7777/api/1.0/6adfb183a4a2c94a2f92dab5ade762a47889a5a1/test/opt1', json=json.dumps(payload))
|
||||
|
||||
print(r)
|
Reference in New Issue
Block a user