Tin tức & cập nhật
Tab News & Updates trên app dealer lấy bài từ CMS Gommo theo domain đăng ký. Integrator làm shell white-label thường chỉ đọc feed này; không đăng bài qua API public này.
Mọi form cần domain đăng ký — xem Authentication.
Playground
Playground — Home feed → Nền tảng → Tin tức & cập nhật khi chạy npm run docs:stack.
Khác inbox thông báo
POST /ai/notifications là inbox user. POST …/news/getAll là timeline News & Updates (HTML, type update/promotion/…). Xem Gommo public API.
Khác changelogs
POST …/app/changelogs = feed Recent updates (release notes). Xem Changelogs.
Liệt kê bài
POST https://api.gommo.net/api/apps/go-mmo/news/getAll (form-urlencoded)
| Field | Ghi chú |
|---|---|
domain, access_token | Bắt buộc |
limit | Tùy chọn — UI dealer hay 100 |
lang_id | Tùy chọn — en, vi, … |
device_* | Tùy chọn |
$domain = $env:GOMMO_API_DOMAIN
if (-not $domain) { throw 'Set GOMMO_API_DOMAIN' }
$h = @{ Authorization = "Bearer $env:TOKEN"; 'Content-Type' = 'application/x-www-form-urlencoded' }
$body = "access_token=$env:TOKEN&domain=$domain&limit=100&lang_id=vi"
Invoke-RestMethod -Method Post -Uri 'https://api.gommo.net/api/apps/go-mmo/news/getAll' -Headers $h -Body $bodyResponse: { "data": [ … ], "runtime" } — content là HTML (sanitize khi render). Filter chip type thường client-side.
Mode B (gateway)
POST {gateway}/gateway/news JSON — Bearer, alias language → lang_id. Xem openapi.
Liên quan: Changelogs · Home feed · Endpoint map
