XirSys API endpoint for PHP and simple examples