able to pull Products using Shopify GraphQL API

This commit is contained in:
Ben Miller
2024-11-09 02:40:13 -07:00
parent 6bbd8d4525
commit fb86c9c96d
4 changed files with 786 additions and 4 deletions

View File

@ -1,7 +1,22 @@
import { Shop } from "./shopifyApi"
function initMenu() {
let ui = SpreadsheetApp.getUi()
ui.createMenu("BLM")
.addItem("Fill out product from template", "fillProductFromTemplate")
.addItem("Create missing photo folders", "createMissingPhotoFolders")
.addSeparator()
.addItem("Run Shopify Orders", "runShopifyOrders")
.addItem("Get Shopify Products", "getShopifyProducts")
.addToUi()
}
function runShopifyOrders() {
let shop = new Shop()
shop.RunOrders()
}
function getShopifyProducts() {
let shop = new Shop()
shop.GetProducts()
}