woocommerce / woocommerce/wc-api-python
response 404 or 500 when getting products/sales from woocommerce using python
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 216
- Forks
- 108
- Avg merge
- 6h 34m
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report only provides a Python API constructor and a get('products') call; no repository file, test, request URL, response body, or environment details are named. Start by tracing the API entry point used by wcapi.get and reproduce the request with the provided configuration. Done requires identifying whether the wrapper or the WooCommerce endpoint produces the 404 or 500 response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100