revimg
A Node.js wrapper around de RevIMG API (http://www.revimg.com/).
Given a collection and an API key this library provides an easy way of accessing the RevIMG API and search your collections.
Installation
Install with npm for Node.js
npm install revimg
Usage
Install with npm for Node.js
var revimg = require('revimg');
var RevIMG = revimg.RevIMG({
'collection' : 'mycollection',
'apiKey' : 'xxxxxxx'
});
RevIMG.search(__dirname + '/mand.png',function(err,result){
console.log(result);
})
The result is a JSON object that looks like this:
{
"code":1,
"data":{
"id":"5",
"img_url":"https://www.services.revimg.com/pathtosomeimage",
"match":"yes"
}
}
Support
If you have any questions, feel free to contact me.
Rick Groenewegen
License
The ISC License (ISC)
Copyright (c) 2017 Rick Groenewegen
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.