1.1.0 • Published 2 years ago

sip_loyalty_api_sdk v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

  1. Whenever the swagger updates, download the new swagger.json from here.

    Download the Unresolved JSON from this link.

  2. Save swagger.json into the root of the folder.

  3. Run yarn generate:typings to generate new typings.