Skip to content

Getting started guide

Trung Diep edited this page Aug 4, 2016 · 1 revision

Introduction

This is a simple Java client for interacting with the Data Ninja Smart Data services. Please see the Data Ninja documentation for the specification of the REST APIs.

Please follow these instructions to get started with the Java Client. A pre-built of a client jar is included in the bin directory. Alternatively, you can build from source using JDK 1.7+ and Maven.

Build

Edit the configuration file

$ vi src/main/resources/dataninja.conf

Add your Mashape key to the configuration file. If you don't have a key, please signup by visiting the Data Ninja home page hosted by Mashape.

dataninja {
    ...
    mashape-key="<your-mashape-key>"
} 

Perform a Maven build of the project:

$ mvn clean package install

Run Demo

Now you can run the command-line demo to see how the client works:

$ java -jar ./bin/SmartLearningClient.jar

Clone this wiki locally