Interface TwilioServiceClient
-
- All Known Implementing Classes:
TwilioServiceClientImpl
public interface TwilioServiceClientThe Twilio service client.
-
-
Field Summary
Fields Modifier and Type Field Description static NamedServiceClientFactory<TwilioServiceClient>factory
-
Method Summary
Modifier and Type Method Description voidsendMessage(String to, String from, String body)Sends an SMS/MMS message.voidsendMessage(String to, String from, String body, String mediaUrl)Sends an SMS/MMS message.
-
-
-
Field Detail
-
factory
static final NamedServiceClientFactory<TwilioServiceClient> factory
-
-
Method Detail
-
sendMessage
void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body)
Sends an SMS/MMS message.- Parameters:
to- the number to send the message to.from- the number that the message is from.body- the body text of the message.
-
sendMessage
void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body, @Nonnull String mediaUrl)
Sends an SMS/MMS message.- Parameters:
to- the number to send the message to.from- the number that the message is from.body- the body text of the message.mediaUrl- the URL of the media to send in an MMS.
-
-