mirror of
https://github.com/caronc/apprise.git
synced 2025-03-05 02:21:53 +01:00
Updated Development_API (markdown)
parent
aafcea233f
commit
b7d0727e1f
@ -296,11 +296,21 @@ import apprise
|
|||||||
# would have otherwise done under the hood:
|
# would have otherwise done under the hood:
|
||||||
obj = apprise.Apprise.instantiate('glib://')
|
obj = apprise.Apprise.instantiate('glib://')
|
||||||
|
|
||||||
# Now you can use the send() function to pass notifications.
|
# Now you can use the notify() function to pass notifications.
|
||||||
# send() is similar to Apprise.notify() except the overhead of
|
# notify() is similar to Apprise.notify() except the overhead of
|
||||||
# of tagging is not present. There also no handling of the
|
# of tagging is not present. There also no handling of the
|
||||||
# the text input type (HTML, MARKUP, etc). This is on you
|
# the text input type (HTML, MARKUP, etc). This is on you
|
||||||
# to manipulate before passing in the content.
|
# to manipulate before passing in the content.
|
||||||
|
obj.notify(
|
||||||
|
body=u"A test message",
|
||||||
|
title=u"a title",
|
||||||
|
)
|
||||||
|
|
||||||
|
# send() is a very low level call which directly posts the
|
||||||
|
# body and title you specify to the remote notification server
|
||||||
|
# There is NO data manipulation here, no overflow handling
|
||||||
|
# nothing. But this allows you to free form your own
|
||||||
|
# messages and pass them along using the apprise handling
|
||||||
obj.send(
|
obj.send(
|
||||||
body=u"A test message",
|
body=u"A test message",
|
||||||
title=u"a title",
|
title=u"a title",
|
||||||
|
Loading…
Reference in New Issue
Block a user