Skip to content

Commit

Permalink
Corrected readme and added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseongit committed Sep 1, 2016
1 parent a707969 commit e8b245e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ Backends ToDo
- `Airgram <http://www.airgramapp.com>`_
- `Pushalot <https://pushalot.com>`_
- `Boxcar <https://boxcar.io>`_
- `Instapush <https://instapush.im>`_

Testing
-------
Expand Down
9 changes: 9 additions & 0 deletions docs/ntfy.backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ ntfy.backends.notifico module
:undoc-members:
:show-inheritance:

ntfy.backends.insta module
-----------------------------

.. automodule:: ntfy.backends.insta
:members:
:undoc-members:
:show-inheritance:


ntfy.backends.win32 module
--------------------------

Expand Down
7 changes: 7 additions & 0 deletions ntfy/backends/insta.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ class ApiException(Exception):
pass

def notify(title, message, event_name, appid, secret, trackers, retcode=None):
"""
Required parameter:
* ``event_name`` - Instapush event (the notification template)
* ``appid`` - The appid found on the dashboard
* ``secret`` - The secret found on the dashboard
* ``traskers`` - List of the placeholders for the selected event
"""
logger = logging.getLogger(__name__)
msgs = message.split(":")

Expand Down

0 comments on commit e8b245e

Please sign in to comment.