1.0.2 • Published 2 years ago

@satwinder-techmarcos/decision-sdk v1.0.2

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

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);
  });
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago