woocommerce / wc-api-python

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

Download all products in specific language (WPML) #39

Closed LucSpan closed 5 years ago

LucSpan commented 6 years ago

My WooCommerce has 3 different languages: default lang is French.

wcapi.get('products/?per_page=100').json()

gives up to 100 products in the default language.

wcapi.get('products/?lang=en').json()

gives up to 10 products in the English language.

How do I combine to two, such that I get up to 100 products in the English language?

claudiosanches commented 5 years ago

Just use & to combination both, like any other query string in URLs.