node-shopify
node-shopify
checkout
create checkout
import {Shopify} from 'node-shopify';
(async () => {
const accessLogin = 'xxx';
const accessPassword = 'shpat_yyy';
const url = 'example.myshopify.com'
const shopify = new Shopify(`https://${accessLogin}:${accessToken}@${url}`, 5000);
const checkout = (await shopify.createCheckout({
email: 'user@example.com'
})).unwrap();
})();
product
get products
import {Shopify} from 'node-shopify';
(async () => {
const accessLogin = 'xxx';
const accessPassword = 'shpat_yyy';
const url = 'example.myshopify.com'
const shopify = new Shopify(`https://${accessLogin}:${accessToken}@${url}`, 5000);
const products = (await shopify.getProducts()).unwrap();
})();
get products count
import {Shopify} from 'node-shopify';
(async () => {
const accessLogin = 'xxx';
const accessPassword = 'shpat_yyy';
const url = 'example.myshopify.com'
const shopify = new Shopify(`https://${accessLogin}:${accessToken}@${url}`, 5000);
const productsCount = (await shopify.getProductsCount()).unwrap();
})();