Update api.php

Had to change this to make it work.
Merge pull request #55 from WiseDragoon/patch-1

Update api.php