Skip to Content
Menú
This question has been flagged
1 Respondre
1335 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 20
7082
0
de gen. 23
5609
2
d’abr. 18
5148
1
de set. 17
4353
1
de març 15
5624