I want to get odoo information
example:use www.XXXX.com is success
but i use 192.168.1.1 is error
$ripcord = new \ripcord();
$common = $ripcord::client($url."/xmlrpc/2/common");
$common->version();
$uid = $common->authenticate($db, $username, $pwd, array());
$models = $ripcord::client($url."/xmlrpc/2/object");
if($uid > 0){ $partner_field = $models->execute_kw($db, $uid, $pwd, 'res.users', 'search_read', array(array(array('id', '=', $uid),)), array('fields'=>array('id','name','image_small','partner_id')) );
return json_encode($partner_field,JSON_UNESCAPED_UNICODE);
}else{ return "0";
}