Skip to Content
Menu
This question has been flagged
1 Odpoveď
2642 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
2886
2
okt 25
2498
1
sep 25
2474
3
aug 25
4458
3
júl 25
3964