Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2790 มุมมอง

I am using PHP with ripcord as suggested in the documentation.  Here is my code:



$url = 'url';


$db = 'xyzzy-sandbox2-12553485';


$username = "username";


$password = 'apikey';


require_once('ripcord.php');


$common = ripcord::client("$url/xmlrpc/2/common");


$uid = $common->authenticate($db, $username, $password, array());


echo json_encode($uid);


die;




This is a sandbox account.   The url is the url for my sandbox account.  It would not let me post the link.  I have a valid active username and have tried an api key and the username's password.  All I ever get is false for the $uid.  Any suggestions?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, please check this: https://youtu.be/Cmbo2iGuTBY 
Hope it helps.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

In my case, I was using admin, admin as username and password, which is in most cases Mitchell admin whose password is not set, either create a new user then use it or update the password to this one from odoo.
Hope this helps.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 25
338
API xmlrpc - upload pdf bills to account แก้ไขแล้ว
3
ก.ค. 25
601
1
มิ.ย. 25
2051
1
ส.ค. 25
976
Original project names via the API แก้ไขแล้ว
1
เม.ย. 25
1626