-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathv3Test.js
26 lines (26 loc) · 828 Bytes
/
v3Test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"use strict";
const v3 = require('./v3.js');
const vt = v3.makeAPI();
const fileContents = require('fs').readFileSync('./obvious_virus.svg');
const hashed = v3.sha256('http://wikionemore.com/');
vt/*.ipLookup('8.8.8.8', function(err, res){
console.log(err);
console.log(JSON.stringify(res));
}).ipCommentLookup('8.8.8.8', function(err, res){
console.log(err);
console.log(JSON.stringify(res));
}).ipCommentLookup('8.8.8.8', function(err, res){
console.log(err);
console.log(JSON.stringify(res));
}).*/.uploadFile(fileContents, /*'temp.txt', 'application/octet-stream',*/ function(err, res){
console.log(err);
console.log(JSON.stringify(res));
})/*.urlLookup(hashed, function(err, res){
if (err) {
console.log('Well, crap.');
console.log(err);
return;
}
console.log(JSON.stringify(res));
return;
})*/;