Ir al contenido
Menú
Se marcó esta pregunta

Hello, I have installed Odoo 10 in my localhost and I have followed web service api documentation here https://www.odoo.com/documentation/10.0/api_integration.html

My script is:


error_reporting(E_ALL);

ini_set('display_errors', 1);

require_once('ripcord_lib/ripcord.php');

$url = 'http://localhost:8069';

$db = 'DEMO';

$username = *****;

$password = *****;

$common = ripcord::client($url.'/xmlrpc/2/common');

print_r($common->version());

$uid = $common->authenticate($db, $username, $password, array());

print_r($uid);


It does print only the version

Array ( [server_serie] => 10.0 [server_version_info] => Array ( [0] => 10 [1] => 0 [2] => 0 [3] => final [4] => 0 [5] => ) [server_version] => 10.0-20181127 [protocol_version] => 1 )

Why it does not print the user id? Thanks for your help. 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 16
5087
4
ago 24
37731
5
dic 20
10084
1
sept 20
6885
0
oct 18
2745