ApiCall Functions

Functions added to the apicall.php and defines.php created