This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_auth_token(): | |
global url | |
global secret | |
global clientId | |
global tokenExpirationDate | |
paramUrl = url + 'raspberry' | |
paramData = {'clientId': clientId, | |
'clientSecret': secret} | |
print("Requesting token...") | |
r = requests.post(paramUrl, data=paramData, verify=False) |