Added get_category_cards to API.php