node-virustotal
node-virustotal copied to clipboard
reAnalyzeURL not working v3
Tried various variations of the work url and always an error!
const nvt = require('node-virustotal');
const defaultTimedInstance = nvt.makeAPI();
const hashed = nvt.sha256('https://unicash.pro/');
const theSameObject = defaultTimedInstance.reAnalyzeURL(hashed, function(err, res){
if (err) {
console.log('Well, crap.');
console.log(err);
return;
}
console.log(JSON.stringify(res));
return;
});
{ "error": { "code": "NotFoundError", "message": "Resource not found." } }
I'll take a look.
Hi, this is caused by a invalid url. the API takes 'analyse' not 'analyze'.
Source: https://developers.virustotal.com/v3.0/reference#urls-analyse
I've created a pull request to fix this. https://github.com/natewatson999/node-virustotal/pull/18
Issue is resolved in the git repo but npmjs still needs to be updated. @natewatson999, could you please update this?