mirror of
https://github.com/appwrite/appwrite
synced 2026-04-29 01:17:23 +00:00
419 B
419 B
import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases
val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setKey("") //
val databases = Databases(client)
val result = databases.createDocuments( databaseId = "<DATABASE_ID>", collectionId = "<COLLECTION_ID>", documents = listOf(), )