public interface TwilioServiceClient
| Modifier and Type | Field and Description |
|---|---|
static NamedServiceClientFactory<TwilioServiceClient> |
factory |
| 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.
|
static final NamedServiceClientFactory<TwilioServiceClient> factory
void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body)
to - the number to send the message to.from - the number that the message is from.body - the body text of the message.void sendMessage(@Nonnull String to, @Nonnull String from, @Nonnull String body, @Nonnull String mediaUrl)
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.