superfaktura_api: fix download method docstring example

This commit is contained in:
Richard Kubíček
2025-03-04 13:47:52 +01:00
parent 3d39ac39b2
commit e8a379fc4f

View File

@@ -116,11 +116,9 @@ class SuperFakturaAPI:
SuperFakturaAPIException: If the API request fails or returns an error. SuperFakturaAPIException: If the API request fails or returns an error.
Examples: Examples:
>>> from superfaktura.invoice import Invoice >>> api = SuperFakturaAPI()
>>> from superfaktura.enumerations.language import Language >>> with open("data.pdf", "wb") as f:
>>> invoice = Invoice() >>> api.download("some/endpoint", descriptor=f)
>>> with open("invoice.pdf", "wb") as f:
>>> invoice.get_pdf(invoice=invoice_data, descriptor=f, language=Language.English)
Notes: Notes:
The available endpoints can be found in the SuperFaktura API documentation. The available endpoints can be found in the SuperFaktura API documentation.