Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2520 Visualizações
how json read record from odoo and post to web and return to odoo
Avatar
Cancelar
Autor Melhor resposta
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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jul. 22
2800
1
set. 25
2246
3
ago. 25
4199
1
jun. 25
2269
3
jul. 25
3776