This is a simple demo project illustrating the usage of the Meplato Store API for Java.
- Java 1.8
- Maven
- Your Meplato Store API token
The demo comes with a local JAR that needs to be installed first:
mvn install:install-file -Dfile=lib/meplato-store2-2.1-SNAPSHOT.jar -Dversion=2.1-SNAPSHOT -DgroupId=com.meplato -DartifactId=meplato-store2 -Dpackaging=jar
Compile with:
mvn install
The example lists your catalogs found in Store. You need to pass
your Meplato Store API token via an argument to storedemo
, or
set the STORE_TOKEN
environment variable. Then run:
$ export STORE_TOKEN=my-secret-token
$ ./storedemo
You have 1 catalog(s).
Catalog with ID=1234 has name Testkatalog.
Copyright (C) 2017-present Meplato GmbH. All rights reserved.