コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1433 ビュー

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 ?


アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 20
7194
0
1月 23
5704
2
4月 18
5252
1
9月 17
4470
1
3月 15
5725