Skip to content

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

@wailoonho

Description

@wailoonho

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions