public class DashboardAPI
extends java.lang.Object
Constructor and Description |
---|
DashboardAPI() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addArrayToList(java.lang.String apiKey,
ListSelection listSelection,
java.util.ArrayList<java.lang.String> ipArray)
Adds the ipArray to the selected list
|
java.lang.String |
clearList(java.lang.String apiKey,
ListSelection listSelection)
Clears the selected list
|
java.lang.String |
exportQueries(boolean useJsonFormatting,
java.lang.String apiKey)
Export your queries
|
java.lang.String |
exportTags(java.lang.String apiKey,
int limit,
int offset,
int addresses,
int days)
Used to grab the tags sent along with your proxycheck queries and their stats.
|
java.lang.String |
exportTags(java.lang.String apiKey,
int limit,
int offset,
long startTime,
long endTime)
Used to grab the tags sent along with your proxycheck queries and their stats.
|
java.lang.String |
exportUsage(java.lang.String apiKey)
Export your API Usage
|
java.lang.String |
getList(java.lang.String apiKey,
ListSelection listSelection)
Get a printout of the selected list from our API
|
java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
mapExportedQueriesToArray(java.lang.String apiKey)
Maps all your queries to a JsonNode all mapped into a HashMap K: String V: JsonNode
|
UsageResults |
mapUsage(java.lang.String apikey)
Maps your usage to an instanced class
|
java.lang.String |
removeArrayFromList(java.lang.String apiKey,
ListSelection listSelection,
java.util.ArrayList<java.lang.String> ipArray)
Removes the ipArray from the selected list
|
java.lang.String |
setList(java.lang.String apiKey,
ListSelection listSelection,
java.util.ArrayList<java.lang.String> ipArray)
THIS METHOD WILL OVERWRITE YOUR CURRENT DATA IN THE LIST
|
public java.lang.String getList(java.lang.String apiKey, ListSelection listSelection) throws InvalidParameterException
apiKey
- APIKey from https://proxycheck.iolistSelection
- Which list do you want to modifyInvalidParameterException
HTTPQuery
public java.lang.String setList(java.lang.String apiKey, ListSelection listSelection, java.util.ArrayList<java.lang.String> ipArray) throws InvalidParameterException
apiKey
- APIKey from https://proxycheck.iolistSelection
- Which list do you want to modifyipArray
- Array of ips that you want to set a list toInvalidParameterException
public java.lang.String clearList(java.lang.String apiKey, ListSelection listSelection) throws InvalidParameterException
apiKey
- APIKey from https://proxycheck.iolistSelection
- Which list do you want to modifyInvalidParameterException
public java.lang.String addArrayToList(java.lang.String apiKey, ListSelection listSelection, java.util.ArrayList<java.lang.String> ipArray) throws InvalidParameterException
apiKey
- APIKey from https://proxycheck.iolistSelection
- Which list do you want to modifyipArray
- Array of ips to pass an ADD command with the HTTPQueryInvalidParameterException
public java.lang.String removeArrayFromList(java.lang.String apiKey, ListSelection listSelection, java.util.ArrayList<java.lang.String> ipArray) throws InvalidParameterException
apiKey
- APIKey from https://proxycheck.iolistSelection
- Which list do you want to modifyipArray
- Array of ips to pass a REMOVE command with the HTTPQueryInvalidParameterException
public java.lang.String exportQueries(boolean useJsonFormatting, java.lang.String apiKey)
useJsonFormatting
- get response as JSON StringapiKey
- APIKey from https://proxycheck.iopublic java.lang.String exportUsage(java.lang.String apiKey)
apiKey
- APIKey from https://proxycheck.iopublic java.lang.String exportTags(java.lang.String apiKey, int limit, int offset, long startTime, long endTime)
apiKey
- APIKey from https://proxycheck.iolimit
- number of tags to listoffset
- how many tags to skipstart
- start date in long Milliseconds Time Unitsend
- start date in long Milliseconds Time Unitspublic java.lang.String exportTags(java.lang.String apiKey, int limit, int offset, int addresses, int days)
apiKey
- APIKey from https://proxycheck.io/limit
- limit of detections to outputoffset
- how many detections to skip before readingaddresses
- amount of addresses to querydays
- amount of days to search backpublic java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.JsonNode> mapExportedQueriesToArray(java.lang.String apiKey) throws com.fasterxml.jackson.core.JsonProcessingException
apiKey
- APIKey from https://proxycheck.iocom.fasterxml.jackson.core.JsonProcessingException
public UsageResults mapUsage(java.lang.String apikey) throws com.fasterxml.jackson.core.JsonProcessingException
apikey
- String - APIKey from https://proxycheck.iocom.fasterxml.jackson.core.JsonProcessingException
UsageResults