Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 683 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 683 Bytes

node-cooperhewitt

A little node module to call into the cooperhewitt api

You can get a API TOKEN pretty easily right here.

To install it, just do this:

$ npm install node-cooperhewitt

And then in your project somewhere, do something like this:

var cooperhewitt = require('node-cooperhewitt')

var api_token = '<YOUR API TOKEN>';

var method = 'cooperhewitt.objects.getRandom';
var args = {'access_token': api_token};
      
cooperhewitt.call(method, args, function(rsp){   
    console.log(rsp);  
});