Skip to content

Release: add params to get_pli

Compare
Choose a tag to compare
@alicflorez alicflorez released this 22 Oct 14:23
· 9 commits to master since this release
1757d0c

Now, you can add the dict params to get_pli as the example bellow:

api = PyDelivengo(api_authorization)  # initialize 
api.get_pli(id_pli, print_pdf=True, params={'support': 32})  # support 32 = pdf 10 x 15 cm
pdf = response['data']['documents_supports']  # get the pdf in ascii format

(I should probably check if more functions need the params dict)