Skip to content

Developer friendly reusable client API #19

Open
@sharoonthomas

Description

@sharoonthomas

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions