Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

javanto/nexmo-java-sdk-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start

to compile the examples, issue the following command

mvn compile

To execute an example, run

mvn exec:java -Dexec.mainClass="com.nexmo.messaging.sdk.examples.SendTextMessage"

This will construct a message request and use the SDK to attempt to submit it.

The code can be seen in this class src/main/java/com/nexmo/messaging/sdk/examples/SendTextMessage.java

You can modify the constants at the top of the class to inject your own account credentials and message parameters.

public static final String USERNAME = "account-id";
public static final String PASSWORD = "password";

public static final String SMS_FROM = "12345";
public static final String SMS_TO = "447777111222";
public static final String SMS_TEXT = "Hello World!";

mvn exec:java -Dexec.mainClass="com.nexmo.messaging.sdk.examples.SendWapPush" will execute an example wap-push submission. The code can be found here src/main/java/com/nexmo/messaging/sdk/examples/SendWapPush.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages