Skip to content

Commit

Permalink
Merge pull request #3 from sinch/improve-snippet
Browse files Browse the repository at this point in the history
refactor: Improve snippet readability
  • Loading branch information
JPPortier authored Jun 6, 2024
2 parents 36091c4 + ecde879 commit 357e2ef
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 357e2ef

Please sign in to comment.