diff --git a/vfxClientToolkit/utils/push.py b/vfxClientToolkit/utils/push.py index a1c5f7b..fae9d86 100644 --- a/vfxClientToolkit/utils/push.py +++ b/vfxClientToolkit/utils/push.py @@ -1,13 +1,9 @@ -from pushover import Pushover import vfxClientToolkit.api.config as vfxConfig +from pushover import Client CONFIG_DATA = vfxConfig.getBundles() def sendPushNotification(title, message): - po = Pushover(CONFIG_DATA['push']['settings']['token']) - po.user(CONFIG_DATA['push']['settings']['user']) - msg = po.msg(message) - msg.set("vfxClientToolkit", title) - po.send(msg) - + client = Client(CONFIG_DATA['push']['settings']['user'], api_token=CONFIG_DATA['push']['settings']['token']) + client.send_message(message, title=title)