mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
594 B
594 B
import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tables
val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setSession("") // The user session to authenticate with .setKey("") // .setJWT("<YOUR_JWT>") // Your secret JSON Web Token
val tables = Tables(client)
val result = tables.createRow( databaseId = "<DATABASE_ID>", tableId = "<TABLE_ID>", rowId = "<ROW_ID>", data = mapOf( "a" to "b" ), permissions = listOf("read("any")"), // (optional) )