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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2045
查看
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
12月 24
|
2281 | ||
|
1
2月 22
|
4034 | ||
|
1
2月 22
|
6958 | ||
|
0
11月 21
|
4464 | ||
|
3
5月 21
|
13838 |