```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; import io.appwrite.enums.Runtime; import io.appwrite.enums.Scopes; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key Functions functions = new Functions(client); functions.create( "", // functionId "", // name Runtime.NODE_14_5, // runtime List.of("any"), // execute (optional) List.of(), // events (optional) "", // schedule (optional) 1, // timeout (optional) false, // enabled (optional) false, // logging (optional) "", // entrypoint (optional) "", // commands (optional) List.of(Scopes.SESSIONS_WRITE), // scopes (optional) "", // installationId (optional) "", // providerRepositoryId (optional) "", // providerBranch (optional) false, // providerSilentMode (optional) "", // providerRootDirectory (optional) "", // specification (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; } System.out.println(result); }) ); ```