Skip to main content

The ePages online shop API for Python

Project description

See ePagesAPI for detailed documentation.

Installation

Using pip:

pip install epages-rest-python

Usage

import epages

api_url = "https://your.domain.com/rs/shops/yourShopName"
client = epages.HTTPClient(api_url,
                           "yOuRaPiKeYhErE")

# Get the shop information
shop = client.get("") # or client.get("/") or client.get(api_url)
print(shop)

# Create a new product
payload = {
    "productNumber": "1337"
}
new_product = client.post("/products", json=payload)
print(new_product)

Testing

Executing the tests requires a developerShop.

cd epages-rest-python
cp run_tests.sh.template run_tests.sh
# Edit run_tests.sh: enter your epages host, shop and API key
bash run_tests.sh

Contributing

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epages-rest-python-0.3.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page