1.1.0 • Published 4 years ago
sip_loyalty_api_sdk
Licence
MIT
Version
1.1.0
Deps
2
Size
39 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
SIP Loyalty API SDK
SipScience's Loyalty API SDK for Typescript.
Installation Instructions
Install the package via npm:
npm install sip_loyalty_api_sdk
or yarn:
yarn add sip_loyalty_api_sdk
Usage Instructions
import SIPLoyaltyAPI from 'sip_loyalty_api_sdk'
const api = new SIPLoyaltyAPI("staging");
// Login the user
await api.login({
username: "sip",
password: "password123admin"
})
// Consume rest of the API
await api.searchMerchants({})
Development Instructions: Generate new Typescript Models
Whenever the swagger updates, download the new
swagger.jsonfrom here.Download the Unresolved JSON from this link.
Save
swagger.jsoninto the root of the folder.Run
yarn generate:typingsto generate new typings.