woocommerce / wc-api-python

A Python wrapper for the WooCommerce API.
https://pypi.org/project/WooCommerce/
MIT License
213 stars 113 forks source link

response 404 or 500 when getting products/sales from woocommerce using python #95

Open wailoonho opened 9 months ago

wailoonho commented 9 months ago

Hi I'm trying to get product and sales data from woocommerce using python

here is my code `import json from woocommerce import API

wcapi = API( url="https://abc", consumer_key="ck_abc", consumer_secret="cs_abc", version="wc/v3", timeout=50 )

response = wcapi.get('products', params={'per_page': 20}) print(response)`

but i get response 404 or 500 may i know what is the problem?