Hello,
I work on a project where we use an external API. This API allows to keep the same token for 7 days.
I'd like to not reconnect everytime and use the token while it has still less than 7 days but I don't know the good practice for that. Do I keep it in a new model (which would have only 1 line in the DB ) and every time I need to access to the API, I access to the model and check the date or there are better methods?
Thank you in advance for your help.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
2023
Görünümler
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Ara 24
|
2219 | ||
|
1
Şub 22
|
3997 | ||
|
1
Şub 22
|
6913 | ||
|
0
Kas 21
|
4432 | ||
|
3
May 21
|
13790 |