Adding api.php
Merge remote-tracking branch 'origin/master'