adds title to push

This commit is contained in:
Raphael Maenle 2022-01-03 12:28:35 +01:00
parent 7f3ffbc906
commit d59b600ef3

View File

@ -114,16 +114,17 @@ class Bump:
print(self.encrypt(data)) print(self.encrypt(data))
def push(self, data): def push(self, title='', data=''):
params = { params = {
'sender': self.get_sender(), 'sender': self.get_sender(),
'title': title,
'data': self.encrypt(data) 'data': self.encrypt(data)
} }
return self.set_post("push", params) return self.set_post("push", params)
def firebase(self): def firebase(self):
params = { params = {
'token': "HIJKLMNOPQRSTUVWXYZ" 'token': "dTm8S2bfTdKYQTjrxnwFFg:APA91bHGgM7IdRS5uxD0ljmwmP6cAec2icX0VBs69iRB2ApsohyOWzTzontO7cBkjNYbWV87zvxrXIs5jHkJ-8mSWa_-RiU2Y8-XEy3g-Fep3z6dhDeM3KazP58jDRgbdB5cVpDcIEWL"
} }
return self.set_post("firebase", params) return self.set_post("firebase", params)