- Notifications
You must be signed in to change notification settings - Fork32
Java code examples for using Vonage
License
Vonage/vonage-java-code-snippets
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Quickstarts also available for:Python,.NET,Node.js,PHP,Ruby andcurl.
The purpose of the quickstart guide is to provide simple examples focused on one goal. For example, sending an SMS, handling an incoming SMS webhook, making a Text to Speech call. These code samples are meant to be used forhttps://developer.nexmo.com/, and are structured in such a way as to be used for internal testing. Developers are free to use these code snippets as a reference, but these may require changes to be worked into your specific application. We recommend checking out the Nexmo Developer Website, which displays these code snippets in a more copy/paste fashion.
To use this sample you will first need aNexmo account.
For some of the examples you will need tobuy a number.
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
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-code-snippets-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.
Pleaseraise an issue to request an example that isn't present within the quickstart. Pull requests will be gratefully received.
This code is licensed under theMIT license.
About
Java code examples for using Vonage
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.