appwrite/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md
2025-04-22 17:02:33 +04:00

351 B

import Appwrite

let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID

let messaging = Messaging(client)

let subscriber = try await messaging.createSubscriber( topicId: "<TOPIC_ID>", subscriberId: "<SUBSCRIBER_ID>", targetId: "<TARGET_ID>" )