Commit 110c779f by Alex MacCaw

Add Risk API

parent b9ae6118
......@@ -21,6 +21,7 @@ function ClearbitClient (config) {
this.Enrichment = require('./enrichment').Enrichment(this);
this.Discovery = require('./discovery').Discovery(this);
this.Prospector = require('./prospector').Prospector(this);
this.Risk = require('./risk').Risk(this);
this.Watchlist = require('./watchlist').Watchlist(this);
this.WatchlistCandidate = require('./watchlist').WatchlistCandidate(this);
this.WatchlistEntity = require('./watchlist').WatchlistEntity(this);
......
'use strict';
var resource = require('./resource');
exports.Risk = resource.create('Risk', {
api: 'Risk'
})
.extend(null, {
calculate: function(options) {
return this.get('/calculate', options);
},
flag: function(options) {
return this.post('/flag', options);
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment