Class SendonSender

java.lang.Object
io.sendon.base.SendonClient
io.sendon.sender.SendonSender

public class SendonSender extends SendonClient
SendonSender is a client wrapper for interacting with the Sendon API. It provides methods to perform operations such as fetching user numbers.
  • Constructor Details

    • SendonSender

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

      public SendonSender(String userId, String apiKey, boolean useOkHttp)
      Constructor to initialize SendonSender 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

    • getUserNumbers

      public GetUserNumbers getUserNumbers(int cursor, int limit)
      Fetches a paginated list of user numbers from the Sendon API.
      Parameters:
      cursor - The starting point for pagination.
      limit - The maximum number of results to fetch.
      Returns:
      A GetUserNumbers object containing the response data, or null if an error occurs.