Lister les CATEGORIES

myHeaders.append("Authorization", "Bearer <token>");

const categories = [];

fetch("https://api.sinao.app/v1/apps/:appId/accountcategories", {
  method: 'GET',
  headers: myHeaders
})
  .then(response => response.json())
  .then(result => categories.push(...result.data));