Class GlobalpingClient

java.lang.Object
GlobalpingClient

public class GlobalpingClient extends Object
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 static init method to create a new instance of the client.
  • Method Details

    • init

      public static GlobalpingClient init(String apiUrl, String apiToken)
      This static method provides an instance of GlobalpingClient.

      Usage Example:

      
              GlobalpingClient gpclient = GlobalpingClient.init("https://api.globalping.io", "");
             
       
      Parameters:
      apiUrl - URL to the API service
      apiToken - API service Token, use "" if not required.
      Returns:
      GlobalpingClient