/** * Get Customer info * @param [Array] $options */ function getCustomerInfos($options) { $CustomerService = new CustomerService(); $CustomerService->auth($options['credentials']); $data = $CustomerService->getInfos(); $data = json_encode($data); fwrite(STDOUT, $data); }