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 });