Xend API Sample Codes (PHP)