use of com.twilio.rest.api.v2010.account.Message in project api-snippets by TwilioDevEd.
the class MmsSender method main.
public static void main(String[] args) throws URISyntaxException {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
String uri = "https://static0.twilio.com/recources/logos/twilio-loco-circle-50x50.png";
Message message = Message.creator(// to
new PhoneNumber("+14159352345"), // from
new PhoneNumber("+14158141829"), "Where's Wallace?").setMediaUrl(new URI(uri)).create();
}
use of com.twilio.rest.api.v2010.account.Message in project api-snippets by TwilioDevEd.
the class SmsSender method main.
public static void main(String[] args) {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Message message = Message.creator(// to
new PhoneNumber("+14159352345"), // from
new PhoneNumber("+14158141829"), "Where's Wallace?").create();
System.out.println(message.getSid());
}
Aggregations