Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer friendly reusable client API #19

Open
2 of 9 tasks
sharoonthomas opened this issue Jan 7, 2014 · 1 comment
Open
2 of 9 tasks

Developer friendly reusable client API #19

sharoonthomas opened this issue Jan 7, 2014 · 1 comment

Comments

@sharoonthomas
Copy link

sharoonthomas commented Jan 7, 2014

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:

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()
  • Should be completely thread safe
  • Implement catalog methods (d0904f8)
  • Implement miscellaneous methods
  • Implement customer methods
  • Implement directory methods
  • Implement sales methods
  • Implement checkout methods
  • Documentation on new usage pattern
  • Update the README

--- 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).
@shalabhaggarwal
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants