Chuyển tới nội dung chính

Lấy danh sách danh mục

Được sử dụng để lấy danh sách danh mục của Mini App.

Return Values​

PropertyTypeDescription
errorintMã lỗi của kết quả trả về, bằng 0 nếu request thành công
messageStringLời nhắn chi tiết tương ứng với mã lỗi
totalintTổng số toàn bộ danh mục của Mini App
categoriesList<AppCategory>Danh sách các danh mục của Mini App

AppCategory​

PropertyTypeDescription
idStringID của danh mục
labelStringTên của danh mục
subCategoriesList<String>Danh sách các danh mục con

Sample Code​

import com.vng.zalo.miniapp.openapi.sdk.models.ListCategoriesResponse;

ListCategoriesResponse response = client.listCategories();