public final class TwilioServiceClientImpl extends Object implements TwilioServiceClient
factory| Constructor and Description |
|---|
TwilioServiceClientImpl(CoreTwilioServiceClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendMessage(String to,
String from,
String body)
Sends an SMS/MMS message.
|
void |
sendMessage(String to,
String from,
String body,
String mediaUrl)
Sends an SMS/MMS message.
|
public TwilioServiceClientImpl(CoreTwilioServiceClient client)
public void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body)
sendMessage in interface TwilioServiceClientto - the number to send the message to.from - the number that the message is from.body - the body text of the message.public void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body, @Nonnull String mediaUrl)
sendMessage in interface TwilioServiceClientto - 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.