Added spacecog api php file.