Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 351 Bytes

create-subscriber.md

File metadata and controls

14 lines (10 loc) · 351 Bytes

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>" )