Skip to content

ntfy integration with auth? #270

Answered by juftin
Schachte asked this question in Q&A
Jun 17, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It would be very easy to make NTFY_ENDPOINT a camply configuration entry, this should unlock you to use self-hosted ntfy servers

class NtfyConfig:
"""
Ntfy Notification Config Class
"""
NTFY_API_ENDPOINT: str = "https://ntfy.sh/"
NTFY_TOPIC = getenv("NTFY_TOPIC", None)

As far as auth goes, is that just an additional header that needs to be passed? All of the ntfy magic lies in this simple requests post

def send_message(self, message: str, **kwargs) -> requests.Response:
"""
Send a messag…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Schachte
Comment options

Answer selected by Schachte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants