Obtener saldo de timbres
This commit is contained in:
parent
8cb4bf3e18
commit
4208a32d22
|
@ -258,7 +258,6 @@ class PACComercioDigital(object):
|
||||||
f"UUID={data['uuid']}",
|
f"UUID={data['uuid']}",
|
||||||
)
|
)
|
||||||
data = '\n'.join(data)
|
data = '\n'.join(data)
|
||||||
print(data)
|
|
||||||
result = self._post(url, data)
|
result = self._post(url, data)
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
|
@ -324,6 +323,7 @@ class PACComercioDigital(object):
|
||||||
'Host': host,
|
'Host': host,
|
||||||
'Connection' : 'Keep-Alive',
|
'Connection' : 'Keep-Alive',
|
||||||
}
|
}
|
||||||
|
data = {'usr': data['rfc'], 'pwd': data['password']}
|
||||||
try:
|
try:
|
||||||
result = requests.get(url, params=data, headers=headers, timeout=TIMEOUT)
|
result = requests.get(url, params=data, headers=headers, timeout=TIMEOUT)
|
||||||
except ConnectionError as e:
|
except ConnectionError as e:
|
||||||
|
|
Loading…
Reference in New Issue