File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ MESSAGES_GEOSPECIFIC_API_URL="https://api-eu.nexmo.com/v1/messages"
2626MESSAGES_GEOSPECIFIC_API_HOST="api-eu"
2727MESSAGES_SANDBOX_URL="https://messages-sandbox.nexmo.com/v1/messages"
2828MESSAGES_MESSAGE_ID="00000000-0000-4000-8000-000000000000"
29- MESSAGES_IMAGE_URL="https://example.org/image .jpg"
30- MESSAGES_AUDIO_URL="https://example.org/audio .mp3"
31- MESSAGES_VIDEO_URL="https://example.org/video .mp4"
32- MESSAGES_FILE_URL="https://example.org/ file.pdf "
33- MESSAGES_VCARD_URL="https://example.org/vcard .vcf"
29+ MESSAGES_IMAGE_URL="https://file-examples.com/storage/fe435d6a5467c753ca23df4/2017/10/file_example_JPG_100kB .jpg"
30+ MESSAGES_AUDIO_URL="https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_700KB .mp3"
31+ MESSAGES_VIDEO_URL="https://file-examples.com/wp-content/storage/2017/04/file_example_MP4_480_1_5MG .mp4"
32+ MESSAGES_FILE_URL="https://file-examples.com/wp-content/storage/2017/02/ file-sample_100kB.doc "
33+ MESSAGES_VCARD_URL="https://raw.githubusercontent.com/nuovo/vCard-parser/refs/heads/master/Example .vcf"
3434MESSAGES_EMOJI="🐱"
3535MESSAGES_CAPTION="Additional text to accompany the message"
3636
Original file line number Diff line number Diff line change @@ -845,11 +845,8 @@ System.out.println("Message sent successfully. ID: "+response.getMessageUuid());
845845var response = client. getMessagesClient(). sendMessage(
846846 MmsContentRequest . builder()
847847 .from(MMS_SENDER_ID ). to(MESSAGES_TO_NUMBER )
848- .addAudio(MESSAGES_AUDIO_URL )
849848 .addImage(MESSAGES_IMAGE_URL )
850- .addVideo(MESSAGES_VIDEO_URL )
851849 .addFile(MESSAGES_FILE_URL )
852- .addVcard(MESSAGES_VCARD_URL )
853850 .build()
854851);
855852System . out. println(" Message sent successfully. ID: " + response. getMessageUuid());
@@ -3014,3 +3011,7 @@ Ncco ncco = new Ncco(TalkAction.builder("This is a text to speech call from Vona
30143011
30153012client. getVoiceClient(). createCall(new Call (VOICE_TO_NUMBER , VONAGE_VIRTUAL_NUMBER , ncco. getActions()));
30163013```
3014+ age" ).build());
3015+
3016+ client.getVoiceClient().createCall(new Call(VOICE_TO_NUMBER, VONAGE_VIRTUAL_NUMBER, ncco.getActions()));
3017+ ```
You can’t perform that action at this time.
0 commit comments