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