Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2659 Prikazi
how json read record from odoo and post to web and return to odoo
Avatar
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jul. 22
2897
2
okt. 25
2517
1
sep. 25
2497
3
avg. 25
4484
3
jul. 25
3968