Files

43 lines
581 B
Python

import os
name = "Availability check"
kind = "action"
showstatus = False
method = "GET"
path = "https://rentmasseur.com/api/v1/account/keeponline"
outputs = {
"message": "message",
"validTo": "validTo",
}
conversion = {
"hrs": "validTo // 60",
}
headers = {
"Authorization": {
"output": "access_token",
"prefix": "Bearer ",
},
}
prints = {
"Status": "message",
"Time Remaining": "validTo",
}
recoverPolicy = {
KeyError: []
}
loaddata = [
"access_token",
"refresh_token",
]
savepath = os.environ["TOKEN_STORE"]