Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Java code examples for using Vonage

License

NotificationsYou must be signed in to change notification settings

Vonage/vonage-java-code-snippets

 
 

Repository files navigation

Quickstarts also available for:.NET,Node.js,PHP,Python,Ruby

The purpose of the quickstart guide is to provide simple examples focused onone goal. For example, sending and SMS, handling an incoming SMS webhook,making a Text to Speech call.

Setup

To use this sample you will first need aNexmo account.

For some of the examples you will need tobuy a number.

Building The Library

You will need to haveGradle installed to build the code. Onceyou have gradle installed, run the following to build a jar that containsthe quickstart code along with all the nexmo client library dependencies:

gradle assemble

This will build the following file:build/libs/nexmo-java-quickstart-with-dependencies.jar

Running The Examples

Copy.env-example to.env and edit the values. You'll need to load thosevalues into environment variables, so you'll probably want to use a tool likeForeman to run your code like this:

foreman run java -cp build/libs/nexmo-java-quickstart-with-dependencies.jar CLASS

So to run the OutboundTextToSpeechExample class, you would run the following:

foreman run java -cp build/libs/nexmo-java-quickstart-with-dependencies.jar com.nexmo.quickstart.voice.OutboundTextToSpeech

If you set the environment variableQUICKSTART_DEBUG to any value, extra informationwill be output to the console from the Nexmo Client library.

Request an Example

Pleaseraise an issue to request an example that isn't present within the quickstart. Pull requests will be gratefully received.

License

This code is licensed under theMIT license.

Contributors21

Languages


[8]ページ先頭

©2009-2025 Movatter.jp