1.1.0 • Published 2 years ago
sip_loyalty_api_sdk v1.1.0
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.json
from here.Download the Unresolved JSON from this link.
Save
swagger.json
into the root of the folder.- Run
yarn generate:typings
to generate new typings.
1.1.0
2 years ago