able to pull Products using Shopify GraphQL API
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user