Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.
/ angpao-api Public archive

API Wrapper around Truemoney Wallet's angpao system

License

Notifications You must be signed in to change notification settings

xhayper/angpao-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angpao-api

npm version

API wrapper around Truemoney Wallet's angpao system

Usage

import { AngpaoAPI } from 'angpao-api';

const angpao = new AngpaoAPI('089xxxxxxx');
angpao.redeem(AngpaoAPI.extractVoucherId('https://gift.truemoney.com/campaign/?v=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'));