Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 992 Bytes

File metadata and controls

31 lines (28 loc) · 992 Bytes

from appwrite.client import Client from appwrite.services.messaging import Messaging

client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key

messaging = Messaging(client)

result = messaging.update_push( message_id = '<MESSAGE_ID>', topics = [], # optional users = [], # optional targets = [], # optional title = '<TITLE>', # optional body = '', # optional data = {}, # optional action = '', # optional image = 'ID1:ID2', # optional icon = '', # optional sound = '', # optional color = '', # optional tag = '', # optional badge = None, # optional draft = False, # optional scheduled_at = '', # optional content_available = False, # optional critical = False, # optional priority = MessagePriority.NORMAL # optional )