Skip to content

Commit

Permalink
add page param to fix issue erpbrasil#5
Browse files Browse the repository at this point in the history
  • Loading branch information
rpsjr committed Mar 23, 2021
1 parent 57e4bdd commit 4008dce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/erpbrasil/bank/inter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def boleto_inclui(self, boleto):
)
return result.content and result.json() or result.ok

def boleto_consulta(self, filtrar_por='TODOS', data_inicial=None, data_final=None,
ordenar_por='NOSSONUMERO'):
def boleto_consulta(self, filtrar_por='TODOS', data_inicial=None, data_final=None,ordenar_por='NOSSONUMERO', page=0):

""" GET
https://apis.bancointer.com.br:8443/openbanking/v1/certificado/boletos?
filtrarPor=TODOS&
Expand All @@ -93,7 +93,8 @@ def boleto_consulta(self, filtrar_por='TODOS', data_inicial=None, data_final=Non
filtrarPor=filtrar_por,
dataInicial=data_inicial,
dataFinal=data_final,
ordenarPor=ordenar_por
ordenarPor=ordenar_por,
page=page
)
)
return result.content and result.json() or result.ok
Expand Down

0 comments on commit 4008dce

Please sign in to comment.