Added API call: getCategories.