Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 16
4996
4
sie 24
37315
5
gru 20
9891
1
wrz 20
6772
0
paź 18
2696