dzVents asynchronous HTTP DELETE request
Posted: Wednesday 05 December 2018 12:42
Is it possible to do a DELETE HTTP request in dzVents (the wiki only refers to GET and POST)?
Logging out from the Hive website uses DELETE. In Python it looks like this:
Logging out from the Hive website uses DELETE. In Python it looks like this:
Code: Select all
headers = {'Content-Type': 'application.json', 'Accept': 'application.json', \
'X-AlertMe-Client': 'Hive Web Dashboard', 'Authorization': sessionId}
url = 'https://beekeeper-uk.hivehome.com/1.0/auth/logout'
r = requests.delete(url, headers=headers, verify=False)