2.0.2 • Published 2 years ago

rc_sdk_gm v2.0.2

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

Redcarpet SDK

Installation

npm i rc_sdk_gm
yarn add rc_sdk_gm

Documentation

Documentation of Redcarpet API and their usage

Basic Usage

Instantiate the redcarpet instance with apiKey , productType & productVersion. You can obtain the keys from the redcarpet website.

const RedcarpetUpAPI = require('rc_sdk_gm');

var instance = new RedcarpetUpAPI({
    productType: "your-product-type",
    apiKey: "your-api-key",
});

The resources can be accessed via the instance. All the methods invocations follows the namespaced signature

// API signature
// {redcarpt Instance}.{methodName}

// example
instance.getOtp({
    phone:'XXXXXXXXXX'
});

Every resource method returns a promise.

instance.verifyOtp({
    phone: 'XXXXXXXXXX',
    otp: '234343',
  })
  .then(response => {
    // handle success
  })
  .catch(error => {
    // handle error
  });

Licence

MIT Licensed. See LICENSE.txt for more details

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago