The magento
Package
The magento
package provides various tools to help simplify interaction with the Magento 2 API.
Functions
- magento.get_api(**kwargs)[source]View on GitHub
Initialize a
Client
using credentials stored in environment variablesAny valid
Client
kwargs can be used in addition to and/or instead of environment variablesUsage:
import magento api = magento.get_api()
- Parameters
kwargs – any valid kwargs for
Client
- Raises
ValueError – if login credentials are missing
- Return type
…
…