glowloyalty
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

glowloyalty

  • module get reward points information, customer's point history from glowloyalty linked to shopify.

How to use?

import module in typescript

import GlowLoyalty from 'glowloyalty'

let glow = new GlowLoyalty({
    apiKey: 'xx',
    apiSecret: 'xx'
})

// get list member point
let memberPoints = await glow.member.getList();
let memberPoint = await glow.member.find({ member_id });
let memberPointHistory = await glow.point.getHistory({ member_id });
let listRewards = await glow.reward.getList();
let reward = await glow.reward.find({ reward_id });
let discounts = await glow.discount.getList();
let discount = await glow.discount.find({ code });

Package Sidebar

Install

npm i glowloyalty

Weekly Downloads

2

Version

1.0.6

License

ISC

Unpacked Size

55.1 kB

Total Files

32

Last publish

Collaborators

  • dungbui