Added get_all_cards to API.php