We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9567b85 commit 19f8d5fCopy full SHA for 19f8d5f
vfxClientToolkit/utils/push.py
@@ -1,13 +1,9 @@
1
-from pushover import Pushover
2
import vfxClientToolkit.api.config as vfxConfig
+from pushover import Client
3
4
CONFIG_DATA = vfxConfig.getBundles()
5
6
def sendPushNotification(title, message):
7
- po = Pushover(CONFIG_DATA['push']['settings']['token'])
8
- po.user(CONFIG_DATA['push']['settings']['user'])
9
- msg = po.msg(message)
10
- msg.set("vfxClientToolkit", title)
11
- po.send(msg)
12
-
+ client = Client(CONFIG_DATA['push']['settings']['user'], api_token=CONFIG_DATA['push']['settings']['token'])
+ client.send_message(message, title=title)
13
0 commit comments