Class GlobalpingClient
java.lang.Object
GlobalpingClient
A client for interacting with the Globalping API.
This class holds the API URL and token required to authenticate and make requests. The token is optional but it needs to be provided as blank.
Use the staticinit
method to create a new instance of the client.-
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalpingClientThis static method provides an instance of GlobalpingClient.
-
Method Details
-
init
This static method provides an instance of GlobalpingClient.Usage Example:
GlobalpingClient gpclient = GlobalpingClient.init("https://api.globalping.io", "");- Parameters:
apiUrl- URL to the API serviceapiToken- API service Token, use "" if not required.- Returns:
GlobalpingClient
-