This repo provides the official Java client for the MachineLinking API.
Before running tests please obtains a ML APP ID and KEY by registering at https://machinelinking.3scale.net/login . Then either replace the APP ID and Key in
com.machinelinking.api.client.TestConstants
or set it as system properties while running Maven:
mvn -Dml.app.id=<APP_ID> -Dml.app.key=<APP_KEY> clean test
1 - Include a custom repository (hosted by GitHub).
<repository>
<id>machinelinking-api-client-mvn-repo</id>
<url>https://raw.github.com/michelemostarda/machinelinking-api-client/mvn-repo/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
2 - Add the client dependency
<dependency>
<groupId>com.machinelinking</groupId>
<artifactId>api-client</artifactId>
<version>1.4</version>
</dependency>
This repo contains a standard Maven 3 module, just execute:
git clone https://github.com/michelemostarda/machinelinking-api-client.git
cd machinelinking-api-client
mvn package