Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wailoonho opened this issue Dec 16, 2023 · 0 comments

Comments

@wailoonho
Copy link

wailoonho commented Dec 16, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant