Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 352 Bytes

File metadata and controls

18 lines (14 loc) · 352 Bytes
import json
# sudo pip install request
import requests



pid = 'DK5QPID'
zone_id = '2,4'
res_shadows = requests.delete(backendUrl + '/api/1.0/signals' + '/pid/'+ pid + '/zoneId/' + zone_id, headers=headers)

# checking the response
if res_shadows.ok:
    print "OK"
    print res_shadows.text
else:
    print "Error: " + res_shadows.text