Skip to content

Commit

Permalink
Swapped push notification library
Browse files Browse the repository at this point in the history
  • Loading branch information
debug committed Jan 15, 2020
1 parent 9567b85 commit 19f8d5f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions vfxClientToolkit/utils/push.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 19f8d5f

Please sign in to comment.