1.0.1 • Published 11 months ago

ourvoice-node v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Ourvoice NodeJS Package

The Ourvoice Node library provides convenient access to the Ourvoice API from applications written in server-side JavaScript.

Documentation

See the API docs.

Installation

Install the package with:

npm install ourvoice-node --save

Usage

The package needs to be configured with your account's secret key which is available in your OurVoice Dashboard. Require it with the key's value:

// TypeScript
import { OurVoice } from "ourvoice-node";

const client = new OurVoice({
  apiKey: "YOUR API KEY TOKEN",
});

// get all groups

client.groups.getList().then((groups) => {
  console.log(groups);
});
// JavaScript

const sdk = require("ourvoice-node");

const client = new sdk.OurVoice({
  apiKey: "YOUR API KEY TOKEN",
});

// get all groups

client.groups.getList().then((groups) => {
  console.log(groups);
});
1.0.1

11 months ago

1.0.0

11 months ago

1.0.5

1 year ago