mirror of https://github.com/caronc/apprise
improved documentation in README.md
parent
4065108b08
commit
7b4221039e
25
README.md
25
README.md
|
@ -272,12 +272,20 @@ apobj.notify(
|
||||||
title='Latest security image',
|
title='Latest security image',
|
||||||
attach='http:/admin:password@hikvision-cam01/ISAPI/Streaming/channels/101/picture?cache=3'
|
attach='http:/admin:password@hikvision-cam01/ISAPI/Streaming/channels/101/picture?cache=3'
|
||||||
)
|
)
|
||||||
|
```
|
||||||
|
|
||||||
# To send more than one attachment, you just need another object:
|
To send more than one attachment, you just need the **AppriseAttachment** object:
|
||||||
from apprise import AppriseAttachment
|
```python
|
||||||
|
import apprise
|
||||||
|
|
||||||
|
# Create an Apprise instance
|
||||||
|
apobj = apprise.Apprise()
|
||||||
|
|
||||||
|
# Add at least one service you want to notify
|
||||||
|
apobj.add('mailto://myuser:mypass@hotmail.com')
|
||||||
|
|
||||||
# Initialize our attachment object
|
# Initialize our attachment object
|
||||||
attachment = AppriseAttachment()
|
attachment = apprise.AppriseAttachment()
|
||||||
|
|
||||||
# Now add all of the entries we're intrested in:
|
# Now add all of the entries we're intrested in:
|
||||||
# ?name= allows us to rename the actual jpeg as found on the site
|
# ?name= allows us to rename the actual jpeg as found on the site
|
||||||
|
@ -292,9 +300,16 @@ apobj.notify(
|
||||||
title='Some good jokes.'
|
title='Some good jokes.'
|
||||||
body='Hey guys, check out these!'
|
body='Hey guys, check out these!'
|
||||||
attach=attachment,
|
attach=attachment,
|
||||||
tag=friends
|
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Want To Learn More?
|
## Want To Learn More?
|
||||||
If you're interested in reading more about this and other methods on how to customize your own notifications, please check out the wiki at https://github.com/caronc/apprise/wiki/Development_API. You can also find more examples on how to use the command line tool at: https://github.com/caronc/apprise/wiki/CLI_Usage.
|
If you're interested in reading more about this and other methods on how to customize your own notifications, please check out the following links:
|
||||||
|
* 📣 [Using the CLI](https://github.com/caronc/apprise/wiki/CLI_Usage)
|
||||||
|
* 🛠️ [Development API](https://github.com/caronc/apprise/wiki/Development_API)
|
||||||
|
* 🔧 [Troubleshooting](https://github.com/caronc/apprise/wiki/Troubleshooting)
|
||||||
|
* ⚙️ [Configuration File Help](https://github.com/caronc/apprise/wiki/config)
|
||||||
|
|
||||||
|
Want to help Apprise get better?
|
||||||
|
* 💡 [Contribute to the Apprise Code Base](https://github.com/caronc/apprise/wiki/Development_Contribution)
|
||||||
|
* ❤️ [Sponsorship and Donations](https://github.com/caronc/apprise/wiki/Sponsors)
|
||||||
|
|
Loading…
Reference in New Issue