Skip to content

Files

Latest commit

7ec5904 · Apr 24, 2025

History

History
25 lines (20 loc) · 643 Bytes

create.md

File metadata and controls

25 lines (20 loc) · 643 Bytes

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

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

Account account = new Account(client);

account.create( "<USER_ID>", // userId "email@example.com", // email "", // password "", // name (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; }

    System.out.println(result);
})

);