Updated api-example.php because of changed api.php