We have heard repeatedly that there should be a way to repeatedly use the APIs without initializing the context manager. Hence I have a made a simple implementation and I look forward to your feedback.
The new client api works like:
from magento import Client
# Initialise a client
client = Client('http://yourstore.com', 'api username', 'api password')
# Call the tree method in the catalog_category API
client.catalog_category.tree()
# Get the list of products
client.catalog_product.list()
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8795798-developer-friendly-reusable-client-api?utm_campaign=plugin&utm_content=tracker%2F490249&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F490249&utm_medium=issues&utm_source=github).
Hello Folks,
We have heard repeatedly that there should be a way to repeatedly use the APIs without initializing the context manager. Hence I have a made a simple implementation and I look forward to your feedback.
The new client api works like: