|
return requests.post( |
|
f"{press_url}/api/method/press.api.monitoring.targets", |
|
data={"token": press_token}, |
|
).json()["message"] |
should be changed to:
requests.get(f"{press_url}/api/method/press.api.monitoring.targets", params={"token": press_token}).json()["message"]
reason: https://stackoverflow.com/a/13628908