تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4461 أدوات العرض

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. 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 16
5204
4
أغسطس 24
38254
5
ديسمبر 20
10239
1
سبتمبر 20
7031
0
أكتوبر 18
2843