public interface TwilioServiceClient
| Modifier and Type | Field and Description |
|---|---|
static NamedServiceClientFactory<TwilioServiceClient> |
factory |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
sendMessage(String to,
String from,
String body)
Sends an SMS/MMS message.
|
Task<Void> |
sendMessage(String to,
String from,
String body,
String mediaUrl)
Sends an SMS/MMS message.
|
static final NamedServiceClientFactory<TwilioServiceClient> factory
Task<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.Task<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.