ardoq-js-client

0.0.5 • Public • Published

Integrate with Ardoq via JavaScript

This is a simple REST-API wrapper for integrating with https://ardoq.com.

Installation

Install npm install ardoq-js-client.

Uses backbone collections and models.

Usage

const token = 'YOUR TOKEN';
const ardoqURL = 'https://app.ardoq.com';
const _ = require('underscore');
const ardoqClient = require("ardoq-js-client");

var client = new ardoqClient(ardoqURL, null, null, token, "<YOUR ORG DB>");
const models = new (require("ardoq-js-client/collections/models"))();
const fields = new (require("ardoq-js-client/collections/fields"))();
const workspaces = new (require("ardoq-js-client/collections/workspaces"))();

models.fetch();
fields.fetch();
workspaces.fetch({success: function(){ });
client.performRequest("/api/<anyEndpoint>", "GET", {myParam:val}, function(){
    console.log("success");
}, function() {
    console.log("err");
});

Package Sidebar

Install

npm i ardoq-js-client

Weekly Downloads

7

Version

0.0.5

License

MIT

Unpacked Size

16.5 kB

Total Files

16

Last publish

Collaborators

  • magnulf