mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 00:18:25 +01:00
superfaktura_api: fix download method docstring example
This commit is contained in:
@@ -116,11 +116,9 @@ class SuperFakturaAPI:
|
||||
SuperFakturaAPIException: If the API request fails or returns an error.
|
||||
|
||||
Examples:
|
||||
>>> from superfaktura.invoice import Invoice
|
||||
>>> from superfaktura.enumerations.language import Language
|
||||
>>> invoice = Invoice()
|
||||
>>> with open("invoice.pdf", "wb") as f:
|
||||
>>> invoice.get_pdf(invoice=invoice_data, descriptor=f, language=Language.English)
|
||||
>>> api = SuperFakturaAPI()
|
||||
>>> with open("data.pdf", "wb") as f:
|
||||
>>> api.download("some/endpoint", descriptor=f)
|
||||
|
||||
Notes:
|
||||
The available endpoints can be found in the SuperFaktura API documentation.
|
||||
|
||||
Reference in New Issue
Block a user