require 'appwrite' include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key messaging = Messaging.new(client) result = messaging.create_push( message_id: '', title: '', # optional body: '<BODY>', # optional topics: [], # optional users: [], # optional targets: [], # optional data: {}, # optional action: '<ACTION>', # optional image: '[ID1:ID2]', # optional icon: '<ICON>', # optional sound: '<SOUND>', # optional color: '<COLOR>', # optional tag: '<TAG>', # optional badge: null, # optional draft: false, # optional scheduled_at: '', # optional content_available: false, # optional critical: false, # optional priority: MessagePriority::NORMAL # optional )