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,10 +1,43 @@
class Config {
export class Config {
productPhotosFolderId: string
shopifyApiKey: string
shopifyApiSecretKey: string
shopifyAdminApiAccessToken: string
shopifyApiURI: string
constructor() {
let ss = SpreadsheetApp.getActive()
let s = ss.getSheetByName("vars")
this.productPhotosFolderId = vlookupByColumns("vars", "key", "productPhotosFolderId", "value")
this.productPhotosFolderId = vlookupByColumns(
"vars",
"key",
"productPhotosFolderId",
"value"
)
this.shopifyApiKey = vlookupByColumns(
"vars",
"key",
"shopifyApiKey",
"value"
)
this.shopifyApiSecretKey = vlookupByColumns(
"vars",
"key",
"shopifyApiSecretKey",
"value"
)
this.shopifyAdminApiAccessToken = vlookupByColumns(
"vars",
"key",
"shopifyAdminApiAccessToken",
"value"
)
this.shopifyApiURI = vlookupByColumns(
"vars",
"key",
"shopifyApiURI",
"value"
)
}
}
}