Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2730 Näkymät

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?

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
heinäk. 25
558
1
heinäk. 25
258
1
kesäk. 25
2006
1
elok. 25
957
1
huhtik. 25
1607