Skip to Content
Menu
This question has been flagged
1 Odpoveď
2345 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
2626
3
aug 25
3509
1
jún 25
1766
3
júl 25
3375
1
máj 25
1525