B
BMG Chat CLIWindows · Linux · Termux
← Trở lại chat

Chat ngay trong terminal.

Tạo API token từ trang tài khoản sau khi đăng nhập Entra. Token chỉ hiển thị một lần và được lưu trên máy chủ dưới dạng SHA-256.

bash · Termux · WSL
export BMG_CHAT_TOKEN="bmgc_..."
curl -s https://chat.bmgfvn.net/api/v1/channels \
  -H "Authorization: Bearer $BMG_CHAT_TOKEN"

curl -s https://chat.bmgfvn.net/api/v1/channels/van-hanh/messages \
  -H "Authorization: Bearer $BMG_CHAT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Kiểm tra từ Termux"}'
PS
Windows PowerShellDùng Invoke-RestMethod với cùng Bearer token.
$
Linux / TermuxChỉ cần curl; không yêu cầu runtime riêng.
API
JSON ổn địnhVersioned endpoint, mã lỗi và request ID.