File tree 2 files changed +9
-8
lines changed 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"
26
26
MESSAGES_GEOSPECIFIC_API_HOST="api-eu"
27
27
MESSAGES_SANDBOX_URL="https://messages-sandbox.nexmo.com/v1/messages"
28
28
MESSAGES_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"
34
34
MESSAGES_EMOJI="🐱"
35
35
MESSAGES_CAPTION="Additional text to accompany the message"
36
36
Original file line number Diff line number Diff line change @@ -845,11 +845,8 @@ System.out.println("Message sent successfully. ID: "+response.getMessageUuid());
845
845
var response = client. getMessagesClient(). sendMessage(
846
846
MmsContentRequest . builder()
847
847
.from(MMS_SENDER_ID ). to(MESSAGES_TO_NUMBER )
848
- .addAudio(MESSAGES_AUDIO_URL )
849
848
.addImage(MESSAGES_IMAGE_URL )
850
- .addVideo(MESSAGES_VIDEO_URL )
851
849
.addFile(MESSAGES_FILE_URL )
852
- .addVcard(MESSAGES_VCARD_URL )
853
850
.build()
854
851
);
855
852
System . 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
3014
3011
3015
3012
client. getVoiceClient(). createCall(new Call (VOICE_TO_NUMBER , VONAGE_VIRTUAL_NUMBER , ncco. getActions()));
3016
3013
```
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