8000 GitHub - megoRU/3x-ui-wrapper: Wrapper for https://github.com/MHSanaei/3x-ui
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

megoRU/3x-ui-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3x-ui-wrapper

JitPack

Java API wrapper for 3x-ui, developed by @megoRU. Supports full interaction with the 3x-ui panel via HTTP API.


📦 Installation (Maven)

Add JitPack repository and dependency:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.megoRU</groupId>
    <artifactId>3x-ui-wrapper</artifactId>
    <version>1.9.1</version>
</dependency>

🚀 Examples

➖ Delete config

ThreeUIAPI threeUIAPI = new ThreeUIAPI.Builder()
        .setHost("http://your-host:port")
        .setLogin("admin")
        .setPassword("admin")
        .enableDevMode()
        .build();

boolean success = threeUIAPI.deleteClient(1, "uuid-or-email");
System.out.println("Deleted: " + success);

➕ Create config

ThreeUIAPI threeUIAPI = new ThreeUIAPI.Builder()
        .setHost("http://your-host:port")
        .setLogin("admin")
        .setPassword("admin")
        .enableDevMode()
        .build();

Client client = new Client.Builder()
        .email("testuser123")
        .method("aes-256-gcm")
        .enable(true)
        .subId("your-sub-id")
        .inboundId(1)
        .password("secure-password")
        .build();

boolean success = threeUIAPI.addClient(client);
System.out.println("Created: " + success);

📄 License

This wrapper is distributed under the MIT License.

About

Wrapper for https://github.com/MHSanaei/3x-ui

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0