caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
12.09k stars 421 forks source link

Use JSON with Viber bot #787

Open dxwil opened 1 year ago

dxwil commented 1 year ago

:question: Question

Hello, I'm trying to set up a JSON push notification to a Viber bot for Uptime Kuma using the following syntax:

json://https://chatapi.viber.com/pa/send_message/path/?+X-Viber-Auth-Token=xxx

I'm getting an error that the url is not parsable. Why is that? It might be that it doesn't like the url with https:// instead of an IP address or localhost, but I have no idea how I could change that so it works, because I need that url.

Thanks in advance

caronc commented 1 year ago

I'm not sure if viber will accept the payload created from the json:// , but your URL should be: jsons://chatapi.viber.com/pa/send_message/path/?+X-Viber-Auth-Token=xxx

That will at least hit the server (jsons:// == https://)

But the payload might not be what the upstream server is expecting.