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
def getVendors(): provs = Providers() vendors = provs.getter("wp-json/wcmp/v1/vendors") return vendors
def getProducts(ide): provs = Providers() product = provs.getter("wp-json/wc/v2/products?vendor=" + str(ide)) return product