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)