#javascript #node.js #shopify
Вопрос:
const ShopifyAPIClient = require('shopify-api-node')
const shopify = new ShopifyAPIClient({
shopName: shop,
accessToken: token
})
shopify.scriptTag
.delete({
id: scriptId
})
.then(response => {
console.log('deleteResponse: ', response),
(scriptId = response.id)
logger.info('deleteResponse: ', response)
})
.catch(err => {
console.error('deleteError: ', err),
logger.error('deleteError: ', err)
})