Updated config (markdown)

Chris Caron 2019-09-30 09:25:27 -04:00
parent 032fee4ced
commit 349dcb28c5

@ -60,12 +60,21 @@ from apprise import Apprise
# Our object
a = Apprise()
# our services
# Add our services (associate a tag with each)
a.add('mailto://user:pass@hotmail.com', tag='email')
a.add('gnome://', tag='desktop')
# Send off our all of our notifications
a.notify()
# Send off our all of our notifications (v0.8.0 or less)
a.notify("A message!", title="An Optional Title")
# For Apprise v0.8.1 or newer, the following will notify everything:
# The 'all' is a system level keyword to notify everything disreguarding
# tag assignments:
a.notify("A message!", title="An Optional Title", tag="all")
# To notify specific URLs that were loaded, you can match them by their
# tag; the below would only access out mailto:// entry:
a.notify("A message!", title="An Optional Title", tag="email")
```
Well this is how little your code has to change with configuration:
@ -95,7 +104,7 @@ config.add('http://example.com/config')
a.add(config)
# Send off our all of our notifications
a.notify()
a.notify("A message!", title="An Optional Title")
# filter our notifications by those associated with the
# devops tag: