Skip to content

Commit

Permalink
refactor: Improve snippet readability
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Jun 5, 2024
1 parent 5c88980 commit ecde879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/sms/send/Snippet.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ static void execute(SMSService smsService) {
BatchesService batchesService = smsService.batches();

String from = "YOUR_sinch_phone_number";
Collection<String> 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());
Expand Down

0 comments on commit ecde879

Please sign in to comment.