Search found 1 match

by linuxnico
03 Apr 2018, 15:11
Forum: ESP Easy: Projects / Applications
Topic: API and Python requests
Replies: 3
Views: 4239

Re: API and Python requests

try to use params of requests.get function

payload = {'cmd': 'event,disableSleep'}
r=requests.get('http://192.168.2.203/control', params=payload)

like resquest module exemple

http://docs.python-requests.org/en/mast ... rs-in-urls