datarobot
v0.0.1
Published
DataRobot API Client
Downloads
3
Readme
DataRobot NodeJS Client
A JavaScript implementation for working with the DataRobot platform API.
Install
npm install datarobot
Usage
// datarobot-client.js
import { DataRobotClient } from 'datarobot';
// XXX: make sure you don't hardcode your token
const API_TOKEN = process.env.DATAROBOT_API_TOKEN;
const DR_ENDPOINT = process.env.DATAROBOT_ENDPOINT;
export default new DataRobotClient(DR_ENDPOINT, API_TOKEN);
// index.js
import datarobot from './datarobot-client';
datarobot.projects.retrieve().then(projects => {
console.log(projects);
});