2.1.0 • Published 3 years ago

inriverjs-geta v2.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

inRiver JS

A simple wrapper for the inRiver IPMC REST API.

Installation

// npm
npm i inriverjs

// yarn
yarn add inriverjs

Usage

  1. Create the context with an initial setup of a key and Endpoint 👇
import InRiverAPIClient from "inriverjs/lib/index";

const inRiverApi = new InRiverAPIClient(
  "YOUR-API-KEY-HERE",
  "https://partnerapieuw.productmarketingcloud.com"
);
  1. Use the API 👌
inRiverApi.Model.getCVLValue("ActivityStatus")
.then((result) => {
    console.log(result.data);
});

Examples

Display all Roles in the IPMC environment:

inRiverApi.System.Roles()
    .then((result) => {
        result.data.forEach((role) => {
            console.log(role.name);
            console.log(role.description);
        });
    }).catch((error) => {
        console.error(error);
    });

Get entity summary:

inRiverApi.Entities.GetEntitySummary(1)
    .then((result) => {
        console.log(result.data.createdBy);
        console.log(result.data.displayName);
    }).catch((error) => {
        console.error(error);
    });

Buy Me A Coffee

If you would like to support me for more inRiver Open Source tools.

2.1.0

3 years ago

1.0.7

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago