mirror of
https://github.com/caronc/apprise.git
synced 2025-07-16 06:05:07 +02:00
Updated Development_API (markdown)
@ -296,11 +296,21 @@ import apprise
|
||||
# would have otherwise done under the hood:
|
||||
obj = apprise.Apprise.instantiate('glib://')
|
||||
|
||||
# Now you can use the send() function to pass notifications.
|
||||
# send() is similar to Apprise.notify() except the overhead of
|
||||
# Now you can use the notify() function to pass notifications.
|
||||
# notify() is similar to Apprise.notify() except the overhead of
|
||||
# of tagging is not present. There also no handling of the
|
||||
# the text input type (HTML, MARKUP, etc). This is on you
|
||||
# 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(
|
||||
body=u"A test message",
|
||||
title=u"a title",
|
||||
|
Reference in New Issue
Block a user