1.1.0 • Published 4 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_sdkor yarn:
yarn add sip_loyalty_api_sdkUsage 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.
1.1.0
4 years ago