Пример #1
0
def myproducts():
    provs = Providers()
    token = request.headers["Authorization"]
    my_id = provs.myid(token)
    get_my_products = provs.getter("wp-json/wc/v2/products/?vendor=" +
                                   str(my_id))
    return get_my_products
Пример #2
0
def getVendors():
    provs = Providers()
    vendors = provs.getter("wp-json/wcmp/v1/vendors")
    return vendors
Пример #3
0
def getProducts(ide):
    provs = Providers()
    product = provs.getter("wp-json/wc/v2/products?vendor=" + str(ide))
    return product