Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 685 Bytes

File metadata and controls

25 lines (20 loc) · 685 Bytes

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

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

Storage storage = new Storage(client);

storage.listFiles( "<BUCKET_ID>", // bucketId listOf(), // queries (optional) "", // search (optional) false, // total (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; }

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

);