feat: direct token auth & webhook path auth support

This commit is contained in:
2024-02-19 18:19:54 +01:00
parent 1ebd9db897
commit 85f0179d80
3 changed files with 41 additions and 12 deletions

View File

@@ -51,8 +51,8 @@ if __name__ == "__main__":
signal_cli_bin = args.signal_cli_bin
# request dispatches #
response = requests.get(args.target + "/get-dispatch?method={}".format(args.method),
auth=(args.user, args.password))
response = requests.get(args.target +
"/get-dispatch?method={}&dispatch-access-token={}".format(args.method), args.password)
# check status #
if response.status_code == HTTP_NOT_FOUND: