0.0.2 • Published 8 years ago
facepp-rest-api v0.0.2
Install
npm install facepp-rest-api --save
Api Overview
http://www.faceplusplus.com.cn/api-overview/
Example
var facepp = require('facepp-rest-api');
facepp.init({
apiKey:'YOUR-API-KEY',
apiSecret:'YOUR-API-SECRET',
apiUrl:'apius.faceplusplus.com'//or aliyun url
});
//url params except api_key and api_secret
var params={
url:'http://image.jkgirl.info/media_id_405765585776021504.jpeg'
};
//detect a face
facepp.api('/detection/detect',params,function(err,result){
//do some thing
});