A Python wrapper for the Atshop API
Project description
Installation
Use the package manager pip to install Atshop.
pip install atshop
Usage
from atshop import Client
client = Client()
client.login('token')
product = client.request(
method='admin.product.add',
shop_id='4AueTN7mx6xRurrfu',
product={
'name': 'Clap is cool <3',
'description': '',
'purchaseNotes': '',
'value': 100,
'icon': '',
'minQuantity': 1,
'maxQuantity': 0,
'image_url': '',
'style': 'box',
'requireShipping': 'no',
'paymentMethods': [],
'maxDisplayedStock': 0,
'preventDuplicates': True,
'priority': 0,
'category': '',
'displayDescription': True,
'useOrderIdAsItemName': False,
'hidden': False,
'notForSale': False
}
)
print(product['result'])
Documentation
Everything you need is listed in the Atshop Documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atshop-1.0.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
atshop-1.0.0-py3-none-any.whl
(4.3 kB
view hashes)