You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
frommagentoimportClient# Initialise a clientclient=Client('http://yourstore.com', 'api username', 'api password')
# Call the tree method in the catalog_category APIclient.catalog_category.tree()
# Get the list of productsclient.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).
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: