Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Validic/ValidicNodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validic

Build Status

Stable Version: 0.0.0

Javascript API Wrapper for Validic. It includes the following functionality:

Installation

Install it yourself as:

$ npm install validic

Usage

Javascript/Node

First, instantiate the client.

var validic = require('validic');


var api_url:         = 'https://api.validic.com',
var api_version:     = 'v1',
var access_token:    = 'ORGANIZATION_ACCESS_TOKEN',
var organization_id: = 'ORGANIZATION_ID'


var client = new validic(api_url, api_version, access_token, organization_id).client;

Now you can use the wrapper's helper methods to interface with the Validic API.

# Get current organization metadata
client.organizations.get_organization(options, callback);

When your requests return an object they are returned as a Validic Response object. The Validic Response typically includes summary metadata and an array of record objects. All resonse objects are retreived in the response parameter of the callback.

client.routine.get_routine({}, function (response) {

});

You can pass a hash of options to calls that fetch data.

client.routine.get_routine({start_date: '2015-01-01T00:00:00+00:00'}, callback);

About

Node JS wrapper for the Validic API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published