superfaktura_api: update usages in docs

This commit is contained in:
Richard Kubíček
2025-03-03 20:37:07 +01:00
parent ec9a83be30
commit a49aba6d46

View File

@@ -14,16 +14,13 @@ Functions:
- post: Creates or updates data in the SuperFaktura API. - post: Creates or updates data in the SuperFaktura API.
Usage: Usage:
import superfaktura.superfaktura_api >>> import superfaktura.superfaktura_api
>>> # Create an instance of SuperFakturaAPI
# Create an instance of SuperFakturaAPI >>> api = superfaktura.superfaktura_api.SuperFakturaAPI()
api = superfaktura.superfaktura_api.SuperFakturaAPI() >>> # Retrieve data from the SuperFaktura API
>>> incoming_data = api.get('endpoint')
# Retrieve data from the SuperFaktura API >>> # Create or update data in the SuperFaktura API
data = api.get('endpoint') >>> api.post('endpoint', outgoing_data)
# Create or update data in the SuperFaktura API
api.post('endpoint', data)
""" """
import os import os