'how i use odoo login api to external application like postman and java?
I want to hit login api from postman or java and the error generating bad csrf token. Have any solution to fix this issue or we disabled csrf token?
Solution 1:[1]
Read the documentation on external API's, use this snippet to test out connection to your Odoo instance:
final XmlRpcClient client = new XmlRpcClient();
final XmlRpcClientConfigImpl start_config = new XmlRpcClientConfigImpl();
start_config.setServerURL(new URL("https://demo.odoo.com/start"));
final Map<String, String> info = (Map<String, String>)client.execute(
start_config, "start", emptyList());
final String url = info.get("host"),
db = info.get("database"),
username = info.get("user"),
password = info.get("password");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Houssem Chouia |