cruvee

0.1.1 • Public • Published

cruveejs: A Cruvee API Wrapper for NodeJS

Cruvee is an open-source approach to quality wine data provided by a flexible and powerful family of APIs.

http://developer.cruvee.com/

Requirements

NodeJS, Cruvee API Credentials

Installing

With npm:

npm install cruvee

Without npm:

  • Download/extract or git submodule this repo to a 'cruvee' folder whereever needed.
  • var cruvee = require('./cruvee/index');

Usage

First set your auth credentials:

cruvee.setAuth('appId', 'appSecret');

Then grab some wine data:

cruvee.locations({
	lat: 38.950933,
	long: -122.723052,
	radius: 50
}, function(json_response) {
	console.log(json_response);
});

All the methods have 2 parameters. The first is an object to query Cruvee, the second is a callback function with the only param returned is the response in JSON.

APIs currently supported:

  • cruvee.varieties({}, function(json) { console.log(json); });
  • cruvee.regions({}, function(json) { console.log(json); });
  • cruvee.wineries({}, function(json) { console.log(json); });
  • cruvee.brands({}, function(json) { console.log(json); });
  • cruvee.wines({}, function(json) { console.log(json); });
  • cruvee.locations({}, function(json) { console.log(json); });

Issues

Please report any issues you have with the plugin to the issue tracker on github.

License

cruveejs is offered under an MIT license.

Copyright

2011 Kyle Robinson Young, dontkry.com in association with Everflight, [everflight.com](http://everflight.com} If you found this release useful please let the author know! Follow on Twitter

Roadmap / Known Issues

  • When it fails, it fails poorly. Need to add some proper error handling.

Readme

Keywords

none

Package Sidebar

Install

npm i cruvee

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • shama