Skip to Content
Menu
This question has been flagged
1 Odpoveď
2504 Zobrazenia
how json read record from odoo and post to web and return to odoo
Avatar
Zrušiť
Autor Best Answer
def get_api_token(self):
data = {
'api_key': self.paymob_publishable_key
}
api_token = requests.post("https://accept.paymob.com/api/auth/tokens", json=data)
token = api_token.json()['token']
print(token)

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
júl 22
2782
1
sep 25
2226
3
aug 25
4173
1
jún 25
2252
3
júl 25
3764