Returns
Returns a Product object for the given product name.Example
Parameters
string
required
The name of the product you want to retrieve.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve a specific product by its name.
product = galtea.products.get_by_name(name=product_name)
| Error | Cause |
|---|---|
EntityNotFoundException | The platform holds nothing under the id or name you passed. Import it with from galtea import EntityNotFoundException. Read the status from e.status_code. When the API answered 404 the SDK raises the subclass EntityNotFoundHTTPError, which also derives from requests.HTTPError and carries e.response, so code catching requests.HTTPError keeps working. |