Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2497 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
2768
1
sep. 25
2210
3
avg. 25
4162
1
jun. 25
2248
3
jul. 25
3763