mirror of https://github.com/caronc/apprise
Updated config (markdown)
parent
032fee4ced
commit
349dcb28c5
17
config.md
17
config.md
|
@ -60,12 +60,21 @@ from apprise import Apprise
|
||||||
# Our object
|
# Our object
|
||||||
a = Apprise()
|
a = Apprise()
|
||||||
|
|
||||||
# our services
|
# Add our services (associate a tag with each)
|
||||||
a.add('mailto://user:pass@hotmail.com', tag='email')
|
a.add('mailto://user:pass@hotmail.com', tag='email')
|
||||||
a.add('gnome://', tag='desktop')
|
a.add('gnome://', tag='desktop')
|
||||||
|
|
||||||
# Send off our all of our notifications
|
# Send off our all of our notifications (v0.8.0 or less)
|
||||||
a.notify()
|
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:
|
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)
|
a.add(config)
|
||||||
|
|
||||||
# Send off our all of our notifications
|
# 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
|
# filter our notifications by those associated with the
|
||||||
# devops tag:
|
# devops tag:
|
||||||
|
|
Loading…
Reference in New Issue