added command to laod products from woo.enreda.coop, required extra env variables

This commit is contained in:
Sam
2021-02-22 10:21:13 +00:00
parent d53a6337b5
commit 42d806f557
4 changed files with 56 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ def get_wcapi_instance(url, key, secret, version="wc/v3"):
def migrate_shop_products(url, key, secret, version="wc/v3"):
"""Tries to connect to WooCommerce site @ url with given credentials
If succesful, returns list of Product instances created
"""
# get wcapi
wcapi = get_wcapi_instance(url, key, secret, version)