Low-Level Vocabulary¶
These methods provide a lower-level abstraction of the API. Basically, they simply provide standard GET, POST, DELETE and PUT functionality. You will need to provide information such as API path. If your needs are a bit simpler, use the High-Level Vocabulary.
-
pyPrintful.
do_get
(path, params=None)[source]¶ Perform a GET request to the API
Parameters: - path – Request path (e.g. ‘orders’ or ‘orders/123’)
- params – Additional GET parameters as a dictionary
-
pyPrintful.
do_post
(path, data=None, params=None)[source]¶ Perform a POST request to the API
Parameters: - path – Request path (e.g. ‘orders’ or ‘orders/123’)
- data – Request body data as a dictionary
- params – Additional GET parameters as a dictionary