Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2872 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
444
3
thg 7 25
666
1
thg 6 25
2144
1
thg 8 25
1043
1
thg 4 25
1678