KAR API in PHP