-
Notifications
You must be signed in to change notification settings - Fork 32
Odoo Log In
Ignacio Buioli edited this page Jan 18, 2021
·
1 revision
Check LogIn with DB, User and Password. Get the User ID.
POST /odoo-api/common/login
Attribute | Type | Required | Description |
---|---|---|---|
db |
string | yes | Odoo server DB name |
login |
string | yes | Odoo User |
password |
string | yes | Odoo User Password |
import requests
import json
url = 'http://localhost:8069/odoo-api/common/login'
data = {'params': {'db': 'odoo', 'login': 'admin', 'password': 'admin'}}
headers = {'Content-type': 'application/json'}
r = requests.post(url, data=json.dumps(data), headers=headers)
print(r.text)
this.http.post<any>('http://localhost:8069/odoo-api/common/login',
{params: {db: 'odoo', login: 'admin', password: 'admin'}}).subscribe(data => {
console.log(data.result);
});