@satwinder-techmarcos/decision-sdk

1.0.2 • Public • Published

Decisions SDK

Decisions SDK is in progress. You can use this to fetch all Objects of end point or First Object with end-point and ID of Object It is a simple node js package

Installation

npm i @satwinder-techmarcos/decision-sdk

Dependencies

  • axios - 0.27.2

How to use

const Decisions = require("@satwinder-techmarcos/decision-sdk");

const options = {
    baseUrl: "a valid base url here",
    email: "email@example.com",
    password: "password here",
};

const decision = new Decisions(options);

//Get All Pages
decision
   .getAll("flow/api end point") // get your end point form (https://documentation.decisions.com/v7/docs/api-and-authentication)
   .then((pages) => {
      console.log(pages);
  })
   .catch((err) => {
       console.error(err);
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @satwinder-techmarcos/decision-sdk

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.46 kB

Total Files

3

Last publish

Collaborators

  • satwinder-techmarcos