Fixed bug in api.php example where delta was referred to incorrectly