Package dev.resms.services.sms
Class Sms
java.lang.Object
dev.resms.core.service.BaseService
dev.resms.services.sms.Sms
-
Field Summary
Fields inherited from class dev.resms.core.service.BaseService
apiKey, httpClient, reSMSMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsend(SendSmsOptions sendSmsOptions) Sends an SMS based on the provided SMS request.
-
Constructor Details
-
Sms
Constructs an instance of theSmsclass.- Parameters:
apiKey- The apiKey used for authentication.
-
-
Method Details
-
send
Sends an SMS based on the provided SMS request.- Parameters:
sendSmsOptions- The request containing SMS details.- Returns:
- The response indicating the status of the sms sending.
- Throws:
ReSMSException- If an error occurs while sending the SMS.
-