Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 603 Bytes

File metadata and controls

22 lines (17 loc) · 603 Bytes

import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases;

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

Databases databases = new Databases(client);

databases.listTransactions( List.of(), // queries (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; }

    Log.d("Appwrite", result.toString());
})

);