node-virustotal
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name": "node-virustotal", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "An implementation of the Virustotal API for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "code.js", |
@@ -269,2 +269,8 @@ # node-virustotal | ||
### makePrivateConnection.setKey() | ||
This function sets the apikey that the connection is using. It takes one parameter: the API key. It returns the connection object. | ||
### makePrivateConnection.getKey() | ||
This function returns the API key that the connection is using. It has no parameters. | ||
### makePrivateConnection.publishUrlComment() | ||
@@ -288,2 +294,19 @@ The interaction with this version of publishUrlComment is identical to the interaction with the same method in the public and honeypot API. The only difference is a lack of task spooling, so it has a chance of taking less than 15 seconds to run. | ||
### makePrivateConnection example | ||
``` | ||
var con = vt.makePrivateConnection(); | ||
con.setKey("e2513a75f92a4169e8a47b4ab1df757f83ae45008b4a8a49903450c8402add4d"); | ||
console.log(con.getKey()); | ||
con.getIP4Report("90.156.201.27",function(data){ | ||
console.dir(data); | ||
}, function(err){ | ||
console.error(err); | ||
}); | ||
con.getDomainReport("wikionemore.com",function(data){ | ||
console.dir(data); | ||
}, function(err){ | ||
console.error(err); | ||
}); | ||
``` | ||
## Security And Legal Notes | ||
@@ -290,0 +313,0 @@ The Virustotal API supports both HTTP and HTTPS. This API only uses HTTPS. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42314
318