Skip to Content
Menu
This question has been flagged
1 Reply
2396 Views
how json read record from odoo and post to web and return to odoo
Avatar
Discard
Author 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
Discard
Related Posts Replies Views Activity
0
Jul 22
2660
3
Aug 25
3720
1
Jun 25
1927
3
Jul 25
3518
1
May 25
1637