Class APIClient

java.lang.Object
com.centralnicreseller.apiconnector.APIClient

public final class APIClient extends Object
APIClient is the entry point class for communicating with the insanely fast CentralNic Reseller (fka RRPProxy) backend api. It allows two ways of communication:
  • session based communication
  • sessionless communication
A session based communication makes sense in case you use it to build your own frontend on top. It allows also to use 2FA (2 Factor Auth) by providing "otp" in the config parameter of the login method. A sessionless communication makes sense in case you do not need to care about the above and you have just to request some commands. Possible commands can be found here. APIClient is a class that represents an API client for making requests to an API server. It provides methods for setting up the client, performing API requests, and managing the API session. The APIClient class has the following features: - Ability to set a custom logger for debug mode - Ability to enable or disable debug output - Methods for encoding data before sending it to the API server - Methods for setting and getting the API connection URL - Methods for setting and getting credentials for API communication - Methods for starting and ending a session-based communication - Methods for making API requests and retrieving the API response - Methods for handling pagination in list queries This class is designed to be used in conjunction with an API server that supports the provided API commands. It is recommended to consult the API server documentation for more information on the available commands and their usage.
Since:
2.0
Version:
%I%, %G%
Author:
Team Internet Group PLC