Package com.selectpdf
Class UsageClient
java.lang.Object
com.selectpdf.ApiClient
com.selectpdf.UsageClient
public class UsageClient extends ApiClient
Get usage details for SelectPdf Online API.
-
Field Summary
Fields inherited from class com.selectpdf.ApiClient
apiAsyncEndpoint, apiEndpoint, apiWebElementsEndpoint, AsyncCallsMaxPings, AsyncCallsPingInterval, binaryData, CLIENT_VERSION, files, headers, jobId, lastHTTPCode, MULTIPART_FORM_DATA_BOUNDARY, NEW_LINE, numberOfPages, parameters
-
Constructor Summary
Constructors Constructor Description UsageClient(java.lang.String apiKey)
Construct the Usage client. -
Method Summary
Methods inherited from class com.selectpdf.ApiClient
getNumberOfPages, performPost, performPostAsMultipartFormData, serializeDictionary, serializeParameters, setApiAsyncEndpoint, setApiEndpoint, setApiWebElementsEndpoint, startAsyncJob, startAsyncJobMultipartFormData
-
Constructor Details
-
UsageClient
public UsageClient(java.lang.String apiKey)Construct the Usage client.- Parameters:
apiKey
- API Key.
-
-
Method Details
-
getUsage
public java.lang.String getUsage()Get API usage information.- Returns:
- Usage information as JSON string.
-
getUsage
public java.lang.String getUsage(boolean getHistory)Get API usage information with history if specified.- Parameters:
getHistory
- Get history if set.- Returns:
- Usage information as JSON string.
-