Add api global to library/globals.inc.php file.