diff --git a/ACCOUNT_MANAGEMENT.md b/ACCOUNT_MANAGEMENT.md index fe0a1ad..84587bf 100644 --- a/ACCOUNT_MANAGEMENT.md +++ b/ACCOUNT_MANAGEMENT.md @@ -320,7 +320,7 @@ Account settings are stored in `config.json`: **List accounts:** ```bash -curl -u username:password http://localhost:8025/api/accounts +curl -u username:password http://localhost:8825/api/accounts ``` **Add account:** @@ -336,7 +336,7 @@ curl -u username:password \ "session_path": "./sessions/new-account", "show_qr": true }' \ - http://localhost:8025/api/accounts/add + http://localhost:8825/api/accounts/add ``` **Update account:** @@ -355,7 +355,7 @@ curl -u username:password \ "api_version": "v21.0" } }' \ - http://localhost:8025/api/accounts/update + http://localhost:8825/api/accounts/update ``` **Disable account:** @@ -365,7 +365,7 @@ curl -u username:password \ -X POST \ -H "Content-Type: application/json" \ -d '{"id": "my-account"}' \ - http://localhost:8025/api/accounts/disable + http://localhost:8825/api/accounts/disable ``` **Enable account:** @@ -375,7 +375,7 @@ curl -u username:password \ -X POST \ -H "Content-Type: application/json" \ -d '{"id": "my-account"}' \ - http://localhost:8025/api/accounts/enable + http://localhost:8825/api/accounts/enable ``` **Remove account:** @@ -385,7 +385,7 @@ curl -u username:password \ -X POST \ -H "Content-Type: application/json" \ -d '{"id": "my-account"}' \ - http://localhost:8025/api/accounts/remove + http://localhost:8825/api/accounts/remove ``` --- diff --git a/CLI.md b/CLI.md index de43d13..22306eb 100644 --- a/CLI.md +++ b/CLI.md @@ -52,7 +52,7 @@ Create a configuration file at `~/.whatshooked/cli.json`: ```json { - "server_url": "http://localhost:8025", + "server_url": "http://localhost:8825", "auth_key": "your-api-key-here", "username": "", "password": "" @@ -63,7 +63,7 @@ Or use API key authentication: ```json { - "server_url": "http://localhost:8025", + "server_url": "http://localhost:8825", "auth_key": "your-secure-api-key" } ``` @@ -72,7 +72,7 @@ Or use username/password authentication: ```json { - "server_url": "http://localhost:8025", + "server_url": "http://localhost:8825", "username": "admin", "password": "your-secure-password" } @@ -90,14 +90,14 @@ cp .whatshooked-cli.example.json .whatshooked-cli.json Set environment variables (useful for CI/CD): ```bash -export WHATSHOOKED_SERVER_URL="http://localhost:8025" +export WHATSHOOKED_SERVER_URL="http://localhost:8825" export WHATSHOOKED_AUTH_KEY="your-api-key-here" ``` Or with username/password: ```bash -export WHATSHOOKED_SERVER_URL="http://localhost:8025" +export WHATSHOOKED_SERVER_URL="http://localhost:8825" export WHATSHOOKED_USERNAME="admin" export WHATSHOOKED_PASSWORD="your-password" ``` @@ -107,7 +107,7 @@ export WHATSHOOKED_PASSWORD="your-password" Pass credentials via command-line flags: ```bash -./bin/whatshook-cli --server http://localhost:8025 health +./bin/whatshook-cli --server http://localhost:8825 health ``` Note: Currently, authentication credentials can only be set via config file or environment variables. Command-line flags for auth credentials may be added in future versions. @@ -118,7 +118,7 @@ If your server doesn't require authentication, simply omit the authentication fi ```json { - "server_url": "http://localhost:8025" + "server_url": "http://localhost:8825" } ``` @@ -136,7 +136,7 @@ The CLI looks for configuration files in the following locations (in order): | Option | Type | Default | Description | | ------------ | ------ | ----------------------- | -------------------------- | -| `server_url` | string | `http://localhost:8025` | WhatsHooked server URL | +| `server_url` | string | `http://localhost:8825` | WhatsHooked server URL | | `auth_key` | string | `""` | API key for authentication | | `username` | string | `""` | Username for Basic Auth | | `password` | string | `""` | Password for Basic Auth | @@ -305,7 +305,7 @@ Supported formats: PDF, DOC, DOCX, XLS, XLSX, TXT, ZIP, and more mkdir -p ~/.whatshooked cat > ~/.whatshooked/cli.json < +docker exec whatshooked-server /app/bin/whatshook-cli --server http://localhost:8825 hooks remove ``` List WhatsApp accounts: ```bash -docker exec whatshooked-server /app/bin/whatshook-cli --server http://localhost:8025 accounts list +docker exec whatshooked-server /app/bin/whatshook-cli --server http://localhost:8825 accounts list ``` Send a message: ```bash -docker exec -it whatshooked-server /app/bin/whatshook-cli --server http://localhost:8025 send +docker exec -it whatshooked-server /app/bin/whatshook-cli --server http://localhost:8825 send ``` Check server health: ```bash -docker exec whatshooked-server /app/bin/whatshook-cli --server http://localhost:8025 health +docker exec whatshooked-server /app/bin/whatshook-cli --server http://localhost:8825 health ``` ### Authentication with CLI @@ -247,7 +247,7 @@ If your server has authentication enabled, you need to configure it in the CLI: ```bash docker exec whatshooked-server /app/bin/whatshook-cli \ - --server http://localhost:8025 \ + --server http://localhost:8825 \ --api-key your-api-key \ hooks list ``` @@ -265,7 +265,7 @@ docker exec whatshooked-server /app/bin/whatshook-cli \ ```bash cat > /app/.whatshooked-cli.json <