27 lines
444 B
Python
27 lines
444 B
Python
import os
|
|
|
|
unavailabletime = int(os.environ.get("AVAILABLE_DURATION",3))
|
|
|
|
duration = unavailabletime - 1
|
|
|
|
name = "Set Unavailable"
|
|
|
|
kind = "action"
|
|
|
|
keys = [
|
|
{
|
|
"keytitle": "online",
|
|
"keyvalue": 2,
|
|
},
|
|
{
|
|
"keytitle": "duration",
|
|
"keytitle": duration,
|
|
},
|
|
]
|
|
|
|
method = "PUT"
|
|
|
|
path = "https://rentmasseur.com/api/v1/account/dashboard/availability"
|
|
|
|
#headers = "Authorization:" f"Bearer {access_token}"
|