diff --git a/snippets/sms/send/Snippet.java b/snippets/sms/send/Snippet.java index 4e465fd..1696c59 100644 --- a/snippets/sms/send/Snippet.java +++ b/snippets/sms/send/Snippet.java @@ -16,14 +16,14 @@ static void execute(SMSService smsService) { BatchesService batchesService = smsService.batches(); String from = "YOUR_sinch_phone_number"; - Collection recipients = Collections.singletonList("YOUR_recipient_phone_number"); + String recipient = "YOUR_recipient_phone_number"; String body = "This is a test SMS message using the Sinch Java SDK."; LOGGER.info("Sending SMS Text"); BatchText value = batchesService.send( SendSmsBatchTextRequest.builder() - .setTo(recipients) + .setTo(Collections.singletonList(recipient)) .setBody(body) .setFrom(from) .build());