Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1444 Ansichten

Hello, 

I'm trying to connect to Odoo API in php to sync stock with my e-commerce, but I can't figure out why my connexion is not working.

I've double check my Odoo credentials, my ripcord folder path is right in 755 chmod, I also have an .htaccess for xmlrpc


 
Order deny,allow
Allow from all

Here is my file


$url = 'email@domain.be';
$password = 'my-password';require_once('ripcord/ripcord.php');

$common = ripcord::client("$url/xmlrpc/2/common");
$uid = $common->authenticate($db, $username, $password, array());

if(!empty($uid)){
echo "Successfully sign in with the user id of : " . $uid . '';
}else{
echo "Failed to sign in";
}

Does someone have any idea ?


Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Sept. 20
7213
0
Jan. 23
5705
2
Apr. 18
5272
1
Sept. 17
4477
1
März 15
5727