Class SendonPoint

java.lang.Object
io.sendon.base.SendonClient
io.sendon.point.SendonPoint

public class SendonPoint extends SendonClient
SendonPoint is a client wrapper for interacting with the Sendon API. It provides methods to retrieve point-related information such as points and costs.
  • Constructor Details

    • SendonPoint

      public SendonPoint(String userId, String apiKey)
      Constructor to initialize SendonPoint with user credentials.
      Parameters:
      userId - The user ID for authentication.
      apiKey - The API key for authentication.
    • SendonPoint

      public SendonPoint(String userId, String apiKey, boolean useOkHttp)
      Constructor to initialize SendonPoint with user credentials and an option to use OkHttp.
      Parameters:
      userId - The user ID for authentication.
      apiKey - The API key for authentication.
      useOkHttp - Flag to indicate whether to use OkHttp for HTTP requests.
  • Method Details

    • getPoints

      public GetPoints getPoints()
      Fetches the user's current points from the Sendon API.
      Returns:
      A GetPoints object containing the user's points, or null if an error occurs.
    • getCosts

      public GetCosts getCosts()
      Fetches the cost details from the Sendon API.
      Returns:
      A GetCosts object containing the cost details, or null if an error occurs.