Commits

Jeffrey Goettsch committed 974385c

The client.notify method now returns the receipt for emergency notification from Pushover, otherwise True. Refs #9.

  • Participants
  • Parent commits eeae3b3

Comments (0)

Files changed (3)

pushnotify/nma.py

             pushnotify.exceptions.UnknownError
             pushnotify.exceptions.UnrecognizedResponseError
 
+        Returns:
+            True.
+
         """
 
         def send_notify(description, event, kwargs):
         else:
             send_notify(description, event, kwargs)
 
+        return True
+
     def verify(self, apikey):
         """This method is deprecated. Use verify_user instead.
 

pushnotify/prowl.py

             pushnotify.exceptions.UnknownError
             pushnotify.exceptions.UnrecognizedResponseError
 
+        Returns:
+            True.
+
         """
 
         def send_notify(description, event, kwargs):
         else:
             send_notify(description, event, kwargs)
 
+        return True
+
     def retrieve_apikey(self, reg_token):
         """Get a user's API key for a given registration token.
 

pushnotify/pushover.py

             pushnotify.exceptions.ServerError
             pushnotify.exceptions.UnrecognizedResponseError
 
+        Returns:
+            A string containing the last receipt received, if priority
+            was sent to 2, otherwise True.
+
         """
 
         def send_notify(desc_list, event, kwargs, apikey, device_key=''):
         if not all_ok:
             self._raise_exception()
 
+        return self._last['receipt'] if self._last['receipt'] else True
+
     def verify_user(self, apikey):
         """Verify a user identifier.