Package io.sendon.sender
Class SendonSender
java.lang.Object
io.sendon.base.SendonClient
io.sendon.sender.SendonSender
SendonSender is a client wrapper for interacting with the Sendon API.
It provides methods to perform operations such as fetching user numbers.
-
Field Summary
Fields inherited from class io.sendon.base.SendonClient
gson, httpClient -
Constructor Summary
ConstructorsConstructorDescriptionSendonSender(String userId, String apiKey) Constructor to initialize SendonSender with user credentials.SendonSender(String userId, String apiKey, boolean useOkHttp) Constructor to initialize SendonSender with user credentials and an option to use OkHttp. -
Method Summary
Modifier and TypeMethodDescriptiongetUserNumbers(int cursor, int limit) Fetches a paginated list of user numbers from the Sendon API.Methods inherited from class io.sendon.base.SendonClient
delete, get, parseJsonResponse, post, postImagesWithMultipartFormData, postImageWithMultipartFormData, postImageWithMultipartFormData, put
-
Constructor Details
-
SendonSender
Constructor to initialize SendonSender with user credentials.- Parameters:
userId- The user ID for authentication.apiKey- The API key for authentication.
-
SendonSender
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
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.
-